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

smile

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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
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
Yarp™
Yarp™
Offline
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
Journeyman
Journeyman
Offline
Joined: Nov 2001
Posts: 134
Nice one!

Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Offline
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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
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)