Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
Need some assistance.

Is there a way to remove "Status" and replace it with "Post Number" on the Who's Online page?

Thanks,

Bobby

Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Sure

Open online.php and change this:
$query = "
SELECT t1.O_Username, t1.O_Last, t1.O_What,t1.O_Extra,t1.O_Read,t2.U_Status,t2.U_Visible,t2.U_Extra1,t2.U_Title,t2.U_Color,t2.U_OnlineFormat,t2.U_Number
FROM {$config['tbprefix']}Online AS t1,
{$config['tbprefix']}Users AS t2
WHERE t1.O_Username = t2.U_Username
ORDER BY t1.O_Last DESC
";

to this:

$query = "
SELECT t1.O_Username, t1.O_Last, t1.O_What,t1.O_Extra,t1.O_Read,t2.U_TotalPosts,t2.U_Visible,t2.U_Extra1,t2.U_Title,t2.U_Color,t2.U_OnlineFormat,t2.U_Number
FROM {$config['tbprefix']}Online AS t1,
{$config['tbprefix']}Users AS t2
WHERE t1.O_Username = t2.U_Username
ORDER BY t1.O_Last DESC
";

then this:
while (list($Username,$Last,$RealWhat,$Extra,$Read,$Status,$Visible,$ICQ,$Title,$Color,$OnlineFormat,$Uid) = $dbh -> fetch_array($reged) ) {

to this
while (list($Username,$Last,$RealWhat,$Extra,$Read,$TotalPosts,$Visible,$ICQ,$Title,$Color,$OnlineFormat,$Uid) = $dbh -> fetch_array($reged) ) {

then remove this (or comment it)
if ($Status == "Administrator") { $Status = $ubbt_lang['USER_ADMIN']; }
if ($Status == "Moderator") { $Status = $ubbt_lang['USER_MOD']; }
if ($Status == "User") { $Status = $ubbt_lang['USER_USER']; }

Then change this:
$regrow[$x]['icqindicator'] = $icqindicator;
$regrow[$x]['Status'] = $Status;

to this
$regrow[$x]['icqindicator'] = $icqindicator;
$regrow[$x]['TotalPosts'] = $TotalPosts;

Finished on this file.

Open online.tmpl file and change this:
<td class="tdheader" width="12%">
{$ubbt_lang['USER_STATUS']}
</td>

to this
<td class="tdheader" width="12%">
Total Posts
</td>

and finally this
<td valign="top" class="{$regrow[$i]['color']}">
{$regrow[$i]['Status']}
</td>

to this
<td valign="top" class="{$regrow[$i]['color']}">
{$regrow[$i]['TotalPosts']}
</td>


I haven't tested this but it should work. Make sure you backup your original files first before any alterations.


Nikos
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Gee, is that all?!

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Not alot at all really. I was about to answer this post earlier. I went to my test site and was making the necessary changes to make sure I was right and came back to post it and Nikos had already wrote it out.

What he wrote above is correct and does work.


Joined: Apr 2003
Posts: 15
Newbie
Newbie
Offline
Joined: Apr 2003
Posts: 15
what i did was add the "A" and "M" flags in the username column and replace the status column with a "User Links" column, with graphical links to send private message, their yahoo! profile, their homepage, email, etc.

http://www.elazulspad.com/ep/online.php?Cat=

Sponsored Links
Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
THANKS !!!

Works like a charm


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
Morgan 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)