Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
#201051 11/06/2003 10:32 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
*goes to test* laugh

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
OOOH, OOOOH, OOOOH, i have shouts!

Great work Brett, can't wait to see pm folders ported wink ..


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Well, everything looks perfect and acts perfect on the userside... Waiting for al to post findings on cp side...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
No polls option for megamods in cp (allow megamods to make polls)
No directory option for megamods under status


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
couple things.

It took less than 10 minutes for the demodding bug to show up. Also, it had to remove the lines

Code
	} 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

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
That demodding bug is nutz, it never goes away. I would love for this to work.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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. smile

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
That seems to have done the trick, it's working VERY well.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Sponsored Links
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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.

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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.

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
It can't be far from working though, the actual moderator functions on the boards were working.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
could it be that (mega ?moderator) replacement for Moderator in some of the pages?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Yo Bretty, any word on this?

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
*waits patiently*

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
last I heard he was swamped, give him a few days...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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*.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
lol go for it, i've poked it and i can't figure the problem smirk


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Sorry Randy and all, i'm slackin tipsy , 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.

Code
#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. wink But hey it's all good. laugh

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
initial files updated? Thanks for the fixes thumbsup


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Quote
quote:
Originally posted by AllenAyres:
initial files updated?
Of course, smile

Thanks cool

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Quote
quote:
Originally posted by Gizzy:
lol go for it, i've poked it and i can't figure the problem smirk
Thank God Brett fixed it, I'm saved.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
GJ Brett smile ...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hi,

who can update MegaModerators hack for 6.7? I think only ubb_profile.cgi have to re-hack...

Please......


Webmaster of d-talk & Kabel-Forum.com
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Wow, ubb_profile.cgi is a lot different. It made Beyond Compare have to work.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
my head is spinning trying to get the code to work frown

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I'll try to have it out today if Brett doesn't mind. By Brett not replying today, that means he doesn't mind wink

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Exactly

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
https://www.ubbdev.com/ubb/upload/00020028/Megamod6.7.txt

smile no code changed, so I didn't take credit for it. Charles just moved some code

Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
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?


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
replace with! not add after! you made the same mistake last time

Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
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


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
my version doesn't.

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Quote
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.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
oops. forgot "anymore" wink

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Haha, it's been a long day. Kids, driving, freeways, Ikea after Christmas sale, ex-wife, dominos pizza, lack of sleep.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
you had dominos too? smile pepperoni and mushroom here

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
got the 2 mediums 2 toppings (pepperoni and xtra cheese) for $13.99 and 20 hot wings.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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* wink


Quote
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 wink
btw Al, i was at my parents house all week for christmas whom don't have net access tipsy

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
Originally posted by Brett:

btw Al, i was at my parents house all week for christmas whom don't have net access tipsy
They don't have net access and you didn't buy it for them for Christmas eek

Anyhoo, it's not like I took credit for it smile

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Brett, huge bug. If a user is a megamod, and you update their profile via the cp, they become admin.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
A semi-tested fix.


find:
Code
	$newfour .= "Admin" if $user_is_admin;
replace with:
Code
	$newfour .= "Admin" if ($user_is_admin && $profile->[8] ne 'MegaModerator');

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
cp2_membermanage.cgi for all you who couldln't find where to throw al's code...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
It appears that it's working for me so I'd guess lol..


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
it was semitested when I wrote it, now has been tested since then and it's still working

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
ZIP file updated per Ian's fix smile

Joined: Sep 2000
Posts: 159
Member
Member
Offline
Joined: Sep 2000
Posts: 159
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:

[Linked Image]

[Linked Image]

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
This is the same problem I had a while back, I thought it was resolved.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I've got a good one... When I try to view a user profile it errors out with a blank page...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Viewing as admin to any profile. I've rehacked the files about 4 times.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
that's odd, as I do not experience this. Check your error log and report back

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
fixed. user error tipsy

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Not my fault wordpad hates highlighting entire lines...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Quote
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:

[Linked Image]

[Linked Image]
Issue verifide on latest download.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
And I already said the fix smile

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Quote
Originally posted by Brett:

Sorry Randy and all, i'm slackin tipsy , 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.

Code
#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. wink But hey it's all good. laugh
Well that's fixed, Brett just needs to update the zip...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hi,

I have the problem, that my megamorderatos can not delet any threads or edit andy threads....

What can be wrong?


Webmaster of d-talk & Kabel-Forum.com
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Sorry,

