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
Joined: Aug 2000
Posts: 262
Enthusiast
Enthusiast
Offline
Joined: Aug 2000
Posts: 262
that is great.

--------------
http://extremeforums.org

Joined: Dec 1999
Posts: 73
Journeyman
Journeyman
Offline
Joined: Dec 1999
Posts: 73
Wow..Very interesting hack! I have seen something like this in Vbulletin (I think).
I believe the PHP version makes hacks like this one easier to do (not that I know from experience, but seeing that PHP boards have many interesting hacks). If so, I see a very exciting future for the PHP board (every cool feature of perl wwwthreads + unique hacks)

Good Work!


Joined: May 1999
Posts: 624
Master Hacker
Master Hacker
Offline
Joined: May 1999
Posts: 624

Joined: Jun 1999
Posts: 3
Power User
Power User
Offline
Joined: Jun 1999
Posts: 3
Can you convert this for the Perl Version, I really like it but I cannot run PHP on my server only the Perl Version.

Thank you

<B>Baalack</B>

Baalack

Sponsored Links

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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
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)