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