Previous Thread
Next Thread
Print Thread
Rate Thread
#126601 07/10/2001 8:57 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
How can I add Moderators so they can have access to change the News Fader?

Currently, only Admins can do it.

TIA.

Sponsored Links
#126602 07/10/2001 9:11 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Need to change the permission coding in one of the cpanels for the News fader addon bit of the hack.

#126603 07/10/2001 9:28 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Right.

Now what code goes where?

TIA

#126604 07/11/2001 5:10 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I'll look at the coding for the hack and post it here when I'm finished.

#126605 07/11/2001 10:16 AM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Thanks!

Sponsored Links
#126606 07/11/2001 9:36 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
If you could do it can you post all the code from the readme that you need to add in the cpanel files please.

#126607 07/11/2001 10:31 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
I believe this is the relevant code:
Code
code:

I would guess that under all instances of:

&VerifyAdmin($UserName, $Password);

Would have the code to verify moderators.

#126608 07/11/2001 10:35 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
You'll have to change it here somewhere.

$Password = $Pass;$Username = $User_name;&VerifyAdmin($Username, $Password);

I don't know what the variable for mod identification. Try searching through cpanel3 file for the sub for editing messages through the CP, because mods can enter that so look for that code and it should have the verify mod part in it. Find it and post it here.

#126609 07/12/2001 4:14 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
I found this in cpanel2.cgi for the DoIndex routine:

&VerifyAdminMod($UserName, $Password);

Both admins and mods can index files.

#126610 07/12/2001 8:18 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Ok Hopefully it's this easy. laugh

I found 4-5 of the Verifying passages in the code you need to add so find them in the News fader sub you added in cpanel3.cgi

Code
code:

Everywhere that is found in the news fader code addons for cpanel3.cgi change it to..


Code
code:

Hopefully this works...

Sponsored Links
#126611 07/13/2001 2:55 AM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
That's what I was thinking.

I'll let you know after I test it.

Thanks!

#126612 07/13/2001 4:49 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Thats good. Hopefully it works. ^_^


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)