php forum
php mysql forum
php mysql smarty
 
Page 1 of 7 1 2 3 4 5 6 7 >
Topic Options
#139648 - 04/01/01 08:03 AM [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands

   [6.0x] MegaMod [Finished] to Del.icio.us Add to del.icio.us
  Digg [6.0x] MegaMod [Finished] Digg it
I just finished the MegaMod hack for UBB 6.01.
It took me 3 days, but I'm very happy it's working now <img src="smile.gif" border="0" alt="" />

For the people who don't know what a MegaModerator is:

A MegaModerator can moderate in all forums in your board.

What the hack does:

It adds 4 MegaModerator input boxes in the Moderator Settings section of the control panel.
You just add them like normal moderators.
In your Miscellaneous settings you can specify the status for your MegaMod.

You can download the hack here: http://albundy.dhs.org/ubbhacks/megamod.txt

Already tested succesfully on 6, 6.01, 6.02, 6.03

Top
#139649 - 04/01/01 11:35 AM Re: [6.0x] MegaMod [Finished]
Pokélord Offline
Junior Member

Registered: 03/01/01
Posts: 7
WOW thanks man I was looking for a hack like this one.

Top
#139650 - 04/01/01 12:27 PM Re: [6.0x] MegaMod [Finished]
Webdaddie Offline
Member

Registered: 11/03/00
Posts: 202
Loc: East Coast NJ, USA
Quick question? Will this conflict with the star hack if installed?

Top
#139651 - 04/01/01 02:59 PM Re: [6.0x] MegaMod [Finished]
The Donut Offline
Member

Registered: 03/17/00
Posts: 236
Loc: Amarillo, Texas
Woo. I might install this one later. Hope this version actually works. lol. laugh

Webdaddie: Not much. To add stars for MegaMod, just add this in your stars code:

Code:
code:


right after the admin stars, and before the moderator stars.

just replce $thesestars with whatever your stars variable is, then replace megamod.gif with whatever your megamod gif(s) will be.

[ April 01, 2001: Message edited by: Funky Munky ]
_________________________
-Never Underestimate The Power Of Stupid People In Large Groups.

Top
#139652 - 04/01/01 03:38 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
Quote:
quote:


I don't think so
If you just look good at the code you can see if you have to change code what has been changed before by the stars hack. (Sorry English sometimes is hard for me :))
If you need to you can always combine the two hacks. UBB source code isn't that hard smile

Top
#139653 - 04/01/01 03:49 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
For an example: http://pannenkoek.dhs.org/cgi-bin/ubb/ultimatebb.cgi

You can all try it, i made an Admin user:

Login: testing
Pass: testing

Top
#139654 - 04/01/01 05:36 PM Re: [6.0x] MegaMod [Finished]
Webdaddie Offline
Member

Registered: 11/03/00
Posts: 202
Loc: East Coast NJ, USA
Okay this is part of what I have in my public_topic_page.pl file

Code:
code:


I added in what you told me to add in there:

But I'm alittle confused now when you are saying:

just replce $thesestars with whatever your stars variable is, then replace megamod.gif with whatever your megamod gif(s) will be.

This is what calls the files:

Code:
code:


I'm not sure what I'm changing here when it calls: $thesestars

Top
#139655 - 04/02/01 03:27 AM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
Just a little note:
in my hack, $user_profile[8] = "MegaModerator", not "MegaMod"

Top
#139656 - 04/02/01 10:10 AM Re: [6.0x] MegaMod [Finished]
The Donut Offline
Member

