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?
I also recieved this error when I'd finished hacking the files and tried accessing cp.cgi
There was a compilation error while loading the UBB.classic libraries and data files:
syntax error at ubb_lib.cgi line 1409, near ") ||" 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.
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 '||' syntax. Could you display the lines in and around lines 1409 and 1425 in cp.cgi?
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..
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)$/;
Edit: mmcpadd: [code][/code]Does it make sense that Moderators can change forum settings but megamods can't? I think MegaMods should be able to change both General and Forum settings.
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??
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.
[code][/code]LK, that was meant as a demostration. Not an actual appliable fix! [/b]Whoops.. Forgot about that one.. Awesome work brett, I think it's working flawlessly now (for the first time ever)..
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
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..
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
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.