Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 2002
Posts: 67
Calpy Offline OP
Power User
OP Offline
Power User
Joined: Dec 2002
Posts: 67
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
Joined: Jan 2007
Posts: 70
Power User
Offline
Power User
Joined: Jan 2007
Posts: 70
Nice.

smile

Joined: Jan 2000
Posts: 5,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
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, My UBB Scripts
Joined: Feb 2002
Posts: 2,286
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
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....)
Joined: Feb 2007
Posts: 329
B
Yarp™
Offline
Yarp™
B
Joined: Feb 2007
Posts: 329
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.

Sponsored Links
Joined: Nov 2001
Posts: 134
M
Journeyman
Offline
Journeyman
M
Joined: Nov 2001
Posts: 134
Nice one!

Joined: Feb 2007
Posts: 329
B
Yarp™
Offline
Yarp™
B
Joined: Feb 2007
Posts: 329
In ubb 7.3 this is added to the stock code.


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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,555
Posts293,845
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 184
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 6
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,813
Greg Hard 4,625
Top Posters(30 Days)
Morgan 3
isaac 2
Top Likes Received
isaac 69
Gizmo 13
Brett 7
WebGuy 2
Top Likes Received (30 Days)
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.047s Queries: 29 (0.017s) Memory: 3.3124 MB (Peak: 3.5203 MB) Data Comp: Zlib Server Time: 2021-05-06 12:18:47 UTC
Valid HTML 5 and Valid CSS