I made a mistake by hacking ubb_lib.cgi


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2002
Posts: 43
Member
Member
Offline
Joined: Jan 2002
Posts: 43
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?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Ian, I believe he's saying that when he removes a megamod the user still retains their status.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2002
Posts: 43
Member
Member
Offline
Joined: Jan 2002
Posts: 43
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.

Joined: Jan 2002
Posts: 43
Member
Member
Offline
Joined: Jan 2002
Posts: 43
so uh... can anyone point me in the right direction to fix this problem? please? smile

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
you'll need to wait on brett


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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.

Joined: Jan 2002
Posts: 43
Member
Member
Offline
Joined: Jan 2002
Posts: 43
thanks. i really appreciate the help.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Lol, so there is an update and it's in cp2_megamods.pl


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
that's right capn' smile

Joined: Jan 2002
Posts: 43
Member
Member
Offline
Joined: Jan 2002
Posts: 43
i updated cp2_megamods.pl and it works like a champ.. thanks! laugh

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Does that mean you also updated all the other bugs mentioned in this thread? lol...

Quote
Originally posted by Gizzy:

Originally posted by Brett:
[qb]
Sorry Randy and all, i'm slackin tipsy , 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.

Code
#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. wink But hey it's all good. laugh
[/qb]
Well that's fixed, Brett just needs to update the zip...



UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2002
Posts: 43
Member
Member
Offline
Joined: Jan 2002
Posts: 43
yeah, i had done all of that before i asked my initial question. wink

Brett said the install file hadn't changed, so i naturally tried updating the cp2_megamods.pl file first, and it worked perfectly.

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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.


Sue
adwoff.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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)

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
All-righty, I'll give it another shot. tipsy


Sue
adwoff.com
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
It seems to be working ... thanks for the head's up. smile


Sue
adwoff.com
Joined: Jun 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 9
Getting an error trying to download the .zip file. Update the location, or anyone else have a copy for 6.7, please? smile

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jun 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 9
Thank you, sir. smile

Joined: Jun 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 9
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
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?

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
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... smash

To any of my heroes out there, any ideas of how to fix please? smile


-GATOR

"Pain is temporary, Pride is forever"
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Updated ZIP file with fix.

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
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 smile


-GATOR

"Pain is temporary, Pride is forever"
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Yea, the only changes were in cp2_megamods.pl. I just updated the zip again to which it should definitely fix it. smile

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
That seemed to do the trick! Thanks Brett, you rock man! smile


-GATOR

"Pain is temporary, Pride is forever"
Joined: Dec 2003
Posts: 40
Member
Member
Offline
Joined: Dec 2003
Posts: 40
My megamod isn't able to move topics from one forum to another-- is there a way I can patch this?

Joined: Dec 2003
Posts: 40
Member
Member
Offline
Joined: Dec 2003
Posts: 40
...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?

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
my megamods haven't experianced this error.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Dec 2003
Posts: 40
Member
Member
Offline
Joined: Dec 2003
Posts: 40
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!

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Yeh sometimes the best thing to do is re-install to ensure it's installed correctly wink ... 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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Dec 2003
Posts: 40
Member
Member
Offline
Joined: Dec 2003
Posts: 40
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.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I searched high and low for the download link, and it's in the first post

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Dec 2003
Posts: 40
Member
Member
Offline
Joined: Dec 2003
Posts: 40
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!

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Interesting enough.. as long as you got it working :x...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
Kewl mod smile

Question, is it possible to prevent both megamods and regular mods from deleting posts?

Thanks

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
Because some can't understand what kind of posts i dont want them to delete

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
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:
Code
		if($permit_delete ne "true") {
Replace with:
Code
		if($permit_delete ne "true" &#0124;&#0124; ($user_profile[8] ne 'Administrator' && $user_number != $profile_number)) {

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
How about in ultimatebb.php:
Find:
Code
	if (!$privatepath && preg_match("/Admin/i", $profile[4])) {
Replace with:
Code
	if (!$privatepath && (preg_match("/Admin/i", $profile[4]) &#0124;&#0124; $profile[8] == "MegaModerator")) {
Find:
Code
	if ($privateforums && preg_match("/Admin/", $profile[4])) {
Replace with:
Code
	if (!$privatepath && (preg_match("/Admin/i", $profile[4]) &#0124;&#0124; $profile[8] == "MegaModerator")) {

Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
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 smile

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
The ultimatebb.php edit was just something I added, nothing to do with your request smile

Page 1 of 3 1 2 3

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)