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

Sponsored Links
#153546 06/05/2002 5:12 PM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
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

#153547 06/05/2002 6:22 PM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
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.

#153548 06/05/2002 10:09 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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?

#153549 06/06/2002 3:35 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Good to see it ported. I will test it for you later.

Sponsored Links
#153550 06/06/2002 3:53 AM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
[code][/code]

#153551 06/06/2002 7:19 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Error is found...

$Moderator = $$Moderator;

Should be...

$Moderator = $Moderator;

#153552 06/06/2002 7:50 AM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
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') {

#153553 06/06/2002 1:56 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
ack friggin spelling errors! Thanks oblivion knight! So everything works the way it should?

Zip file updated to current fixes. smile

#153554 06/06/2002 3:13 PM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
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

Sponsored Links
#153555 06/06/2002 4:29 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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.

#153556 06/06/2002 7:41 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Glad to hear it's working. Now I can install it. smile

#153557 06/08/2002 3:51 PM
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
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

#153558 06/08/2002 8:17 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yes it's supposed to have quotes. Everything that has a $vars_something{something} needs quotes.

#153559 06/09/2002 4:23 AM
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
Hmm.. OK.. Just wondered, cause I couldn't find the version with quotes in ubb_lib.cgi frown

#153560 06/09/2002 5:42 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
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.

#153561 06/09/2002 7:34 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
You can read me too well LK.

frown

#153562 06/10/2002 4:04 AM
Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Since when were normal mods allowed CP access?

#153563 06/10/2002 5:24 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
They always could, they can access Prune and Forum Settings - and choose only their forums.

#153564 06/10/2002 6:09 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
It's also a good thing if your mods can access IP bans when your not around to ban those troublemakers. tipsy

#153565 06/11/2002 5:39 AM
Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Never knew that, is there anyway to disable mod CP access?

#153566 06/11/2002 6:37 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Not really, easiest way is to go through cp.cgi and delete all the permissions for mods to enter.

#153567 06/15/2002 3:40 AM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Problem: My MegaMod's avatar keeps disapearing..

Any way to solve this? frown

#153568 06/15/2002 9:30 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
You need to add some code to the avatar files so it allows MegaMod status to use avatars/custom avatars.

#153569 06/16/2002 8:40 AM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
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..

#153570 06/16/2002 7:04 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Excellent! I added Oblivion Knight's fix plus this.

[code][/code]LK, that was meant as a demostration. Not an actual appliable fix! tipsy

#153571 06/16/2002 7:13 PM
Joined: Dec 2001
Posts: 26
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 26
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??

#153572 06/16/2002 8:01 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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.

#153573 06/16/2002 8:10 PM
Joined: Dec 2001
Posts: 26
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 26
thanks

#153574 06/17/2002 6:42 AM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
[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)..

#153575 06/18/2002 6:30 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Good to hear it's all fixed, I think it's safe to install now. laugh

#153576 07/01/2002 7:07 PM
Joined: Dec 2000
Posts: 50
Orb Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 50
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

#153577 07/01/2002 8:22 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Well, did you set ALL permissions correctly in cp.cgi?

#153578 07/01/2002 8:52 PM
Joined: Dec 2000
Posts: 50
Orb Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 50
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

#153579 07/04/2002 8:55 PM
Joined: Dec 2000
Posts: 50
Orb Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 50
bumping up

#153580 07/05/2002 8:40 AM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
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

#153581 07/05/2002 1:49 PM
Joined: Dec 2000
Posts: 50
Orb Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 50
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

#153582 07/05/2002 3:55 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I sorta see what your shooting at Orb.

It'll be ready tonight.

#153583 07/05/2002 4:12 PM
Joined: Dec 2000
Posts: 50
Orb Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 50
ahhhhhh
thank you thank you thank you

#153584 07/05/2002 5:27 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7

Page 1 of 4 1 2 3 4

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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
WebGuy 2
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)