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
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Not sure exactly what you did - but it would seem that you're missing an opening PHP tag. I'm using this mod on a bunch of sites - so whatever file is that displays the code - make sure it's got a starting <? at the top.

Joined: Oct 2001
Posts: 102
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 102
Thanks. I'll go back through and see what it might be. I did my usual, Search/find and then cut and past over the old with the new copied directly from the instructions.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Also - make sure there's no accidental "ending" tag ?> before that code either.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
for another looks like all your code is whacked and not in nice neat straight lines.. or that could be the way you quoted it

Sponsored Links
Joined: Oct 2001
Posts: 102
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 102
Oops, I forgot to save my reply.

After Josh replied the first time, I went back in and realized, DOH!!! Said in my best Homer Simpson voice, that I hadn't highlighted ALL the text that needed to be replaced. Once I did that, all was well in Truckers Land and it's working perfectly.

Need to wait until my 2nd or 3rd cup of coffee before working on these things...LOL

Last edited by mitrucker; 03/23/2004 11:49 AM.

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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
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 20221218)