|
|
Joined: Jan 2000
Posts: 395
Member
|
Member
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.
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
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.
|
|
|
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
Right.
Now what code goes where?
TIA
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
I'll look at the coding for the hack and post it here when I'm finished.
|
|
|
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
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.
|
|
|
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
I believe this is the relevant code: I would guess that under all instances of: &VerifyAdmin($UserName, $Password); Would have the code to verify moderators.
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
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.
|
|
|
|
Joined: Jan 2000
Posts: 395
Member
|
Member
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.
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Ok Hopefully it's this easy.  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 Everywhere that is found in the news fader code addons for cpanel3.cgi change it to.. Hopefully this works...
|
|
|
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
That's what I was thinking.
I'll let you know after I test it.
Thanks!
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Thats good. Hopefully it works. ^_^
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|