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
#139668 - 04/05/01 05:37 PM Re: [6.0x] MegaMod [Finished]
w0rf Offline
Junior Member

Registered: 04/05/01
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

Top
#139669 - 04/05/01 07:24 PM Re: [6.0x] MegaMod [Finished]
[GiB]Dessimat0r Offline
Member

Registered: 12/10/00
Posts: 39
Loc: Tranmere, Birkenhead, United K...
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.

Top
#139670 - 04/05/01 09:24 PM Re: [6.0x] MegaMod [Finished]
Dark Templar Offline
Member

Registered: 09/30/00
Posts: 982
Loc: California | Retired UBB Hacke...
I'll make an official addon to my stars hack for this...btw, great job.
_________________________
-DT

Top
#139671 - 04/05/01 10:26 PM Re: [6.0x] MegaMod [Finished]
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
hey thanks Dark Templar i was wondering if you was ever going to look at this post.
wink

Top
#139672 - 04/06/01 08:50 AM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
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

Top
#139673 - 04/06/01 04:51 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
Code:
quote:</font><HR>Originally posted by w0rf:
[b]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   :)[/b]<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.

Top
#139674 - 04/06/01 04:53 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
Code:
quote:</font><HR>Originally posted by w0rf:
[b]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   :)[/b]<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.

Top
#139675 - 04/06/01 04:55 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
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

Top
#139676 - 04/09/01 05:20 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
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

Top
#139677 - 04/12/01 02:58 PM Re: [6.0x] MegaMod [Finished]
ZoneX Offline
Member

Registered: 04/08/01
Posts: 220
Loc: London, UK
<FONT COLOR="#000000" SIZE="1">[ May 08, 2001 11:59 AM: Message edited by: ZoneX ]</font>

Top
#139678 - 04/12/01 03:47 PM Re: [6.0x] MegaMod [Finished]
ZoneX Offline
Member

Registered: 04/08/01
Posts: 220
Loc: London, UK
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

Top
#139679 - 04/12/01 04:06 PM Re: [6.0x] MegaMod [Finished]
ZoneX Offline
Member

Registered: 04/08/01
Posts: 220
Loc: London, UK
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 ?!?!

Top
#139680 - 04/13/01 07:06 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

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


It's in your Miscellaneous Settings, see my first post smile

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

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
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).

Top
#139682 - 04/17/01 10:37 AM Re: [6.0x] MegaMod [Finished]
ZoneX Offline
Member

Registered: 04/08/01
Posts: 220
Loc: London, UK
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!

Top
#139683 - 04/17/01 04:46 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
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

Top
#139684 - 04/20/01 06:44 AM Re: [6.0x] MegaMod [Finished]
alpha2503 Offline
Junior Member

Registered: 04/17/01
Posts: 4
Loc: Hannover
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 !
_________________________
» [ PRaO Admin ]

Top
#139685 - 04/20/01 06:25 PM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

Registered: 03/29/01
Posts: 28
Loc: The Netherlands
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

Top
#139686 - 04/22/01 06:29 AM Re: [6.0x] MegaMod [Finished]
ZoneX Offline
Member

Registered: 04/08/01
Posts: 220
Loc: London, UK
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

Top
#139687 - 04/22/01 11:34 AM Re: [6.0x] MegaMod [Finished]
Al Bundy Offline
Junior Member

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


It works on my testboard...
Maybe you forgot to change something?

<FONT COLOR="#000000" SIZE="1">[ April 22, 2001 04:38 PM: Message edited by: Al Bundy ]</font>

Top
#139688 - 04/24/01 08:37 AM Re: [6.0x] MegaMod [Finished]
AlBundy Offline
Junior Member

Registered: 03/21/01
Posts: 12
Loc: Schweiz
who can i download the final releas please??
_________________________
Greatest PAY TV UBB -->> http://www.dpsc.de

Top
#139689 - 04/24/01 09:19 AM Re: [6.0x] MegaMod [Finished]
Stuck