UBB.Dev
Posted By: Calpy Added tabs for admins editing members - 03/02/2007 10:55 PM
This is a simple little mod, but it has made member management a little easier for me. It adds three tabs to the bottom row of the Admin showuser.php screen when you're editing a member: View Profile, PM and Posts.
I was always making some change or researching someone I suspected of being a banned member rejoining under an alias, and I'd want to look at their regular profile, read all their posts or send them a PM right from the Admin screen rather than opening a new window and finding them via the User List.
**********************************
Open /admin/showuser.php
Find:
PHP Code
if ($uid != $user['USER_ID']) {
if (
$user['USER_MEMBERSHIP_LEVEL'] == "Administrator") {
$bottomtabs = array(
"{$ubbt_lang['DELETE_USER']}" => "{$config['BASE_URL']}/admin/deleteuser.php?uid=$uid",
"{$ubbt_lang['SEND_PASS']}" => "{$config['BASE_URL']}/admin/sendpassword.php?uid=$uid",
"{$ubbt_lang['BECOME_USER']}" => "$loginas",
"{$ubbt_lang['MERGE_USER']}" => "{$config['BASE_URL']}/admin/mergeuser.php?uid=$uid",
Add below it:
PHP Code
"View Profile" => "{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$uid",
"PM" => "{$config['BASE_URL']}/ubbthreads.php?ubb=sendprivate&User=$uid",
"Posts" => "{$config['BASE_URL']}/ubbthreads.php?ubb=dosearch&Forum=All_Forums&Name=$uid&Searchpage=0&Limit=25&&fromsearch=1&fromprof=1"
Et viola! I could have added language strings to the language file and referenced them here, but all my admins are English speakers, so I skipped it.
Posted By: Stephen G Re: Added tabs for admins editing members - 03/03/2007 12:45 AM
Nice.

smile
Posted By: Gizmo Re: Added tabs for admins editing members - 03/03/2007 2:03 AM
Very nice, I like it!
Posted By: Ian_W Re: Added tabs for admins editing members - 03/04/2007 11:07 AM
links are always good laugh
Posted By: blaaskaak Re: Added tabs for admins editing members - 08/29/2007 1:37 AM
Originally Posted by Gizmo
Very nice, I like it!

I like it so much, I've been using it very happely!

But the userposts link can be updated since we got this new cool userposts stuff in 7.2

Code
"View Profile" => "{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$uid",
"PM" => "{$config['BASE_URL']}/ubbthreads.php?ubb=sendprivate&User=$uid",
"Posts" => "{$config['BASE_URL']}/ubbthreads.php?ubb=userposts&id=$uid"

Instead of the replace in post #1, you can use this one now.
Posted By: MattUK Re: Added tabs for admins editing members - 09/25/2007 12:02 PM
Nice one!
Posted By: blaaskaak Re: Added tabs for admins editing members - 09/25/2007 1:18 PM
In ubb 7.3 this is added to the stock code.
© UBB.Developers