Previous Thread
Next Thread
Print Thread
Rate Thread
#271321 03/23/2004 9:52 AM
Joined: Oct 2001
Posts: 102
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 102
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?

Sponsored Links
Entire Thread
Subject Posted By Posted
Extended User Editor v3.1 mi_trucker 03/23/2004 4:52 PM
Re: Extended User Editor v3.1 JoshPet 03/23/2004 5:01 PM
Re: Extended User Editor v3.1 mi_trucker 03/23/2004 5:25 PM
Re: Extended User Editor v3.1 JoshPet 03/23/2004 5:36 PM
Re: Extended User Editor v3.1 scroungr 03/23/2004 6:26 PM
Re: Extended User Editor v3.1 mi_trucker 03/23/2004 6:48 PM

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
Posts: 70
Joined: January 2007
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 20240506)