Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 1999
Posts: 77
Journeyman
Journeyman
Joined: Jun 1999
Posts: 77
This hack adds the number of users with links to their profile page and the number of unregistered that are online to the main wwwthreads page. Upload the attachment and rename to print_online.php
Open wwwthreads and right arround line 108 after:
// Print the html for the number of registered users
echo "
<TABLE BORDER=0 WIDTH="$theme[tablewidth]" align="$theme[tablealign]" cellpadding=0 cellspacing=0>
<TR>
<TD ALIGN=LEFT class="welcome">
$showreg
</TD><TD ALIGN=RIGHT class="welcome">
"

if ($user['U_Username']) {
echo "$lang[INTRO_SUB], $user[U_Username]"
}
else {
echo $lang['WEL_PRIV_NO'];
}

echo "</TD></TR></TABLE>"

Add this:

echo "
<TABLE BORDER=0 WIDTH="$theme[tablewidth]" align="$theme[tablealign]" cellpadding=0 cellspacing=0>
<TR>
<TD ALIGN=LEFT class="welcome">
"
include ("print_online.php");
echo "</TD><TD ALIGN=RIGHT class="welcome">"
echo "</TD></TR></TABLE>"

So now that section should look like this:

echo "
<TABLE BORDER=0 WIDTH="$theme[tablewidth]" align="$theme[tablealign]" cellpadding=0 cellspacing=0>
<TR>
<TD ALIGN=LEFT class="welcome">
$showreg
</TD><TD ALIGN=RIGHT class="welcome">
"

if ($user['U_Username']) {
echo "$lang[INTRO_SUB], $user[U_Username]"
}
else {
echo $lang['WEL_PRIV_NO'];
}

echo "</TD></TR></TABLE>"
echo "
<TABLE BORDER=0 WIDTH="$theme[tablewidth]" align="$theme[tablealign]" cellpadding=0 cellspacing=0>
<TR>
<TD ALIGN=LEFT class="welcome">
"
include ("print_online.php");
echo "</TD><TD ALIGN=RIGHT class="welcome">"
echo "</TD></TR></TABLE>"

Go to http://www.extreme-vb.net/bbs/wwwthreads.php to see the hack.

Thank you,
Bob

Edited by Extrm Bob on 12/02/00 03:27 PM (server time).

Attachments
26240-print_online.php.txt (0 Bytes, 22 downloads)

Sponsored Links
Entire Thread
Subject Posted By Posted
Adding online users to main page Extrm Bob 12/02/2000 11:09 PM
Re: Adding online users to main page poil 12/03/2000 12:02 AM
Re: Adding online users to main page patagon 12/03/2000 2:10 PM
Re: Adding online users to main page Eileen 12/14/2000 5:40 AM
Re: Adding online users to main page Baalack 12/21/2000 9:53 PM

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 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
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 20240506)