Registered: 03/17/00
Posts: 236
Loc: Amarillo, Texas
elsif ($user_profile[8] eq "MegaModerator") { $thesestars = $MegaModStarURL x $vars_misc{MegaModStarNum}; $star_status = "$vars_misc{MegaModeratorTitle}";


add that after your admin stars. scratch what I told you earlier.

I'm not using the hack that you're using for stars, so you'll have to add a mega moderator star check in the file where that stuff is.

I'm just naturally confusing, sorry. laugh

[ April 02, 2001: Message edited by: Funky Munky ]
_________________________
-Never Underestimate The Power Of Stupid People In Large Groups.

Top
#139657 - 04/02/01 01:58 PM Re: [6.0x] MegaMod [Finished]
loadet Offline
Junior Member

Registered: 01/15/01
Posts: 24
Loc: Denmark
im not a hacker and i want to have this work with Stars/Status hack for UBB6 4.52 by Dark Templar
i have made the status work but not the stars .. i can add it in the misc settings in the cp but when i go back to misc settins in cp the filename and number of stars is gone frown
does anyone have an idea how to make it work ???

i can add the stars in vars_misc.cgi but when i update the settings in misc settins in cp it goes away again frown

[ April 02, 2001: Message edited by: loadet ]

Top
#139658 - 04/02/01 03:02 PM Re: [6.0x] MegaMod [Finished]
loadet Offline
Junior Member

Registered: 01/15/01
Posts: 24
Loc: Denmark
now it work in cp with both stars and status .. but i can only have one star addet to megamoderator frown

Top
#139659 - 04/02/01 03:30 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
Quote:
quote:


Oops I forgot to make it an Admin smile
Now you can try the MegaMod hack first before you put it in your own board.
I will always try to do something with the stars hack, but I don't hav much time at this moment...

Btw I'm sorry my testing board is in Dutch, it's just because i do all the hacks for a UBB on a big Dutch internetsite, so I have an exact copy running so i can copy all files to that server when I finish a hack smile

Top
#139660 - 04/02/01 03:42 PM Re: [6.0x] MegaMod [Finished]
loadet Offline
Junior Member

Registered: 01/15/01
Posts: 24
Loc: Denmark
smile now it works perfect with the stars hack smile even in cp smile

great hack btw smile

i don't know anything about coding .. but i saw that it isent integrated with "moderator and admin password isent viewable in cp" i dont know if it matters ..

Top
#139661 - 04/02/01 03:49 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
The one who made that hack, could make it compatible with the MegaMod, or I can do it.
I'll have a look smile

I can't find that hack somewhere confused

[ April 02, 2001: Message edited by: Al Bundy ]

Top
#139662 - 04/02/01 04:08 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
I already found it, it's standard in UBB 6 smile

In cp_users.cgi, find:

Code:
code:


Replace by:

Code:
code:


I will update the megamod.txt for this, too...

Top
#139663 - 04/02/01 09:04 PM Re: [6.0x] MegaMod [Finished]
bryan868 Offline
Member

Registered: 09/18/00
Posts: 273
Does this one work in 6.02 also?
_________________________
This is the designed behavior.

Top
#139664 - 04/03/01 12:35 AM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
Quote:
quote:


I don't have UBB 6.02 yet, but I think the code which I changed is not changed in 6.02.
Just try the hack, if it doesn't work, I will take a look a it.

Top
#139665 - 04/03/01 03:39 AM Re: [6.0x] MegaMod [Finished]
loadet Offline
Junior Member

Registered: 01/15/01
Posts: 24
Loc: Denmark
I use it with 6.02 and it works great ... but you can get some problems if you have stars/status hack installed ..

Top
#139666 - 04/03/01 12:41 PM Re: [6.0x] MegaMod [Finished]
stk Offline
Junior Member

Registered: 04/03/01
Posts: 4
I have found a Major Bug:

cp_forums.cgi
-------------
Find:
if ($Status ne 'Administrator') {
$modprof[8] = 'Moderator';
Recplace by:
if (($Status ne 'Administrator') &#0124;&#0124; ($Status ne 'MegaModerator')) {
$modprof[8] = 'Moderator';

This should be replaced by

unless (($Status eq 'Administrator') &#0124;&#0124; ($Status eq 'MegaModerator')) {

this would be also possible with

if (($Status ne 'Administrator') && ($Status ne 'MegaModerator')) {

but the unless thing is clearer


Now to the old one, if you have this bug all your Admins who are Moderators in some Forums will be cut down to normal Admins without Admin rights.

If you are allready in the Trap open your Admin Member file per ftp or whatever and replace the Term Moderator with Administrator


Good Luck,

stk

[ April 03, 2001: Message edited by: stk ]

Top
#139667 - 04/03/01 03:18 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
I found the mistake, too, i used &#0124;&#0124; instead of &&...
But when i found out about that I was at my work and when I got home I forgot to fix it shocked

Edit: I fixed it now...

Edit 2: Now I look at my own code, i see the line doesn't have to be changed. First I did, but later I found out I didn't need to change that, and i lacked updating my documentation.
I scanned my documentation for more bugs like that, but I didn't find anymore, so it has to be ok now smile

[ April 03, 2001: Message edited by: Al Bundy ]

[ April 03, 2001: Message edited by: Al Bundy ]

Top
Page 1 of 7 1 2 3 4 5 6 7 >


Who's Online
1 Registered (AllenAyres), 39 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by AllenAyres
10/13/08 01:36 PM
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
Kevs, pisa666, ghengis317, NitroX, Dogan
13346 Registered Users
Top Posters Last 30 Days
AllenAyres 9
blaaskaak 7
Chris Bale 4
FREAK1 4
Ian_W 4
tackaberry 4
Mike L_dup1 4

 

 

 
fusionbb message board php hacks