UBB.Dev
Posted By: Brett [6.3.x] [beta] MegaMod - 06/05/2002 8:32 PM
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: https://www.ubbdev.com/ubb/upload/00006378/megamod6.3.zip
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 06/06/2002 12:12 AM
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
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 06/06/2002 1:22 AM
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 ") ||"
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.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 06/06/2002 5:09 AM
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?
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 06/06/2002 10:35 AM
Good to see it ported. I will test it for you later.
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 06/06/2002 10:53 AM
[code][/code]
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 06/06/2002 2:19 PM
Error is found...

$Moderator = $$Moderator;

Should be...

$Moderator = $Moderator;
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 06/06/2002 2:50 PM
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("");'

SHOULD BE:

document.writeln("");

In ubb_lib.cgi
You are asked to find this

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

WHICH SHOULD BE:

unless ($profile[8] eq 'Administrator') {
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 06/06/2002 8:56 PM
ack friggin spelling errors! Thanks oblivion knight! So everything works the way it should?

Zip file updated to current fixes. smile
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 06/06/2002 10:13 PM
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
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 06/06/2002 11:29 PM
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.
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 06/07/2002 2:41 AM
Glad to hear it's working. Now I can install it. smile
Posted By: CTM Re: [6.3.x] [beta] MegaMod - 06/08/2002 10:51 PM
Hmm...

Code
[/code]Is:

Code
</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 smile
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 06/09/2002 3:17 AM
Yes it's supposed to have quotes. Everything that has a $vars_something{something} needs quotes.
Posted By: CTM Re: [6.3.x] [beta] MegaMod - 06/09/2002 11:23 AM
Hmm.. OK.. Just wondered, cause I couldn't find the version with quotes in ubb_lib.cgi frown
Posted By: LK Re: [6.3.x] [beta] MegaMod - 06/09/2002 12:42 PM
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.
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 06/09/2002 2:34 PM
You can read me too well LK.

frown
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 06/10/2002 11:04 AM
Since when were normal mods allowed CP access?
Posted By: LK Re: [6.3.x] [beta] MegaMod - 06/10/2002 12:24 PM
They always could, they can access Prune and Forum Settings - and choose only their forums.
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 06/10/2002 1:09 PM
It's also a good thing if your mods can access IP bans when your not around to ban those troublemakers. tipsy
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 06/11/2002 12:39 PM
Never knew that, is there anyway to disable mod CP access?
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 06/11/2002 1:37 PM
Not really, easiest way is to go through cp.cgi and delete all the permissions for mods to enter.
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 06/15/2002 10:40 AM
Problem: My MegaMod's avatar keeps disapearing..

Any way to solve this? frown
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 06/15/2002 4:30 PM
You need to add some code to the avatar files so it allows MegaMod status to use avatars/custom avatars.
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 06/16/2002 3:40 PM
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..
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 06/17/2002 2:04 AM
Excellent! I added Oblivion Knight's fix plus this.

[code][/code]LK, that was meant as a demostration. Not an actual appliable fix! tipsy
Posted By: the_wiz Re: [6.3.x] [beta] MegaMod - 06/17/2002 2:13 AM
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??
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 06/17/2002 3:01 AM
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.
Posted By: the_wiz Re: [6.3.x] [beta] MegaMod - 06/17/2002 3:10 AM
thanks
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 06/17/2002 1:42 PM
[code][/code]LK, that was meant as a demostration. Not an actual appliable fix! tipsy [/b]
Whoops.. Forgot about that one.. shocked
Awesome work brett, I think it's working flawlessly now (for the first time ever)..
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 06/18/2002 1:30 PM
Good to hear it's all fixed, I think it's safe to install now. laugh
Posted By: Orb Re: [6.3.x] [beta] MegaMod - 07/02/2002 2:07 AM
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
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 07/02/2002 3:22 AM
Well, did you set ALL permissions correctly in cp.cgi?
Posted By: Orb Re: [6.3.x] [beta] MegaMod - 07/02/2002 3:52 AM
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
Posted By: Orb Re: [6.3.x] [beta] MegaMod - 07/05/2002 3:55 AM
bumping up
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 07/05/2002 3:40 PM
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
Posted By: Orb Re: [6.3.x] [beta] MegaMod - 07/05/2002 8:49 PM
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
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 07/05/2002 10:55 PM
I sorta see what your shooting at Orb.

It'll be ready tonight.
Posted By: Orb Re: [6.3.x] [beta] MegaMod - 07/05/2002 11:12 PM
ahhhhhh
thank you thank you thank you
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 07/06/2002 12:27 AM
Here you go http://ivegeta.hypermart.net/semiadmin.zip
Posted By: Orb Re: [6.3.x] [beta] MegaMod - 07/06/2002 1:15 AM
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";"
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 07/06/2002 2:06 AM
opps, ok should be fixed.

Zip file updated. Orb, just reupload cp_megamods.cgi.
Posted By: Orb Re: [6.3.x] [beta] MegaMod - 07/06/2002 2:29 AM
yups that fixed the megamods
semiadmins gives no errors but it doesnt write anything if you go back and look theres no semiadmins set
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 07/07/2002 2:46 AM
Oh, jeez idiot me shocked

Orb, in cp_megamods.cgi
[code][/code]Zip file updated with the fix. I don't see any further errors. Sorry about that.
Posted By: Orb Re: [6.3.x] [beta] MegaMod - 07/08/2002 1:23 AM
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
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 07/09/2002 1:04 PM
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.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 07/09/2002 8:10 PM
Zip File updated with some cleaned up coding that i was using from that semiadmin thing. Maybe this'll help.
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 07/14/2002 11:27 AM
Will i have to re-hack all files, certain files or just upload updated files contained in the zip?
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 07/15/2002 5:45 PM
Just upload the files, the hacking is the same.
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/07/2002 11:20 AM
Does this work with v6.3.1?
Posted By: ViRuS2k Re: [6.3.x] [beta] MegaMod - 08/07/2002 7:52 PM
can someone please tell me how to add more mods in the cp pannel please !!! 7 isnt enough for me !!! i have 11 mods frown

what files do i need to rehack and what code do i put in tnx ???
Posted By: Ron M Re: [6.3.x] [beta] MegaMod - 08/07/2002 8:21 PM
Quote
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 frown

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
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 08/08/2002 9:36 AM
Quote
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.
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/08/2002 12:24 PM
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.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 08/10/2002 2:59 AM
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
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') {
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/11/2002 11:23 AM
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.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 08/11/2002 10:37 PM
Does everyother status(including megamods) show the correct status?
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/12/2002 10:06 AM
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.
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/13/2002 3:42 AM
I get an error that says...

Code
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.
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 08/13/2002 12:48 PM
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..? help
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/13/2002 3:10 PM
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...

Quote
code:
Code
$Megamoderator = "00000001";

But it contains this if I set more than one...

code:
[qb]
Code
$Megamoderator = "&#0124;&#0124;^&#0124;&#0124;00000012";
[/qb]
Remember that I had to comment out this line in cp_vars_megamod.pl to even be able to set the megamods.

Code
// chomp, chomp, chomp
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 08/13/2002 3:21 PM
Heh.. TheX beat me to my lame fix.. laugh
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/13/2002 3:28 PM
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.
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 08/13/2002 3:36 PM
The profile was for a separate error that I recieved whereby nobody could enter their profile to edit it, or view other users profiles.. wink . 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.. laugh
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/13/2002 3:45 PM
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.
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 08/13/2002 4:07 PM
*Download removed*
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/13/2002 5:47 PM
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.
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/13/2002 6:45 PM
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.
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/13/2002 7:44 PM
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.
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 08/13/2002 7:49 PM
MegaMod for 6.3.1 is officially screwed at the moment.. frown
You're right.. MegaMods have the status, but not the powers..
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/13/2002 8:24 PM
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.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 08/13/2002 9:25 PM
OMG! I was in PHP mode on that comment thing. hehe... ahh.. shocked

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. frown
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/13/2002 9:41 PM
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.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 08/13/2002 9:50 PM
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. frown
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 08/14/2002 12:22 AM
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.. wink
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/14/2002 12:47 AM
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.
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/14/2002 2:40 AM
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

Quote
code:
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' &#0124;&#0124; $viewer_profile[8] ne 'MegaModerator')) {

That didn't work, do this instead...

code:
[qb]
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' &#0124;&#0124; $viewer_profile[8] ne 'MegaModerator')) {
[/qb]
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 08/14/2002 3:42 AM
Wait, I just saw that and updated the zip.

You'd better do this:
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' &#0124;&#0124; $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' &#0124;&#0124; $viewer_profile[8] ne 'MegaModerator')) {
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/14/2002 3:50 AM
There is still an extra bracket in there.

this...

Quote
code:
Code
if($viewer_profile[8] eq 'Administrator' &#0124;&#0124; $viewer_profile[8] eq 'MegaModerator')) {

Should be this...

code:
[qb]
Code
if($viewer_profile[8] eq 'Administrator' &#0124;&#0124; $viewer_profile[8] eq 'MegaModerator') {
[/qb]
Edit: it is working great though...excellent hack.
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 08/14/2002 10:18 AM
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.. smile
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/14/2002 5:47 PM
Has the 'Moderators' loosing their status bug been fixed as well?
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/14/2002 5:59 PM
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.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 08/14/2002 9:12 PM
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.
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/14/2002 9:31 PM
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.
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/16/2002 10:26 AM
Bump.
Posted By: Da Wacko Re: [6.3.x] [beta] MegaMod - 08/17/2002 1:29 PM
It also works in Ubb 6.3.0, but, a minor edit was neccesary:

In Cp_user_titles.pl

Quote
code:
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]
Code
 ###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! smile
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/17/2002 2:27 PM
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.
Posted By: Da Wacko Re: [6.3.x] [beta] MegaMod - 08/17/2002 2:29 PM
it works perfectley on 6.3.0...
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/18/2002 3:50 AM
No bugs to report for me either...works perfectly.
Posted By: mark99 Re: [6.3.x] [beta] MegaMod - 08/18/2002 11:26 AM
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.
Posted By: Lord Dexter Re: [6.3.x] [beta] MegaMod - 08/18/2002 11:44 AM
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.
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/18/2002 9:59 PM
Quote
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.
Posted By: Brick Re: [6.3.x] [beta] MegaMod - 08/25/2002 5:14 AM
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. smile
Posted By: RandyM Re: [6.3.x] [beta] MegaMod - 08/26/2002 2:47 PM
No, this mod gives global moderator powers.
Posted By: the_wiz Re: [6.3.x] [beta] MegaMod - 09/06/2002 11:28 AM
the link is down anyone have the link for this?
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 09/15/2002 10:50 PM
Link is back up again..
http://ivegeta.com/index.php?iv=download&f=b_megamod6.3.1
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 09/16/2002 1:41 AM
*sigh*
I have a problem with the latest zip file..

Quote
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]
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 09/16/2002 1:49 AM
fixed it smile
Posted By: Oblivion Knight Re: [6.3.x] [beta] MegaMod - 09/16/2002 10:28 AM
Found a couple of bugs..
Fixing these also fixed the problem I had last night that we discussed on AIM smile

In ubb_lib.cgi

This:
Quote
code:
Code
	if (($profile[8] eq 'Administrator') &#0124;&#0124; ($user_profile[8] eq 'MegaModerator')) {

.

Should be:
code:
[qb]
Code
	if (($profile[8] eq 'Administrator') &#0124;&#0124; ($profile[8] eq 'MegaModerator')) {
[/qb]
.

This:
Quote
code:
Code
	unless (($profile[8] eq 'Administrator') &#0124;&#0124; ($user_profile[8] eq 'MegaModerator')) {

.

Should be:
code:
[qb]
Code
	unless (($profile[8] eq 'Administrator') &#0124;&#0124; ($profile[8] eq 'MegaModerator')) {
[/qb]
.

In ubb_profile.cgi

This:
Quote
code:
Code
		if(($viewer_profile[8] eq 'Administrator') &#0124;&#0124; ($user_profile[8] eq 'MegaModerator') &#0124;&#0124; ($user_profile[8] eq 'Moderator')) {

.

Should be:
code:
[qb]
Code
		if (($viewer_profile[8] eq 'Administrator') &#0124;&#0124; ($viewer_profile[8] eq 'MegaModerator') &#0124;&#0124; ($viewer_profile[8] eq 'Moderator')) {
[/qb]
.

You're welcome.. wink
Posted By: Gizmo Re: [6.3.x] [beta] MegaMod - 09/23/2002 10:53 AM
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...
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 10/06/2002 2:23 AM
Quote
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.
Posted By: sfpunk_dave Re: [6.3.x] [beta] MegaMod - 10/08/2002 1:27 AM
It says the zip file is corrupt when I go to extract it. frown
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 10/08/2002 4:21 AM
Sorry, (forgot to put it in binary mode)

Should work now. smile
Posted By: sfpunk_dave Re: [6.3.x] [beta] MegaMod - 10/09/2002 9:18 AM
Thanks, it now extracts. smile
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 11/22/2002 9:57 PM
The mod has been upgraded and tested it on 6.3.1.2.
Posted By: LK Re: [6.3.x] [beta] MegaMod - 11/22/2002 10:43 PM
brett, can you please make your siggy 150x50? I mean I use 1280x1024 resolution and your sig image is still too big tipsy

Anyhow, very nice hack smile I don't like the concept of mega moderators (also in other BB software), but I like how you did it as a hack.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 11/23/2002 12:02 AM
One of these days, i'll get a sig that fits!

BTW Thanks LK smile
Posted By: Dark Templar Re: [6.3.x] [beta] MegaMod - 11/27/2002 5:39 AM
Looks good. Will most likely install it tomorrow smile
Posted By: Dark Templar Re: [6.3.x] [beta] MegaMod - 11/28/2002 6:28 AM
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!
Posted By: Neo11223 Re: [6.3.x] [beta] MegaMod - 12/09/2002 4:36 AM
Help!

I installed the hack everything is working nicely, EXCEPT, you knew it was coming smile ... 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 ??
Posted By: Neo11223 Re: [6.3.x] [beta] MegaMod - 12/10/2002 5:26 AM
bump
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 12/11/2002 12:11 AM
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 tipsy wink

I also am seeing the deleting problem. When i get back form work tonight, i'll take a closer look at it.
Posted By: Neo11223 Re: [6.3.x] [beta] MegaMod - 12/11/2002 1:50 AM
Can you link me to a completed version to download.
Posted By: Dark Templar Re: [6.3.x] [beta] MegaMod - 12/13/2002 4:02 AM
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.
Posted By: Gizmo Re: [6.3.x] [beta] MegaMod - 12/27/2002 5:46 AM
Brett, sorry to say, 7:46pm PST, your URL still doesn't work.
Posted By: Gizmo Re: [6.3.x] [beta] MegaMod - 12/28/2002 12:46 AM
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.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 12/28/2002 8:49 AM
My site went down due to overbandwidth a couple of days ago wink and will be up on the first. Sorry for the inconvience.
Posted By: Kronic Re: [6.3.x] [beta] MegaMod - 01/04/2003 9:20 AM
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?
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 01/28/2003 11:32 AM
I have updated this, fixing the demodding bug. As to my knowledge, that was the only bug.
Posted By: tgreene Re: [6.3.x] [beta] MegaMod - 06/11/2003 10:34 PM
Is it possible to increase the number of Megamods from 8 to 12..?
Posted By: havoq Re: [6.3.x] [beta] MegaMod - 08/11/2003 7:01 AM
need a link...
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 08/11/2003 8:02 AM
reuploaded: http://www.ivegeta.com/megamod6.3.1.zip
Posted By: BUZN_WILDLY Re: [6.3.x] [beta] MegaMod - 09/06/2003 1:25 AM
Wow sweet hack...
Thanks a ton
I'm going to putting this one to use!
Posted By: rockwell Re: [6.3.x] [beta] MegaMod - 10/07/2003 1:23 AM
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 "}"
Posted By: eXtremeTim Re: [6.3.x] [beta] MegaMod - 10/21/2004 6:16 AM
I could use this hack if somebody has this one still hanging around.
Posted By: Brett Re: [6.3.x] [beta] MegaMod - 10/21/2004 9:29 AM
http://pavioni.com/scripts/megamod6.3.zip
Posted By: eXtremeTim Re: [6.3.x] [beta] MegaMod - 10/26/2004 3:07 AM
Thanks
© UBB.Developers