php forum
php mysql forum
php mysql smarty
 
Topic Options
#313322 - 03/02/07 02:55 PM Added tabs for admins editing members
Calpy Offline
Power User

Registered: 12/17/02
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.

Top
#313324 - 03/02/07 04:45 PM Re: Added tabs for admins editing members [Re: Calpy]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
Nice.

smile
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#313329 - 03/02/07 06:03 PM Re: Added tabs for admins editing members [Re: GEN]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
Very nice, I like it!
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#313361 - 03/04/07 03:07 AM Re: Added tabs for admins editing members [Re: Gizmo]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: 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....)

Top
#315462 - 08/28/07 06:37 PM Re: Added tabs for admins editing members [Re: Gizmo]
blaaskaak Online   content
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: 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.
_________________________

Top
#315819 - 09/25/07 05:02 AM Re: Added tabs for admins editing members [Re: blaaskaak]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
Nice one!

Top
#315821 - 09/25/07 06:18 AM Re: Added tabs for admins editing members [Re: MattUK]
blaaskaak Online   content
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
In ubb 7.3 this is added to the stock code.
_________________________

Top


Moderator:  sirdude 
Who's Online
2 registered (arentzen, blaaskaak), 27 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks