Modification Name: Mega Mod
Author(s): Brett
Description: Makes a new status of a moderator to every board(like an administrator) without being listed, but no access to control panel(if not desired).
(MegaMod menu is put under the Moderator one.)
Demo: n/a (CP Mod)
Requirements: UBB 6.6.x, UBB 6.7 Beta 1
Download Link: For UBB 6.6.x ONLY:
https://www.ubbdev.com/ubb/upload/00006378/megamod6.6.zip For UBB 6.7 ONLY:
https://www.ubbdev.com/ubb/upload/00006378/megamod6.7.zip
*goes to test*
OOOH, OOOOH, OOOOH, i have shouts!
Great work Brett, can't wait to see pm folders ported
..
Well, everything looks perfect and acts perfect on the userside... Waiting for al to post findings on cp side...
No polls option for megamods in cp (allow megamods to make polls)
No directory option for megamods under status
couple things.
It took less than 10 minutes for the demodding bug to show up. Also, it had to remove the lines
} else if($profile->[8] eq 'MegaModerator') {
$profile->[8] = 'MegaModerator';
because it caused a white page for the member manage page.
Also, you can't let megamods create or vote in polls.
And megamods aren't listed in the directory dropdown, and they are listed last in the directory.
Also, any change of getting more explanation on the megamod page? It just shows some text boxes. If I hadn't used the megamod hack before, I would just start typing in public names
That demodding bug is nutz, it never goes away. I would love for this to work.
Alright, just did some updates. If you installed the version from last night,
Click Here , then download the zip and reupload the .pl file.
I'm not getting this demodding bug, maybe cuz i only have 2 members on my test board. So if you get 8 people on there, it only saves 7? er..
EDIT: Gizzy, i have the pm folders ported, but i'm putting in sorting, it should be done tomorrow.
That seems to have done the trick, it's working VERY well.
Brett, that's a different demodding bug where the 8th person is never modded. I'm talking about when after a couple posts, all of a sudden the Megamods are all demodded, but are still listed as megamods in the cp
I have a user that's a megamod on Netwerkin so i'll be banging on this pretty hard. I used to have my account as a megamod and a user that never ever logged into the board itself was the admin. That way I didn't have to worry about having my account hijacked and losing total control of the board till I got to the FTP.
I'll keep y'all (<---southern drawl sound) posted.
Well, so far I've been posting like crazy with the test account and no odd behavior or demodding. I know that it will fail just after I proclaim it working.
Okay, I ended up uninstalling this. It didn't demod anyone but it did have a one behavior that I had to fix. I wasn't able to let moderators select their own avatars with this mod in. It affected the way that the avatar page behaved in the profile section of the CP. I didn't look at the code myself to try to figure out why.
If anyone (CC, help please!) has a chance to really look at this hack it would be really nice to have it working.
Moderators can't have custom titles either. It automatically unchecks the checkbox upon submission, and it's not bold like the rest of the groups
It can't be far from working though, the actual moderator functions on the boards were working.
and no one has been demodded this time.. so I think that bug might be fixed somehow. Only issue I have with this is the custom avatar/title thing
could it be that (mega ?moderator) replacement for Moderator in some of the pages?
Yo Bretty, any word on this?
last I heard he was swamped, give him a few days...
I know how that is. What the hell? There are others here that might be able to give it a go. I'm talking about me BTW, if that is the only issue right now then I think given enough time and a few 12 packs of diet Coke I can come up with *something*.
lol go for it, i've poked it and i can't figure the problem
Sorry Randy and all, i'm slackin
, i stumpled upon the fix and really don't believe it. It's so simple, it's rediclous. Just bare out that this worked. Al can even tell ya.
#in cp2_lib.cgi
#find:
$def->{values} = [qw( administrators megamoderators moderators senior_members junior_members COPPA_members )],
# replace with:
$def->{values} = [qw( administrators moderators senior_members junior_members COPPA_members megamoderators )],
What it did was offsetted the array to messed with the 'force' of the ubb.
But hey it's all good.
initial files updated? Thanks for the fixes
quote:
Originally posted by AllenAyres:
initial files updated?
Of course,
Thanks
quote:
Originally posted by Gizzy:
lol go for it, i've poked it and i can't figure the problem Thank God Brett fixed it, I'm saved.
GJ Brett
...
Hi,
who can update MegaModerators hack for 6.7? I think only ubb_profile.cgi have to re-hack...
Please......
Wow, ubb_profile.cgi is a lot different. It made Beyond Compare have to work.
my head is spinning trying to get the code to work
I'll try to have it out today if Brett doesn't mind. By Brett not replying today, that means he doesn't mind
https://www.ubbdev.com/ubb/upload/00020028/Megamod6.7.txt no code changed, so I didn't take credit for it. Charles just moved some code
Hi Al,
thank you very much, but now when I want to edit a forum at cp I get the following erro:
Fatal error:
(RequireVars) /home/www/web17/html/ubb/Templates/cp2_forumedit.pl: Unmatched right curly bracket at /home/www/web17/html/ubb/Templates/cp2_forumedit.pl line 260, at end of line
syntax error at /home/www/web17/html/ubb/Templates/cp2_forumedit.pl line 260, near "}"
Compilation failed in require at /home/www/web17/html/cgi-bin/ubb_lib.cgi line 931.
What can I do?
replace with! not add after! you made the same mistake last time
Thanks Al,
but at the readmefile from MegaModerators hack you can find the following:
###Open cp2_forumedit.pl
########################################################
#####################
# find (both times) #
#####################
} qw( administrators moderators senior_members junior_members COPPA_members );
#############
# add above #
#############
} qw( administrators moderators senior_members junior_members COPPA_members megamoderators );
thx
d-talk
Originally posted by Weird Al:
my version doesn't.
Mine does, downloaded this morning. Just being a smart@ss. i'm sure it's fixed now.
oops. forgot "anymore"
Haha, it's been a long day. Kids, driving, freeways, Ikea after Christmas sale, ex-wife, dominos pizza, lack of sleep.
you had dominos too?
pepperoni and mushroom here
got the 2 mediums 2 toppings (pepperoni and xtra cheese) for $13.99 and 20 hot wings.
Added Download Link for UBB 6.7 Beta.
New feature is the use of unlimited MegaMods thanks to the javascript from the moderator page, which is why it says forum 1's name at the top of the addition page. *whistles innocently*
Originally posted by Weird Al:
I'll try to have it out today if Brett doesn't mind. By Brett not replying today, that means he doesn't mind
btw Al, i was at my parents house all week for christmas whom don't have net access
Originally posted by Brett:
btw Al, i was at my parents house all week for christmas whom don't have net access
They don't have net access and you didn't buy it for them for Christmas
Anyhoo, it's not like I took credit for it
Brett, huge bug. If a user is a megamod, and you update their profile via the cp, they become admin.
A semi-tested fix.
find:
$newfour .= "Admin" if $user_is_admin;
replace with:
$newfour .= "Admin" if ($user_is_admin && $profile->[8] ne 'MegaModerator');
cp2_membermanage.cgi for all you who couldln't find where to throw al's code...
So it does work? Sorry i don't have a public demo at the moment, and he said 'semi-tested' so i wasn't sure whether or not it worked.
It appears that it's working for me so I'd guess lol..
it was semitested when I wrote it, now has been tested since then and it's still working
ZIP file updated per Ian's fix
Could you take a look at this please?
In the control panel, for the avatar permissions and the custom names, I cannot get "moderator" to be checked after the addition of this mod. Here are screenshots to show you what I mean:
This is the same problem I had a while back, I thought it was resolved.
I've got a good one... When I try to view a user profile it errors out with a blank page...
Gizzy, we need more info. Are you viewing as a Megamod, are you viewing a megamod's profile, is it just viewing any profile?
Ellen/Randy. Same fix as earlier in this thread applies. Seems the install got reverted.
Viewing as admin to any profile. I've rehacked the files about 4 times.
that's odd, as I do not experience this. Check your error log and report back
Yeh check my 400 meg apache error log, how about no? All I know is I followed instructions and it works without this mod. It's on my beta board btw, which you both have access to...
http://beta.undergroundnews.com/cgi-bin/ultimatebb.cgi?/profile/4.html
fixed. user error
Not my fault wordpad hates highlighting entire lines...
Originally posted by Ellen:
Could you take a look at this please?
In the control panel, for the avatar permissions and the custom names, I cannot get "moderator" to be checked after the addition of this mod. Here are screenshots to show you what I mean:
Issue verifide on latest download.
And I already said the fix
Originally posted by Brett:
Sorry Randy and all, i'm slackin
, i stumpled upon the fix and really don't believe it. It's so simple, it's rediclous. Just bare out that this worked. Al can even tell ya.
#in cp2_lib.cgi
#find:
$def->{values} = [qw( administrators megamoderators moderators senior_members junior_members COPPA_members )],
# replace with:
$def->{values} = [qw( administrators moderators senior_members junior_members COPPA_members megamoderators )],
What it did was offsetted the array to messed with the 'force' of the ubb.
But hey it's all good.
Well that's fixed, Brett just needs to update the zip...
Hi,
I have the problem, that my megamorderatos can not delet any threads or edit andy threads....
What can be wrong?
Sorry,
I made a mistake by hacking ubb_lib.cgi
i'm having a problem...
when i remove a megamod through the cp, it still says 'MegaModerator' in the user's profile, so they're still treated as one.
does this happen for anyone else?
did you enable custom titles for MegaModerators? If so, their custom title is MegaModerator and all you have to do is edit that in their profile
Ian, I believe he's saying that when he removes a megamod the user still retains their status.
Gizzy is right, it's not the custom title. it's the user status on line # 9 in the profile that isn't being changed.
so uh... can anyone point me in the right direction to fix this problem? please?
you'll need to wait on brett
Sorry, i have been unbelieveably busy lately, but will do a fresh install tonight(when i get off work in 2 1/2 hours) and a thorough setup to root this problem out once and forall.
thanks. i really appreciate the help.
I have rehacked on a fresh 6.7 and confirmed that it works. Actually the install file didn't change, but the cp2_megamods.pl file did, and i tested it out to remove the megamods properly. You may need to readd the megamods then delete them to remove the status.
If you followed the instructions correctly, the custom avatars/polls should have the megamods at the bottom of the list, and they will work correctly. If you do not, rehack cp2_lib.cgi and cp2_membermanage.cgi.
Lol, so there is an update and it's in cp2_megamods.pl
that's right capn'
i updated cp2_megamods.pl and it works like a champ.. thanks!
Does that mean you also updated all the other bugs mentioned in this thread? lol...
Well that's fixed, Brett just needs to update the zip...
yeah, i had done all of that before i asked my initial question.
Brett said the install file hadn't changed, so i naturally tried updating the cp2_megamods.pl file first, and it worked perfectly.
For whatever the reasons, I cannot get this mod to work correctly on my test site.
I found all the code in the 6.7 file ... replaced or added where needed, but when I click on the megamod link in the CP, all I get is the pop-up for forum 1 (to choose members to be a megamod)--it won't let me select other forums/profiles--to pull from.
When I go into other forums to *act* as a mod (via the megamod properties), I'm denied access.
I haven't the foggiest idea why it won't take ... as best as I can tell, I've followed all of the instructions, modified all the required files ...
Unless someone can point out what might be wrong, I'm just going to leave this mod alone.
it only says forum 1 due to a bug. Anyone added via that popup should be a megamod once you click Submit on the main page (non-popup)
All-righty, I'll give it another shot.
It seems to be working ... thanks for the head's up.
Getting an error trying to download the .zip file. Update the location, or anyone else have a copy for 6.7, please?
Thank you, sir.
I get the followin error at the top of the cp page (everything seems to be working, but I hate to see error messages):
quote:
[Sun Mar 21 23:31:42 2004] wwwcgi-bincp.cgi: Use of uninitialized value in string eq at /www/ubb/Templates/cp2_megamods.pl line 79.
Any ideas?
Hmm.. Zammit I get this error too along with, cgicp.cgi: Use of uninitialized value in split at noncgi/Templates/cp2_megamods.pl line 81. so either we are both doing something exactly wrong or maybe there is a bug? I too hate to see error messages...
To any of my heroes out there, any ideas of how to fix please?
Updated ZIP file with fix.
Thanks Brett! Was the fix only in cp2_megamods.pl or were there additional changes in the install? I tried just uploading the new cp2_megamods.pl file but when I click on Megamods in the control panel I get this error.
Fatal error:
(RequireVars) /noncgi/Templates/cp2_megamods.pl: Global symbol "$help" requires explicit package name at /noncgi/Templates/cp2_megamods.pl line 87.
Global symbol "@Megamods" requires explicit package name at /noncgi/Templates/cp2_megamods.pl line 203.
Global symbol "@Megamods" requires explicit package name at /noncgi/Templates/cp2_megamods.pl line 220.
Compilation failed in require at /cgi/ubb_lib.cgi line 952.
Just hoping there is a quick change I can make and it will work
Yea, the only changes were in cp2_megamods.pl. I just updated the zip again to which it should definitely fix it.
That seemed to do the trick! Thanks Brett, you rock man!
My megamod isn't able to move topics from one forum to another-- is there a way I can patch this?
...or am I the only one experiencing this difficulty?
My board uses me as a megamod instead of an admin to discourage cookie-thieves. But whenever I want to edit a post or move a topic, it tells me that only an admin or moderator can perform that function.
Did I install the hack wrong? Or is there something I need to do to make this work for me?
my megamods haven't experianced this error.
Thanks for the reply-- this is encouraging because it tells me I might have installed it incorrectly. I'm going to reinstall it and see if that fixes things. Again, many thanks!
Yeh sometimes the best thing to do is re-install to ensure it's installed correctly
... I've very often installed mod's at 4am after being up for 2 days and when I went to error test the next day, boy did I find a lot of errors :x...
hmmm.... Nope-- I checked it twice line by line.
BUT, I did notice something awry-- I tried re-downloading the hack to make sure I have the most current version, and I notice that the install.txt says its for version 6.6, 6.61 only.
Even the first post of this thread that has the link for the 6.7 version downloads the "6.6, 6.61" version.
Seeing as I'm running 6.7, I suspect that this is the problem. Does anyone have a link to the version of this hack for 6.7? Much appreciated.
I searched high and low for the download link, and it's in the first post
It may say that but it is a seperate build (keep in mind it was coded for 6.6 then ported to 6.7, looks liek brett never updated the version in the text)
Wow, this one was driving me crazy; then I had a Eureka moment!
My user was staying logged in between sessions. When I made that user a megamod, it was showing that I was a megamod, but I kept getting denied megamod privledges.
So I went to my forum, logged out, logged back in, and BAM, BABY!!! It works like a charm!
Thanks for helping me figure this one out, guys!
Interesting enough.. as long as you got it working :x...
Kewl mod
Question, is it possible to prevent both megamods and regular mods from deleting posts?
Thanks
What's the point of modding (or megamodding) someone if they can't delete posts? The main part of both status levels is so people can monitor your site and edit/delete what doesn't belong...
Because some can't understand what kind of posts i dont want them to delete
Try the following in ubb_edit_post.cgi (untested; they'll still have the checkbox to delete the post, but if they select it, it will show them an error and not delete it)
Find:
if($permit_delete ne "true") {
Replace with:
if($permit_delete ne "true" || ($user_profile[8] ne 'Administrator' && $user_number != $profile_number)) {
How about in ultimatebb.php:
Find:
if (!$privatepath && preg_match("/Admin/i", $profile[4])) {
Replace with:
if (!$privatepath && (preg_match("/Admin/i", $profile[4]) || $profile[8] == "MegaModerator")) {
Find:
if ($privateforums && preg_match("/Admin/", $profile[4])) {
Replace with:
if (!$privatepath && (preg_match("/Admin/i", $profile[4]) || $profile[8] == "MegaModerator")) {
Sorry again for the late reply , the edit in the ultimatebb.php didnt do it while the edit in the ubb_edit_post.cgi did work
Thanks
The ultimatebb.php edit was just something I added, nothing to do with your request