Question, for the moderator panel How can I edit so that the moderator can't for instance delete users, ect.
I no this {DISABLE_ADMIN} {DISABLE_MOD}
But is there something for user? {DISABLE_USER} don't work
Tell me!!
Moderator: Moderators

{DISABLE_USER} if( $HTTP_POST_VARS['deleteuser'] )
{
$sql = "SELECT g.group_id
FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
.../... to
$message = $lang['User_deleted'] . '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("mod_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
} <tr>
<td class="row1"><span class="gen">{L_DELETE_USER}?</span></td>
<td class="row2">
<input type="checkbox" name="deleteuser" {DISABLE_ADMIN} {DISABLE_MOD} />
{L_DELETE_USER_EXPLAIN}</td>
</tr>
<tr>
<td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td>
<td class="row2">
<input class="post" type="text" name="username" size="35" maxlength="40" value="{USERNAME}" {DISABLE_ADMIN} {DISABLE_USER} />
</td>
</tr>
'DISABLE_USER' => ($this_userdata['user_id'] != $username) ? ' DISABLED ' : '',
suredarakhshan wrote:where is modcp/mod_users.php
I can not find it in my modcp folder I do not have such a thing
Return to Moderator CP [2.0.17/EM]
Users browsing this forum: No registered users and 1 guest