I installed this mod today and all seems to work well, except for this, that I'm seeing at the very bottom of the first screen you come to after clicking on the user you wish to edit.
[] echo " {$ubbt_lang['CHOOSE']}
"; $html -> open_admin_table(); echo " Edit profile {$ubbt_lang['PROFILE']} "; if ( ($user['U_Status'] == "Administrator") && ($Number != '1') ){ echo " Delete user {$ubbt_lang['DELETE']} "; } // ------------------------------------------- // Let's see if this user moderates any boards $query = " SELECT Mod_Board FROM {$config['tbprefix']}Moderators WHERE Mod_Uid = '$User' "; $sth = $dbh -> do_query($query); list($modcheck) = $dbh -> fetch_array($sth); // ----------------------------------------------------------------------- // If this is an admin and it's not the first admin, let them revoke privs if ( ($user['U_Status'] == "Administrator") && ($Status == "Administrator" && $Number != "1") ){ echo " Revoke admin privs {$ubbt_lang['REV_ADMIN']} "; if ($modcheck) { echo " {$ubbt_lang['ISMOD']}"; } else { echo " {$ubbt_lang['ISUSER']}"; } echo " {$ubbt_lang['IMMEDIATE']}"; } elseif ( ($Status != "Administrator") && ($user['U_Status'] == "Administrator") ){ echo " Grant admin privs {$ubbt_lang['GIVE_ADMIN']} {$ubbt_lang['IMMEDIATE']} "; if ($Status != "Moderator") { echo " Grant mod privs {$ubbt_lang['GIVE_MOD']} {$ubbt_lang['IMMEDIATE']} "; } } // -------------------------------------------------------------------------- // If they moderate a forum give a link to remove them from one of the forums if ( ($modcheck) && ($user['U_Status'] == "Administrator") ){ echo " Remove from moderator list {$ubbt_lang['REM_MOD']} "; // ----------------------------------------------------------------------- // Otherwise they do not moderate a board so they can be demoted to a user // if they are currently a moderator } elseif ( (!$modcheck) && ($Status == "Moderator") ) { echo " Revoke moderator privs {$ubbt_lang['REV_MOD']} "; } // -------------------------------------------------- // Give them the option of editing this user's groups echo " Edit groups {$ubbt_lang['EDIT_GROUP']} "; // -------------------------------------------- // Let's find out if this user is banned or not $query = " SELECT B_Uid FROM {$config['tbprefix']}Banned WHERE B_Uid = '$User' "; $sth = $dbh -> do_query ($query); list($bcheck) = $dbh -> fetch_array($sth); if (!$bcheck) { echo " Ban this user {$ubbt_lang['BANUSER']} "; } else { echo " Unban this user {$ubbt_lang['UNBANUSER']} "; } echo " Become this user {$ubbt_lang['LOGINAS']} "; $html -> close_table(); $html -> close_table(); // ---------------- // send the footer $html -> send_admin_footer(); ?> [/]
I've actually done the mod twice now with the same results. What, if anything, did I miss?