Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Acmlmboard support?.
Acmlm's Board - I2 Archive - Acmlmboard support? - question | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Rainbow Yoshi

Level: 30

Posts: 191/496
EXP: 159486
For next: 6383

Since: 04-08-05

Since last post: 14 hours
Last activity: 4 hours
Posted on 05-29-05 08:12 AM Link | Quote
Sure it's been asked before lots of time.
I have noticed that admins can edit themselves to be Owner and demote the actual Owner is there a way to stop that?
Xeolord

- B l u e s -
Power Metal > All
Level: 81

Posts: 1975/3418
EXP: 4884196
For next: 108653

Since: 03-15-04
From: Yeah

Since last post: 15 hours
Last activity: 15 hours
Posted on 05-29-05 08:21 AM Link | Quote
If I were you, I'd create a new function in function.php

Simply $isowner=($power>=4);

Then you can just stick that around places.

I know that's not too specific, but hopefully that helps somewhat.

Edit: Then, in edituser.php replace the levelist variable with the following:
(line 14 for me)
<br>if ($isowner) {<br> $levellist=" <br> <select name=powerlevel><br> <option value=-1 $check1[0]>Banned</option><br> <option value=0 $check1[1]>Normal</option><br> <option value=1 $check1[2]>Local moderator</option><br> <option value=2 $check1[3]>Full moderator</option><br> <option value=3 $check1[4]>Administrator</option><br> <option value=4 $check1[5]>Owner</option><br> <option value=5 $check1[6]>System</option><br> </select>";<br> } else {<br> $levellist=" <br> <select name=powerlevel><br> <option value=-1 $check1[0]>Banned</option><br> <option value=0 $check1[1]>Normal</option><br> <option value=1 $check1[2]>Local moderator</option><br> <option value=2 $check1[3]>Full moderator</option><br> <option value=3 $check1[4]>Administrator</option><br> </select>";<br> }<br>

Take out the br tags of course. Just be careful though, when editing someone as an Admin, it'll be set to "banned".

Hope that helps.


(edited by Darth Xeodious on 05-28-05 03:38 PM)
(edited by Darth Xeodious on 05-28-05 03:38 PM)
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Acmlmboard support? - question | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.039 seconds.