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
We've hit a problem with MegaMods so it's not 100% bug free yet.
When i revoke an Admin or a Mod, the MegaMods also get revoked (this doesn't happen every time, only occasionally). There is obviously a caching problem somewhere, or rebuilding member stats or something along the lines of it.. I'll have a look at some of the coding tonight and see if I can come up with anything. Just thought I would report the problem.
quote: Originally posted by ViRuS2k: can someone please tell me how to add more mods in the cp pannel please !!! 7 isnt enough for me !!! i have 11 mods
what files do i need to rehack and what code do i put in tnx ???
There is another hack for this. Search this forum for 8 mod and you should be surprised
Found a bug and a few instruction problems, so I'll note them down to save you some time:
1) If you make a member a MegaMod and then authorize them to access a private forum, this turns them back into an ordinary member. Can be fixed by updating the CP MegaMods list a second time, just tedious.
2) The list of files to be edited in your instructions is missing a ton, it should be:
CGI-BIN: cp.cgi cp_forums.cgi ubb_lib.cgi ubb_lib_posting.cgi ubb_lib_secgroups.cgi ubb_new_reply.cgi ubb_new_topic.cgi ubb_pm.cgi ubb_pntf.cgi ubb_poll.cgi ubb_profile.cgi vars_worldslets_cp.cgi (no need for vars_worldlets.cgi to be listed, not edited)
3) You should also try to fix some of the first 50% of instructions, which seem to have line breaks and could cause problems for those less familiar with UBB HAcking.
Now I've got a new bug (might of been there before the above change, not sure).
While all my forums normal Mods are listed as such in the Control Panel, now on their profiles it only shows they normal 'Custom Title' and no 'Moderator' tag.
Seems to, only mods appear to have the problem, although for some reason one of my 8 mods shows the normal 'Moderator' title just fine, yet the rest have reverted back to the standard 'Custom Titles' by post count.
Ok, with a few bug fixes of my own I've nearly got it working on 6.3.1.. I have one last problem in the MegaModerator settings with permissions.. When I set MegaMods it works fine, I re-enter the settings and I get the following error:
Quote
quote: You do not have permission to access this area.
» Use your browser's back button to return.
.
I re-enter the MegaModerator settings again none of the MegaMods I set are there.. Any ideas..?
I was able to get past the error if I commented that line out but I have the same problem. after I set the megamods only 1 stays, and thats the second one in the top row. If I only set one then it seems fine (haven't gone far enough to see if he can mod) but if I set more than one then it get's messed up.
The vars_megamods.cgi contains this if I set only one...
The profile was for a separate error that I recieved whereby nobody could enter their profile to edit it, or view other users profiles.. . I'm going to contact LK and see if he can show us the way.. I'm impatient and don't want to wait any longer than I have to..
I have a great need for this hack. I don't surf the board as an admin (to prevent admin cookie theft) and I don't want to have my name listed in every forum as a moderator.
I updated my files and now I don't get any errors but even though I'm listed as a megamod my password is still viewable in the CP and my status is blank. I have no mod powers either. I just rehacked and get the same thing.
Looks as if the bugs are piling up, seem to be a couple of issues new with 'Status' titles and so forth among others mentioned above. Hope brett can find some fixes.
Well, you did better than I did. I couldn't get them to show the status. Once I uploaded the backup files though the moderators passwords became hidden again.
Alright, i didn't think the paranthesis made much difference.
Alright try the updated txt file in the new zip.
EDIT: TheX, that's a typo in cp_megamods.cgi, at the very bottom where it says "$vars_config{CGIURL}/cp.cgi?ubb=vars_megamods", it should be "$vars_config{CGIURL}/cp.cgi?ubb=vars_megamod". This is fixed with the zip.
Wow, guess i didn't put in as much time as i should have. Sorry again for the troubles.
I downgraded to 6.3.0 again and used the original version that you made for 6.3.x.. At least that one's working to a point (MegaMod's sometimes lose power, but are given it back again when megamoderator settings have been updated). I also noticed that your original "fixes" for this problem that you posted earlier don't work either..
Sorry, I did find an error. I was so happy about the mod working I forgot to open my profile (it didn't work). The instructions say to do this in ubb_profile.cgi
Will the updated cp_megamods.cgi still work with the 6.3.0 version..? I'm trying to kill the caching problem with setting megamods and then losing their power..
Here's an example and remember that for some unusual reason a few moderators are fine, yet some have the bug - no amount of profile, cache, Megamod or moderator listing updates will fix it.
I'm not having a problem with the status changing, but it would be nice if the dropdown box on the extended search options page for the view/edit members in the CP had megamods on it.
Just wait until the bugs start to kick in after a few days of usage =).
I finally gave in and removed all the code and files, it's just no good under 6.3.1 yet. Soo many issues with status and authority, it even turned my admins into mods at one point. Thank god for backups.
quote: Originally posted by mark99: Perfectly on 6.3.1?
Hmm once you remove it some of the moderator authority bugs still exist - ugg.. hope my backup member profiles work.
If you have problems with the member files you can edit the files of the people that you made MegaMods to fix it. I honestly have not had a single problem yet since the last try.
I have had a large amount of problems with this hack since 6.04 and have installed and removed it many times. I'm very familiar with the issues it can cause and have not entered this blindly.
I'm still not exactly clear what this mod will allow...
I need to set up a custom group below Moderators, who have access to perks like custom avatars and posting polls, but with no moderation or Admin ability. Will this mod do this?
It would be great to able to set these kind of permissions for each forum, like phpBB2 can do.
Link doens't work, can someone email gizmo[at]undergroundnews[dot]com with this hack please? Its beginning to seem standard that everyone's sites are down lol...
quote: Originally posted by Gizzy: Link doens't work, can someone email [email protected] with this hack please? Its beginning to seem standard that everyone's sites are down lol...
1- simply removing that megamod from the list does not take away their megamod status from their profile 2- if you do a 'member search', and the results contain a megamod, and you click 'submit' (without clicking their member number, that is), their megamod profile status vanishes, but they are still listed as a megamod in the megamod settings only.
Suggestion to fix both of them:
An older version of the mega mod hack allowed you to select 'mega mod' in the Administrator? Yes/No radio buttons. Moving the enabling mega moderator code into that, and that should kill two birds with one stone. After doing this you may need to add some coding to the area of the member database editing that displays results.
I installed the hack everything is working nicely, EXCEPT, you knew it was coming ... I can add the top row of mods in the settings but when I add member numbers to the bottom row they just dissapear, what did i mess up this time ??
I'm not getting Neo11223's problem, i've tried over and over to try but failed? Have you gotten the latest zip?
Quote
quote: [qb]Originally posted by Dark Templar[qb]: An older version of the mega mod hack allowed you to select 'mega mod' in the Administrator? Yes/No radio buttons. Moving the enabling mega moderator code into that, and that should kill two birds with one stone. After doing this you may need to add some coding to the area of the member database editing that displays results.
Al bundy's hack for 6.0 just added the megamod text boxs the moderator page, not the member search, unless your refering to a 5.0 version for which i wouldn't know. Anyway, where's the fun in doing it like that
I also am seeing the deleting problem. When i get back form work tonight, i'll take a closer look at it.
I see a large error in the coding. I was running this on 6.3.0 6.3.1 and even on my 6.4 test board, I followed the directions to a "T".
Well, when you're an Administrator (or a global moderator) and you are listed as a moderator of a forum (generally after the moderator page is updated) it'll over-write your forum status as "Moderator" which is quite a pain to have to re-upload your administrator file to get ones access level back.
Does anyone have a patch for this? I know that it is in this hack since everything worked fine on all of my forums before testing this hack.
I do have one question, is someone going to fix the problem of not being able to demote someone from the megamod position before this get's ported to 6.4. Just curious?
/ubb/Templates/cp_vars_megamods.pl: syntax error at /ubb/Templates/cp_vars_megamods.pl line 16, near "// chomp" syntax error at /ubb/Templates/cp_vars_megamods.pl line 20, near "}"
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.