Previous Thread
Next Thread
Print Thread
Rate Thread
#275448 06/22/2004 11:44 PM
Joined: May 2004
Posts: 6
Lurker
Lurker
Offline
Joined: May 2004
Posts: 6
Our mods have access to more admin settings than we're comfortable with - eg, one of them today took it upon himself to 'tinker' with one of the forum descriptions. We can't find the setting to control this access. If there isn't such a setting could you suggest a way round it? We're using UBB.threads v6.4.2. Thanks.

Sponsored Links
Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
The easiest way would be to deny them the ability to edit a forum altogether. This way, they'd only be moderating users and managing threads - that's it.

Here's what you do.

In ubbthreads/admin/menu.php...

DELETE (or //comment) THE FOLLOWING:

Code
      $html -> open_admin_table(); <br />echo <<<EOF <br />           <tr><td valign=top class=tdheader> <br />           <b>{$ubbt_lang['FORUMMAN']}</b> <br />           </td></tr> <br />          <tr><td valign=top class=lighttable> <br />           <a href="{$config['phpurl']}/admin/editboard.php?Cat=$Cat" target="mainFrame"> <br />           {$ubbt_lang['MODEDIT']} <br />           </a></span> <br />EOF; <br />      $html -> close_table(); <br />      echo "<p>";


At least that's how it's done for v6.3.2, so 6.4 should be quite similar if not exactly the same

Joined: May 2004
Posts: 6
Lurker
Lurker
Offline
Joined: May 2004
Posts: 6
And done. Thanks!

Joined: Jul 2003
Posts: 46
Junior Member
Junior Member
Offline
Joined: Jul 2003
Posts: 46
Can I also apply this to the Admins? I have 7 Admins, but ONLY want myself and 1 other Admin to have access to the Full Control Panel....How can I do this?

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Ok that's gonna be a li'l trickier. I think the way to go about it would be to:

a) modify the current 'elseif' admin argument, specifiying that if their U_Status is admin AND if their U_Username is 'admin1' OR 'admin2' who gets full access, then they will receive the list of full options (already given).

Code
elseif (($user['U_Status'] == 'Administrator') && (($user['U_Username'] == 'admin1') || ($user['U_Username'] == 'admin2')))  


b) create a new 'elseif' admin argument specifying that if their U_Status is an admin, but their U_Username IS NOT 'admin1' OR 'admin2' who gets full access, then they will receive a list of limited options (which you'll need to specify, just cut & paste the full list from above and remove whatever you don't want them to have).

Code
elseif (($user['U_Status'] == 'Administrator') && (($user['U_Username'] != 'admin1') || ($user['U_Username'] != 'admin2')))  


Obviously...

admin1 = your username
admin2 = the other admin's username

Do you know how to go about implementing these changes now, or?

Sponsored Links
Joined: Jun 2004
Posts: 10
Newbie
Newbie
Joined: Jun 2004
Posts: 10
Wow! this is a great idea! Giving limited Admin access to a select group...This should be a Hack-Mod. Only one problem the syntax is wrong...
'admin1' should be "admin1" quotes instead of commas

Thanks to Twisty

Last edited by Menemeth; 07/17/2004 5:37 PM.
Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
[]Menemeth said:
Only one problem the syntax is wrong...
'admin1' should be "admin1" quotes instead of commas
[/]

The apostrophes are fine, no quotation marks necessary


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
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 20240430)