Previous Thread
Next Thread
Print Thread
Rate Thread
Added tabs for admins editing members #313322
03/02/2007 2:55 PM
03/02/2007 2:55 PM
Joined: Dec 2002
Posts: 71
Calpy Offline OP
Power User
Calpy  Offline OP
Power User

Joined: Dec 2002
Posts: 71
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.

Sponsored Links
Re: Added tabs for admins editing members [Re: Calpy] #313324
03/02/2007 4:45 PM
03/02/2007 4:45 PM
Joined: Jan 2007
Posts: 70
UK
Stephen G Offline
Power User
Stephen G  Offline
Power User

Joined: Jan 2007
Posts: 70
UK
Nice.

smile


[b]Stephen G
Re: Added tabs for admins editing members [Re: Stephen G] #313329
03/02/2007 6:03 PM
03/02/2007 6:03 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Online tapedshut

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Online Tapedshut

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Very nice, I like it!


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: Added tabs for admins editing members [Re: Gizmo] #313361
03/04/2007 3:07 AM
03/04/2007 3:07 AM
Joined: Feb 2002
Posts: 2,575
England
Ian_W Offline
Veteran
Ian_W  Offline
Veteran

Joined: Feb 2002
Posts: 2,575
England
links are always good laugh


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: Added tabs for admins editing members [Re: Gizmo] #315462
08/28/2007 5:37 PM
08/28/2007 5:37 PM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
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.


[Linked Image]
Sponsored Links
Re: Added tabs for admins editing members [Re: blaaskaak] #315819
09/25/2007 4:02 AM
09/25/2007 4:02 AM
Joined: Nov 2001
Posts: 137
M
MattUK Offline
Journeyman
MattUK  Offline
Journeyman
M

Joined: Nov 2001
Posts: 137
Nice one!

Re: Added tabs for admins editing members [Re: MattUK] #315821
09/25/2007 5:18 AM
09/25/2007 5:18 AM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
In ubb 7.3 this is added to the stock code.


[Linked Image]

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
· Blue Host
· Interserver.net
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,947
Joined: January 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,470
Posts293,533
Members13,801
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,947
Greg Hard 5,533
Top Posters(30 Days)
isaac 10
Zarzal 3
Today's Statistics
Currently Online 893
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.0
(Release build 20190122.dev)
PHP: 5.4.45 Page Time: 0.035s Queries: 15 (0.010s) Memory: 3.2199 MB (Peak: 3.4148 MB) Data Comp: Zlib Server Time: 2019-01-24 00:42:32 UTC