php forum
php mysql forum
php mysql smarty
 
Page 1 of 7 1 2 3 4 5 6 7 >
Topic Options
#153545 - 06/05/02 01:32 PM [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Name: MegaMod

Description: Creates new status of moderator on every board without being displayed, like an admin but without cp access or limited (if not disired)

Download: http://www.ubbdev.com/ubb/upload/00006378/megamod6.3.zip

Top
#153546 - 06/05/02 05:12 PM Re: [6.3.x] [beta] MegaMod
Oblivion Knight Offline
Spotlight Runner-Up

Registered: 03/27/02
Posts: 422
Loc: England, UK
Is there a chunk of code missing with cp_lib.cgi..?
I ask because your instructions tell me to open cp_forums.cgi, replace 2 codes and then close cp_lib.cgi and not cp_forums.cgi. Is there code missing or is it a basic typo? smile

Thanks,
Oblivion Knight
_________________________
- OBK
- Gaming Update
- <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!

Top
#153547 - 06/05/02 06:22 PM Re: [6.3.x] [beta] MegaMod
Oblivion Knight Offline
Spotlight Runner-Up

Registered: 03/27/02
Posts: 422
Loc: England, UK
I also recieved this error when I'd finished hacking the files and tried accessing cp.cgi frown

There was a compilation error while loading the UBB.classic libraries and data files:

syntax error at ubb_lib.cgi line 1409, near ") &#0124;&#0124;"
syntax error at ubb_lib.cgi line 1425, near "} else"
Compilation failed in require at /home/liberifa/public_html/umbrella/cgi-bin2/cp.cgi line 113.

Please make sure that you uploaded the CGI and Variables files to the proper directory, permissions are set properly on the files, and that paths in the control panel are set correctly.
_________________________
- OBK
- Gaming Update
- <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!

Top
#153548 - 06/05/02 10:09 PM Re: [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Sorry, there isn't. Previous versions called for cp_lib.cgi to be modified but now it doesn't need it.

That error doesn't seem to be with this hack. That error is looking for something with the or '&#0124;&#0124;' syntax. Could you display the lines in and around lines 1409 and 1425 in cp.cgi?

Top
#153549 - 06/06/02 03:35 AM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Good to see it ported. I will test it for you later.

Top
#153550 - 06/06/02 03:53 AM Re: [6.3.x] [beta] MegaMod
Oblivion Knight Offline
Spotlight Runner-Up

Registered: 03/27/02
Posts: 422
Loc: England, UK
[code][/code]
_________________________
- OBK
- Gaming Update
- <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!

Top
#153551 - 06/06/02 07:19 AM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Error is found...

$Moderator = $$Moderator;

Should be...

$Moderator = $Moderator;

Top
#153552 - 06/06/02 07:50 AM Re: [6.3.x] [beta] MegaMod
Oblivion Knight Offline
Spotlight Runner-Up

Registered: 03/27/02
Posts: 422
Loc: England, UK
I re-hacked and everything worked fine with a couple of slight modifications. LD, the typo you mentioned isn't a typo, I left it there when I re-hacked and all is working peachy.. smile

Brett, here's a couple of bug fixes for you:

In ubb_lib_secgroups.cgi:

return 1 if $self->{PRIMARY_GROUP} =~ m/^(administrators|megamoderators)$/);

SHOULD BE:

return 1 if $self->{PRIMARY_GROUP} =~ m/^(administrators|megamoderators)$/;

In cp_common.pl:

document.writeln("<option value=$vars_config{CGIURL}/cp.cgi?ubb=vars_megamod&r=$ran> - MegaModerator Settings</option>");'

SHOULD BE:

document.writeln("<option value=$vars_config{CGIURL}/cp.cgi?ubb=vars_megamod&r=$ran> - MegaModerator Settings</option>");

In ubb_lib.cgi
You are asked to find this

