Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
#139648 04/01/2001 8:03 AM
Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
I just finished the MegaMod hack for UBB 6.01.
It took me 3 days, but I'm very happy it's working now

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

Sponsored Links
#139649 04/01/2001 11:35 AM
Joined: Mar 2001
Posts: 7
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 7
WOW thanks man I was looking for a hack like this one.

#139650 04/01/2001 12:27 PM
Joined: Nov 2000
Posts: 148
Member
Member
Offline
Joined: Nov 2000
Posts: 148
Quick question? Will this conflict with the star hack if installed?

Joined: Mar 2000
Posts: 204
Member
Member
Offline
Joined: Mar 2000
Posts: 204
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.
Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
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

Sponsored Links
Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
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

Joined: Nov 2000
Posts: 148
Member
Member
Offline
Joined: Nov 2000
Posts: 148
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

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
Just a little note:
in my hack, $user_profile[8] = "MegaModerator", not "MegaMod"

#139656 04/02/2001 10:10 AM
Joined: Mar 2000
Posts: 204
Member
Member
Offline
Joined: Mar 2000
Posts: 204
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.
Joined: Jan 2001
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 21
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 ]

Sponsored Links
Joined: Jan 2001
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 21
now it work in cp with both stars and status .. but i can only have one star addet to megamoderator frown

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
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

Joined: Jan 2001
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 21
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 ..

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
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 ]

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
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...

Joined: Sep 2000
Posts: 221
Member
Member
Offline
Joined: Sep 2000
Posts: 221
Does this one work in 6.02 also?


This is the designed behavior.
#139664 04/03/2001 12:35 AM
Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
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.

Joined: Jan 2001
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 21
I use it with 6.02 and it works great ... but you can get some problems if you have stars/status hack installed ..

#139666 04/03/2001 12:41 PM
Joined: Apr 2001
Posts: 4
stk Offline
Junior Member
Junior Member
Offline
Joined: Apr 2001
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') || ($Status ne 'MegaModerator')) {
$modprof[8] = 'Moderator';

This should be replaced by

unless (($Status eq 'Administrator') || ($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 ]

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
I found the mistake, too, i used || 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 ]

Joined: Apr 2001
Posts: 1
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 1
Dunno if it matters, but at "Search Members" in the config panel,
you can't enter megamoderator as status laugh
so you can't search for them
oh well...this still looks like a damn great hack smile

Joined: Dec 2000
Posts: 34
Member
Member
Offline
Joined: Dec 2000
Posts: 34
Would it be good an addon hack that sort of displayed the megamodaerators on the main page of the site?


I have created for you, an Owl. It is a good Owl. It is The Owl. You will view The Owl, and you will be taken in. The Owl will rule your feeble minds.
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
I'll make an official addon to my stars hack for this...btw, great job.


-DT
#139671 04/05/2001 10:26 PM
Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
hey thanks Dark Templar i was wondering if you was ever going to look at this post.
wink

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
Quote
quote:
I was thinking about this when making it, but I really don't know _where_ to put that on the main page smile

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
Code
quote:</font><HR>Originally posted by w0rf:
Dunno if it matters, but at "Search Members" in the config panel,
you can't enter megamoderator as status :D
so you can't search for them
oh well...this still looks like a damn great hack :)
<HR></BLOCKQUOTE>

If you just search for Moderators, MegaModerators turn up in the search results, too.
And if you want to search for MegaModerators only, you only have to do this:

In cp_user_search_form.pl, find:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, Arial">code:

Below that, add:
Code
code:

That's all.

I also put this in the megamod.txt, because it might come in handy.

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
Code
quote:</font><HR>Originally posted by w0rf:
Dunno if it matters, but at "Search Members" in the config panel,
you can't enter megamoderator as status :D
so you can't search for them
oh well...this still looks like a damn great hack :)
<HR></BLOCKQUOTE>

If you just search for Moderators, MegaModerators turn up in the search results, too.
And if you want to search for MegaModerators only, you only have to do this:

In cp_user_search_form.pl, find:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, Arial">code:

Below that, add:
Code
code:

That's all.

I also put this in the megamod.txt, because it might come in handy.

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
Sorry for double posting, I thought the reply wasn't added but after posting for the second time i found out there was a second page shocked

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
I just found a little bug. If you make a megamoderator an Admin, and after that you take away the Admin rights, he will become a Member, Junior Member, or Moderator.
It's 0.21 here right now, and I'm very tired, so I will take a look at this when I wake up again smile

Joined: Apr 2001
Posts: 240
Member
Member
Offline
Joined: Apr 2001
Posts: 240
[ May 08, 2001 11:59 AM: Message edited by: ZoneX ]

Joined: Apr 2001
Posts: 240
Member
Member
Offline
Joined: Apr 2001
Posts: 240
Ignore that, I got it working.

But can you post complete instructions for changing the name of a MegaModerator, so that the rank is known as "Security", because that's what the members of my board know it as. Thanks smile

Joined: Apr 2001
Posts: 240
Member
Member
Offline
Joined: Apr 2001
Posts: 240
Error including required files: [Thu Apr 12 13:58:06 2001] cp.cgi: syntax error at ubb_lib.cgi line 1214, near "elsif" Make sure these files exist, permissions are set properly, and paths are set correctly.


-------------------------------------------

Why ?!?!

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
Quote
quote:
It's in your Miscellaneous Settings, see my first post smile

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
Quote
quote:
There's no elsif near line 1214 in my ubb_lib.cgi
Didn't you add an other hack after you did the megamod hack?
Or maybe you made a copy&paste mistake when applying the hack (i.e. you forgot to select a } or something).

#139682 04/17/2001 10:37 AM
Joined: Apr 2001
Posts: 240
Member
Member
Offline
Joined: Apr 2001
Posts: 240
Sorry for all those questions, it was just my second hack. It's great! I got it to work. Now all I need to work out, is how to get a certain glow for MegaMods, any ideas ?

Thanks!

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
Quote
quote:
Doesn't matter.
I've got _much_ patience and I can explain some things a 1000 times, until the person asking the questions finally gets it smile
Hmm, I'm lazy sometimes, too... I haven't yet tested the hack for 6.04 shocked

Joined: Apr 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 4
I think I've found another major bug in the hack but I don't know how to remove it... ! When you've installed the Hack, the authorisation System for the private forums will be damaged because if you authorisize a MOD to have access in ONE private forum, he'll have access to all ones ! This is only possible as a MOD or maybe a MegaMOD ! A normal user only has access to the forum you authorisized him for ! Try to test it in the TESTFORUM ! There it's the same ! I hope you can help me and you can understand my bad english !

Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
I will take a look at it asap.
Right now I'm just coming from a party and I can't take a look at it (alcohol :o).
I think I have time on Sunday, so then I hope to find a solution smile

Joined: Apr 2001
Posts: 240
Member
Member
Offline
Joined: Apr 2001
Posts: 240
There's been a complication. The MegaMods are saying that they are unable to perform MegaMod functions such as Move, Delete, Close, etc. Why ?? confused

#139687 04/22/2001 11:34 AM
Joined: Mar 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 28
Quote
quote:
It works on my testboard...
Maybe you forgot to change something?

[ April 22, 2001 04:38 PM: Message edited by: Al Bundy ]

Page 1 of 4 1 2 3 4

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)