Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 2
Newbie
Newbie
Offline
Joined: Aug 2000
Posts: 2
// HACK: show last username
if ($config['showreg']) {
$sth = $dbh->do_query("SELECT U_Username FROM w3t_Users ORDER BY U_Number DESC LIMIT 1");
$lastUser = $dbh -> fetch_array($sth);
$showreg = $showreg . "Welcome to our newest mama:$lastUser[0]";
$dbh -> finish_sth($sth);
}
//end hack


look into your categories.php and your wwwthreads.php files- you will find this code:

// --------------------------------------------------------------------------
// Let's see how many total registered users there are but only if we want to
// display this information
if ($config['showreg']) {
$sth = $dbh->do_query("SELECT COUNT(*) FROM w3t_Users");
$registered = $dbh -> fetch_array($sth);
$showreg = "$registered[0] $lang[REGED_USERS]";
$dbh -> finish_sth($sth);
}

add the hack right beneath this code (a space in between is ok!)

i know how hard it is to get the feel for hacks and such- like the idea but scared to mess up your script! . smile hope this helps someone!

just seeing if this works...

[]/testimages/icons/wink.gif[/]

Sponsored Links
Entire Thread
Subject Posted By Posted
Any hack for: "Welcome to our new user... santana 04/09/2001 10:43 AM
Re: Any hack for: "Welcome to our new user... The Team 04/09/2001 11:41 PM
Re: Any hack for: "Welcome to our new user... santana 04/10/2001 5:59 AM
Re: Any hack for: "Welcome to our new user... The Team 04/10/2001 7:26 AM
Re: Any hack for: "Welcome to our new user... santana 04/10/2001 10:47 AM
Re: Any hack for: "Welcome to our new user... Brewskie 04/11/2001 1:04 AM
Re: Any hack for: "Welcome to our new user... caymuc 04/11/2001 5:55 PM
Re: Any hack for: "Welcome to our new user... The Team 04/11/2001 7:04 PM
Re: Any hack for: "Welcome to our new user... The Team 04/11/2001 7:05 PM
Re: Any hack for: "Welcome to our new user... Brewskie 04/11/2001 7:24 PM
Re: Any hack for: "Welcome to our new user... caymuc 04/11/2001 7:24 PM
here is the exact code for all of us newbies! amity 07/20/2001 6:10 AM
Re: here is the exact code for all of us newbies! MrFrog 07/21/2001 5:51 PM
glad it works for you! of course you need to amity 07/22/2001 4:48 AM
Re: glad it works for you! of course you need to MrFrog 07/22/2001 6:29 AM

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
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)