unless (($profile[8] eq 'Administrator')) {

WHICH SHOULD BE:

unless ($profile[8] eq 'Administrator') {
_________________________
- OBK
- Gaming Update
- <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!

Top
#153553 - 06/06/02 01:56 PM Re: [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
ack friggin spelling errors! Thanks oblivion knight! So everything works the way it should?

Zip file updated to current fixes. smile

Top
#153554 - 06/06/02 03:13 PM Re: [6.3.x] [beta] MegaMod
Oblivion Knight Offline
Spotlight Runner-Up

Registered: 03/27/02
Posts: 422
Loc: England, UK
Yes everything is working ok.. smile
http://www.liberifatali.com/umbrella/cgi-bin/ultimatebb.cgi

I even got a cp patch done for you..
http://www.liberifatali.com/umbrella/ubbhacks/mmcpadd.txt

Feel free to add it to the readme wink
_________________________
- OBK
- Gaming Update
- <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!

Top
#153555 - 06/06/02 04:29 PM Re: [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Almost forgot about that. shocked I rebuffed the 6.2 version of the cp patch with oblivion knights fix.

Right now, i'll make patches to other hacks that may affect this that are currently in the 6.3 beta board.

Top
#153556 - 06/06/02 07:41 PM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Glad to hear it's working. Now I can install it. smile

Top
#153557 - 06/08/02 03:51 PM Re: [6.3.x] [beta] MegaMod
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Hmm...

Code:
[/code]Is:

 [code]
supposed to be:

[code][/code](without quotes)?

Just wondering.. Apart from that, works fine on my board, thanks for porting, brett smile

Top
#153558 - 06/08/02 08:17 PM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Yes it's supposed to have quotes. Everything that has a $vars_something{something} needs quotes.

Top
#153559 - 06/09/02 04:23 AM Re: [6.3.x] [beta] MegaMod
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Hmm.. OK.. Just wondered, cause I couldn't find the version with quotes in ubb_lib.cgi frown

Top
#153560 - 06/09/02 05:42 AM Re: [6.3.x] [beta] MegaMod
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
LD, are you sure? I don't think so tipsy

CTM, you're right.... smile

Edit: mmcpadd: [code][/code]Does it make sense that Moderators can change forum settings but megamods can't? tipsy I think MegaMods should be able to change both General and Forum settings.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#153561 - 06/09/02 07:34 AM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
You can read me too well LK.

frown

Top
#153562 - 06/10/02 04:04 AM Re: [6.3.x] [beta] MegaMod
mark99 Offline
Member

Registered: 03/11/01
Posts: 314
Since when were normal mods allowed CP access?

Top
#153563 - 06/10/02 05:24 AM Re: [6.3.x] [beta] MegaMod
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
They always could, they can access Prune and Forum Settings - and choose only their forums.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#153564 - 06/10/02 06:09 AM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
It's also a good thing if your mods can access IP bans when your not around to ban those troublemakers. tipsy

Top
#153565 - 06/11/02 05:39 AM Re: [6.3.x] [beta] MegaMod
mark99 Offline
Member

Registered: 03/11/01
Posts: 314
Never knew that, is there anyway to disable mod CP access?

Top
#153566 - 06/11/02 06:37 AM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Not really, easiest way is to go through cp.cgi and delete all the permissions for mods to enter.

Top
#153567 - 06/15/02 03:40 AM Re: [6.3.x] [beta] MegaMod
Oblivion Knight Offline
Spotlight Runner-Up

Registered: 03/27/02
Posts: 422
Loc: England, UK
Problem: My MegaMod's avatar keeps disapearing..

Any way to solve this? frown
_________________________
- OBK
- Gaming Update
- <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!

Top
#153568 - 06/15/02 09:30 AM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
You need to add some code to the avatar files so it allows MegaMod status to use avatars/custom avatars.

Top
#153569 - 06/16/02 08:40 AM Re: [6.3.x] [beta] MegaMod
Oblivion Knight Offline
Spotlight Runner-Up

Registered: 03/27/02
Posts: 422
Loc: England, UK
brett,
Here's the code you need for avatars to work for MegaMod's properly.. Please add this code to your hack smile

http://www.liberifatali.com/umbrella/ubbhacks/avatarmmaddon.txt

I'm currently bug testing this code, and so far it's working flawless..
_________________________
- OBK
- Gaming Update
- <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!

Top
#153570 - 06/16/02 07:04 PM Re: [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Excellent! I added Oblivion Knight's fix plus this.

[code][/code]LK, that was meant as a demostration. Not an actual appliable fix! tipsy

Top
#153571 - 06/16/02 07:13 PM Re: [6.3.x] [beta] MegaMod
the_wiz Offline
Junior Member

Registered: 12/18/01
Posts: 24
hi I have a question about this mega mod hack.. is it somehow possible to change it so they are considered Junior Administrators instead of Mega Moderators??

Top
#153572 - 06/16/02 08:01 PM Re: [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Try going to the 'Members' dropdown in the control panel and select 'user titles'. If you hacked everything correctly, there's an option to change the megamod's title to whatever you want.

Top
#153573 - 06/16/02 08:10 PM Re: [6.3.x] [beta] MegaMod
the_wiz Offline
Junior Member

Registered: 12/18/01
Posts: 24
thanks

Top
#153574 - 06/17/02 06:42 AM Re: [6.3.x] [beta] MegaMod
Oblivion Knight Offline
Spotlight Runner-Up

Registered: 03/27/02
Posts: 422
Loc: England, UK
[code][/code]LK, that was meant as a demostration. Not an actual appliable fix! tipsy [/b]</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">Whoops.. Forgot about that one.. shocked
Awesome work brett, I think it's working flawlessly now (for the first time ever)..
_________________________
- OBK
- Gaming Update
- <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!

Top
#153575 - 06/18/02 06:30 AM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Good to hear it's all fixed, I think it's safe to install now. laugh

Top
#153576 - 07/01/02 07:07 PM Re: [6.3.x] [beta] MegaMod
Orb Offline
Member

Registered: 12/13/00
Posts: 52
Loc: London,England
great hack thanks for bringing it to 6.3

this is not realy a problem with megaods rather than an adition to our megamods
ive created another user group called semiadmins
i modified what i could of your files(sorry if this is bad but i was never planning on shareing with credit but yours)
it sets SemiAdministrator in the profile they have admin functions on the forum and there profile in cp shows SemiAdministrator
ive set up there cp access just like megamods but changing it for semiadmins
they can log into the cp fine but when trying to go to the req que it errors and says only admins and mods can perform this function and im locked out of the cp unless i close browesers down

any help would be great

Top
#153577 - 07/01/02 08:22 PM Re: [6.3.x] [beta] MegaMod
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Well, did you set ALL permissions correctly in cp.cgi?

Top
#153578 - 07/01/02 08:52 PM Re: [6.3.x] [beta] MegaMod
Orb Offline
Member

Registered: 12/13/00
Posts: 52
Loc: London,England
yups all permisions are set correctly its not the normal you dont have access for here msgs

im wondering if its a cookie issue or something as if i send someone the files im sure they would see them as fine as i do

Top
#153579 - 07/04/02 08:55 PM Re: [6.3.x] [beta] MegaMod
Orb Offline
Member

Registered: 12/13/00
Posts: 52
Loc: London,England
bumping up

Top
#153580 - 07/05/02 08:40 AM Re: [6.3.x] [beta] MegaMod
Oblivion Knight Offline
Spotlight Runner-Up

Registered: 03/27/02
Posts: 422
Loc: England, UK
Why would you want to bother going through all the coding again when you can just set the 'MegaMod' title to 'Semi Admin' and change the wordlet for it too..? Seems a bit bizarre.. wink
_________________________
- OBK
- Gaming Update
- <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!

Top
#153581 - 07/05/02 01:49 PM Re: [6.3.x] [beta] MegaMod
Orb Offline
Member

Registered: 12/13/00
Posts: 52
Loc: London,England
cause we want the megamods also
its just the nature of how ranks and things are for our forum
semiadmins are in charge of a whole section and need to be able to ban memebers aprove them etc

megamods are just below semiadmins in rank and need less cp access but still need it

Top
#153582 - 07/05/02 03:55 PM Re: [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
I sorta see what your shooting at Orb.

It'll be ready tonight.

Top
#153583 - 07/05/02 04:12 PM Re: [6.3.x] [beta] MegaMod
Orb Offline
Member

Registered: 12/13/00
Posts: 52
Loc: London,England
ahhhhhh
thank you thank you thank you

Top
#153584 - 07/05/02 05:27 PM Re: [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio

Top
#153585 - 07/05/02 06:15 PM Re: [6.3.x] [beta] MegaMod
Orb Offline
Member

Registered: 12/13/00
Posts: 52
Loc: London,England
thanks for this i apreciate it
but im getting this error when i try and set a semiadmin or a megamod

cp_megamods.cgi: syntax error at /home/sites/site4/web/ubb6.3/cgi-bin/cp_megamods.cgi line 44, near ""1;n";"

Top
#153586 - 07/05/02 07:06 PM Re: [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
opps, ok should be fixed.

Zip file updated. Orb, just reupload cp_megamods.cgi.

Top
#153587 - 07/05/02 07:29 PM Re: [6.3.x] [beta] MegaMod
Orb Offline
Member

Registered: 12/13/00
Posts: 52
Loc: London,England
yups that fixed the megamods
semiadmins gives no errors but it doesnt write anything if you go back and look theres no semiadmins set

Top
#153588 - 07/06/02 07:46 PM Re: [6.3.x] [beta] MegaMod
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Oh, jeez idiot me shocked

Orb, in cp_megamods.cgi
[code][/code]Zip file updated with the fix. I