|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
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
|
|
|
|
Joined: Mar 2001
Posts: 7
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 7 |
WOW thanks man I was looking for a hack like this one.
|
|
|
|
Joined: Nov 2000
Posts: 148
Member
|
Member
Joined: Nov 2000
Posts: 148 |
Quick question? Will this conflict with the star hack if installed?
|
|
|
|
Joined: Mar 2000
Posts: 204
Member
|
Member
Joined: Mar 2000
Posts: 204 |
Woo. I might install this one later. Hope this version actually works. lol. Webdaddie: Not much. To add stars for MegaMod, just add this in your stars 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
Joined: Mar 2001
Posts: 28 |
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 
|
|
|
|
Joined: Nov 2000
Posts: 148
Member
|
Member
Joined: Nov 2000
Posts: 148 |
Okay this is part of what I have in my public_topic_page.pl file 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: I'm not sure what I'm changing here when it calls: $thesestars
|
|
|
|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 28 |
Just a little note: in my hack, $user_profile[8] = "MegaModerator", not "MegaMod"
|
|
|
|
Joined: Mar 2000
Posts: 204
Member
|
Member
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.  [ 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
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 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  [ April 02, 2001: Message edited by: loadet ]
|
|
|
|
Joined: Jan 2001
Posts: 21
Junior Member
|
Junior Member
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 
|
|
|
|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 28 |
Oops I forgot to make it an Admin  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 
|
|
|
|
Joined: Jan 2001
Posts: 21
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 21 |
 now it works perfect with the stars hack  even in cp  great hack btw  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
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  I can't find that hack somewhere  [ April 02, 2001: Message edited by: Al Bundy ]
|
|
|
|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 28 |
I already found it, it's standard in UBB 6  In cp_users.cgi, find: Replace by: I will update the megamod.txt for this, too...
|
|
|
|
Joined: Sep 2000
Posts: 221
Member
|
Member
Joined: Sep 2000
Posts: 221 |
Does this one work in 6.02 also?
This is the designed behavior.
|
|
|
|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 28 |
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
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 ..
|
|
|
|
Joined: Apr 2001
Posts: 4
Junior Member
|
Junior Member
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
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  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  [ 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
Joined: Apr 2001
Posts: 1 |
Dunno if it matters, but at "Search Members" in the config panel, you can't enter megamoderator as status  so you can't search for them oh well...this still looks like a damn great hack 
|
|
|
|
Joined: Dec 2000
Posts: 34
Member
|
Member
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
Joined: Sep 2000
Posts: 793 |
I'll make an official addon to my stars hack for this...btw, great job.
-DT
|
|
|
|
Joined: Jul 2000
Posts: 837
Member
|
Member
Joined: Jul 2000
Posts: 837 |
hey thanks Dark Templar i was wondering if you was ever going to look at this post. 
|
|
|
|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 28 |
I was thinking about this when making it, but I really don't know _where_ to put that on the main page 
|
|
|
|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 28 |
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: 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
Joined: Mar 2001
Posts: 28 |
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: 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
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 
|
|
|
|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
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 
|
|
|
|
Joined: Apr 2001
Posts: 240
Member
|
Member
Joined: Apr 2001
Posts: 240 |
[ May 08, 2001 11:59 AM: Message edited by: ZoneX ]
|
|
|
|
Joined: Apr 2001
Posts: 240
Member
|
Member
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 
|
|
|
|
Joined: Apr 2001
Posts: 240
Member
|
Member
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
Joined: Mar 2001
Posts: 28 |
It's in your Miscellaneous Settings, see my first post 
|
|
|
|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 28 |
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).
|
|
|
|
Joined: Apr 2001
Posts: 240
Member
|
Member
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
Joined: Mar 2001
Posts: 28 |
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  Hmm, I'm lazy sometimes, too... I haven't yet tested the hack for 6.04 
|
|
|
|
Joined: Apr 2001
Posts: 4
Junior Member
|
Junior Member
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
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 
|
|
|
|
Joined: Apr 2001
Posts: 240
Member
|
Member
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 ?? 
|
|
|
|
Joined: Mar 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 28 |
It works on my testboard... Maybe you forgot to change something? [ April 22, 2001 04:38 PM: Message edited by: Al Bundy ]
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|