Hmm...
[/code]Is:
</pre></div></div>supposed to be:<br><br> [code]
(without quotes)?
Just wondering.. Apart from that, works fine on my board, thanks for porting, brett
Yes it's supposed to have quotes. Everything that has a $vars_something{something} needs quotes.
Hmm.. OK.. Just wondered, cause I couldn't find the version with quotes in ubb_lib.cgi
LD, are you sure? I don't think so
CTM, you're right....
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.
You can read me too well LK.
Since when were normal mods allowed CP access?
They always could, they can access Prune and Forum Settings - and choose only their forums.
It's also a good thing if your mods can access IP bans when your not around to ban those troublemakers.
Never knew that, is there anyway to disable mod CP access?
Not really, easiest way is to go through cp.cgi and delete all the permissions for mods to enter.
Problem: My MegaMod's avatar keeps disapearing..
Any way to solve this?
You need to add some code to the avatar files so it allows MegaMod status to use avatars/custom avatars.
brett,
Here's the code you need for avatars to work for MegaMod's properly.. Please add this code to your hack
http://www.liberifatali.com/umbrella/ubbhacks/avatarmmaddon.txt I'm currently bug testing this code, and so far it's working flawless..
Excellent! I added Oblivion Knight's fix plus this.
[code][/code]LK, that was meant as a demostration. Not an actual appliable fix!
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)..
Good to hear it's all fixed, I think it's safe to install now.
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
Well, did you set ALL permissions correctly in cp.cgi?
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
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
I sorta see what your shooting at Orb.
It'll be ready tonight.
ahhhhhh
thank you thank you thank you
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";"
opps, ok should be fixed.
Zip file updated. Orb, just reupload cp_megamods.cgi.
yups that fixed the megamods
semiadmins gives no errors but it doesnt write anything if you go back and look theres no semiadmins set
Oh, jeez idiot me
Orb, in cp_megamods.cgi
[code][/code]Zip file updated with the fix. I don't see any further errors. Sorry about that.
thanks again for the work on this
it sets semi admins now but i can only set one if i set another it removes the first one i set
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.
Zip File updated with some cleaned up coding that i was using from that semiadmin thing. Maybe this'll help.
Will i have to re-hack all files, certain files or just upload updated files contained in the zip?
Just upload the files, the hacking is the same.
Does this work with v6.3.1?
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 ???
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
quote:
Originally posted by mark99:
Does this work with v6.3.1?
It should, may be a few tiny code changes but you can figure those out yourself with partial searching.
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)
Templates:
cp_common.pl
cp_user_titles.pl
cp_vars_avatar.pl
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.
Otherwise all is fine, hope that's of some help.
Alrighty, just updated zip to 6.3.1 standings to match it's new stylesheet, and wordletized everything.
mark99, do this fix for your problem #1:
quote:
in cp_users.cgi
###FIND:
# prepare forum permissions array, if not an admin
if ($user_profile[8] ne "Administrator") {
###REPLACE WITH:
# prepare forum permissions array, if not an admin
if ($user_profile[8] eq 'Administrator' | 'MegaModerator') {
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.
Does everyother status(including megamods) show the correct status?
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.
They're still mods, it just doesn't show.
I get an error that says...
syntax error at /usr/local/psa/home/vhosts/netwerkin.com/httpdocs/noncgi/Templates/cp_vars_megamods.pl line 16, near "// chomp"
syntax error at /usr/local/psa/home/vhosts/netwerkin.com/httpdocs/noncgi/Templates/cp_vars_megamods.pl line 20, near "}"
It seems odd since that is the file you included in the zip, I didn't edit it.
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:
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...
code:
$Megamoderator = "00000001";
But it contains this if I set more than one...
code:
[qb]$Megamoderator = "||^||00000012";
[/qb]
Remember that I had to comment out this line in cp_vars_megamod.pl to even be able to set the megamods.
Heh.. TheX beat me to my lame fix..
Mine didn't work...I was just putting your profile fix in.
Edit: I put the code in that you posted for the profile file and I still only get the same conditions I posted above.
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.
I have one more to add. When I have the hack installed the moderators passwords become viewable in the CP.
I'm going to rehack the files one more time but I'm "almost" certain that I've done it right.
MegaMod for 6.3.1 is officially screwed at the moment..
You're right.. MegaMods have the status, but not the powers..
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.
OMG! I was in PHP mode on that comment thing. hehe... ahh..
Anyways, i caught myself on some errors. I'm very sorry on this, as i don't have anyhost yet to test these on.
Zip updated, everyone will have to rehack.
Nope, no go. It list the people as mega-mods but they have no mod powers. It also unhides the moderator passwords in the CP.
Edit: It's also back to saying that the admin doesn't have permission to go back to the megamoderator settings.
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..
Okay, I just rehacked everything and uploaded the files and......
BLAM (thanks Bookie) everything works. Thanks so much. I'll hammer on the boards tonight and give report on the progress later...
So far, so good...
Edit: I got the WOL list for pntf working so megamods can see IP addresses if anybody wants it.
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
code:
###FIND:
if($viewer_profile[8] eq 'Administrator') {
%pntf_info = %{ $PNTF->examine3_user4admin($in{u}) };
$pntf_show++ if %pntf_info;
} elsif(($vars_pntf{LastSeen} eq "yes") && ($viewer_profile[8] ne 'Administrator')) {
###REPLACE WITH:
if($viewer_profile[8] eq 'Administrator' | 'MegaModerator')) {
%pntf_info = %{ $PNTF->examine3_user4admin($in{u}) };
$pntf_show++ if %pntf_info;
} elsif(($vars_pntf{LastSeen} eq "yes") && ($viewer_profile[8] ne 'Administrator' || $viewer_profile[8] ne 'MegaModerator')) {
That didn't work, do this instead...
code:
[qb]###FIND:
if($viewer_profile[8] eq 'Administrator') {
%pntf_info = %{ $PNTF->examine3_user4admin($in{u}) };
$pntf_show++ if %pntf_info;
} elsif(($vars_pntf{LastSeen} eq "yes") && ($viewer_profile[8] ne 'Administrator')) {
###REPLACE WITH:
if($viewer_profile[8] eq 'Administrator' | 'MegaModerator') {
%pntf_info = %{ $PNTF->examine3_user4admin($in{u}) };
$pntf_show++ if %pntf_info;
} elsif(($vars_pntf{LastSeen} eq "yes") && ($viewer_profile[8] ne 'Administrator' || $viewer_profile[8] ne 'MegaModerator')) {
[/qb]
Wait, I just saw that and updated the zip.
You'd better do this:
###FIND:
if($viewer_profile[8] eq 'Administrator') {
%pntf_info = %{ $PNTF->examine3_user4admin($in{u}) };
$pntf_show++ if %pntf_info;
} elsif(($vars_pntf{LastSeen} eq "yes") && ($viewer_profile[8] ne 'Administrator')) {
###REPLACE WITH:
if($viewer_profile[8] eq 'Administrator' || $viewer_profile[8] eq 'MegaModerator')) {
%pntf_info = %{ $PNTF->examine3_user4admin($in{u}) };
$pntf_show++ if %pntf_info;
} elsif(($vars_pntf{LastSeen} eq "yes") && ($viewer_profile[8] ne 'Administrator' || $viewer_profile[8] ne 'MegaModerator')) {
There is still an extra bracket in there.
this...
code:
if($viewer_profile[8] eq 'Administrator' || $viewer_profile[8] eq 'MegaModerator')) {
Should be this...
code:
[qb]if($viewer_profile[8] eq 'Administrator' || $viewer_profile[8] eq 'MegaModerator') {
[/qb]
Edit: it is working great though...excellent hack.
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..
Has the 'Moderators' loosing their status bug been fixed as well?
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.
Note Armenger in this topic:
http://www.ispreview.co.uk/ubb2/ultimatebb.php?ubb=get_topic;f=145;t=000182
He's classified as an '!EXTREME Member!', yet he's actually a moderator and if you go into his profile...
http://www.ispreview.co.uk/cgi-bin/ubb2/ultimatebb.cgi?ubb=get_profile;u=00000146
Now he shows as one, yet not on the 'Public_Topic_Page'.
---
Actually that whole topic is the perfect example because it has mods where the status shows and others where it doesn't.
ZIP updated again with TheX's fix.
I'm wondering if there's a new profile check that i'm not aware of, i'm re-going over the secgroups.cgi, new_reply.cgi, and lib.cgi files.
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.
It also works in Ubb 6.3.0, but, a minor edit was neccesary:
In Cp_user_titles.pl
code:
###FIND:
&RegField($vars_wordlets_cp{user_titles_mod_title}, "ModeratorTitle", "yes", "40", "1000", "", UBBCGI::escapeHTML($vars_misc{ModeratorTitle}), 3);
###ADD UNDER:
&AlternateColors;
&RegField($vars_wordlets_cp{user_titles_megamod_title}, "MegaModeratorTitle", "yes", "40", "1000", "", UBBCGI::escapeHTML($vars_misc{MegaModeratorTitle}), 3);
HAS TO BE
code:
[qb] ###FIND:
&RegField($vars_wordlets_cp{user_titles_mod_title}, "ModeratorTitle", "yes", "40", "1000", "", UBBCGI::escapeHTML($vars_misc{ModeratorTitle}), 3);
###ADD UNDER:
&RegField($vars_wordlets_cp{user_titles_megamod_title}, "MegaModeratorTitle", "yes", "40", "1000", "", UBBCGI::escapeHTML($vars_misc{MegaModeratorTitle}), 3);
[/qb]
but, thanks for this great hack!
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.
it works perfectley on 6.3.0...
No bugs to report for me either...works perfectly.
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.
It should, but the CP vars Template files went through alot of changes between 6.3.0 - 6.3.1 so there may be little changes in the find code.
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.
Hi folks
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.
Thanks in advance.
No, this mod gives global moderator powers.
the link is down anyone have the link for this?
*sigh*
I have a problem with the latest zip file..
quote:
error [C:/Andrew's Folder/UBB Hacks/UBB 6.3/megamod6.3.1.zip]: missing 1 bytes in Zip file (attempting to process anyway).
quote:
[qb]Cannot open file: it does not appear to be a valid archive.
If you downloaded this file, try downloading the file again.[/qb]
fixed it
Found a couple of bugs..
Fixing these also fixed the problem I had last night that we discussed on AIM
In
ubb_lib.cgiThis:
code:
if (($profile[8] eq 'Administrator') || ($user_profile[8] eq 'MegaModerator')) {
.
Should be:
code:
[qb] if (($profile[8] eq 'Administrator') || ($profile[8] eq 'MegaModerator')) {
[/qb]
.
This:
code:
unless (($profile[8] eq 'Administrator') || ($user_profile[8] eq 'MegaModerator')) {
.
Should be:
code:
[qb] unless (($profile[8] eq 'Administrator') || ($profile[8] eq 'MegaModerator')) {
[/qb]
.
In
ubb_profile.cgiThis:
code:
if(($viewer_profile[8] eq 'Administrator') || ($user_profile[8] eq 'MegaModerator') || ($user_profile[8] eq 'Moderator')) {
.
Should be:
code:
[qb] if (($viewer_profile[8] eq 'Administrator') || ($viewer_profile[8] eq 'MegaModerator') || ($viewer_profile[8] eq 'Moderator')) {
[/qb]
.
You're welcome..
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...File Updated. The link works now.
It says the zip file is corrupt when I go to extract it.
Sorry, (forgot to put it in binary mode)
Should work now.
Thanks, it now extracts.
The mod has been upgraded and tested it on 6.3.1.2.
brett, can you please make your siggy 150x
50? I mean I use 1280x1024 resolution and your sig image is still too big
Anyhow, very nice hack
I don't like the concept of mega moderators (also in other BB software), but I like how you did it as a hack.
One of these days, i'll get a sig that fits!
BTW Thanks LK
Looks good. Will most likely install it tomorrow
Brett:
Two problems I've found:
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.
Other than that, great job!
Help!
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:
[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.
Can you link me to a completed version to download.
It was the 5.45x version that I worked with that had the radio button choice. Personally, I like it that way; makes it much easier to use for me.
Brett, sorry to say, 7:46pm PST, your URL still doesn't work.
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.
My site went down due to overbandwidth
a couple of days ago and will be up on the first. Sorry for the inconvience.
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?
I have updated this, fixing the demodding bug. As to my knowledge, that was the only bug.
Is it possible to increase the number of Megamods from 8 to 12..?
Wow sweet hack...
Thanks a ton
I'm going to putting this one to use!
An error has occurred:
/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 "}"
I could use this hack if somebody has this one still hanging around.