php forum
php mysql forum
php mysql smarty
 
Topic Options
#206707 - 12/02/00 03:09 PM Adding online users to main page
Extrm Bob Offline
Journeyman

Registered: 06/20/99
Posts: 111
Loc: Aurora, IL, U.S.
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<br />Open wwwthreads and right arround line 108 after:<br /><pre>// Print the html for the number of registered users<br /> echo "<br /> <TABLE BORDER=0 WIDTH=\"$theme[tablewidth]\" align=\"$theme[tablealign]\" cellpadding=0 cellspacing=0><br /> <TR><br /> <TD ALIGN=LEFT class=\"welcome\"><br /> $showreg<br /> </TD><TD ALIGN=RIGHT class=\"welcome\"><br /> "<br /><br /> if ($user['U_Username']) {<br /> echo "$lang[INTRO_SUB], $user[U_Username]"<br /> }<br /> else {<br /> echo $lang['WEL_PRIV_NO'];<br /> } <br /> <br /> echo "</TD></TR></TABLE>"<br /><br />Add this:<br /><br />echo "<br /> <TABLE BORDER=0 WIDTH=\"$theme[tablewidth]\" align=\"$theme[tablealign]\" cellpadding=0 cellspacing=0><br /> <TR><br /> <TD ALIGN=LEFT class=\"welcome\"><br /> "<br /> include ("print_online.php");<br /> echo "</TD><TD ALIGN=RIGHT class=\"welcome\">" <br /> echo "</TD></TR></TABLE>"<br /><br />So now that section should look like this:<br /><br />echo "<br /> <TABLE BORDER=0 WIDTH=\"$theme[tablewidth]\" align=\"$theme[tablealign]\" cellpadding=0 cellspacing=0><br /> <TR><br /> <TD ALIGN=LEFT class=\"welcome\"><br /> $showreg<br /> </TD><TD ALIGN=RIGHT class=\"welcome\"><br /> "<br /><br /> if ($user['U_Username']) {<br /> echo "$lang[INTRO_SUB], $user[U_Username]"<br /> }<br /> else {<br /> echo $lang['WEL_PRIV_NO'];<br /> } <br /> <br /> echo "</TD></TR></TABLE>"<br /> echo "<br /> <TABLE BORDER=0 WIDTH=\"$theme[tablewidth]\" align=\"$theme[tablealign]\" cellpadding=0 cellspacing=0><br /> <TR><br /> <TD ALIGN=LEFT class=\"welcome\"><br /> "<br /> include ("print_online.php");<br /> echo "</TD><TD ALIGN=RIGHT class=\"welcome\">" <br /> echo "</TD></TR></TABLE>"<br /></pre><p>Go to http://www.extreme-vb.net/bbs/wwwthreads.php to see the hack.<br /><br />Thank you,<br />Bob<P ID="edit"><FONT SIZE=-1><EM>Edited by Extrm Bob on 12/02/00 03:27 PM (server time).</EM></FONT></P>


Attachments
26240-print_online.php.txt (8 downloads)


Top
#206708 - 12/02/00 04:02 PM Re: Adding online users to main page [Re: Rapt0r]
poil Offline
Enthusiast

Registered: 08/14/00
Posts: 492
Loc: poilville, in the republic of ...
that is great.<br /><br />--------------<br />http://extremeforums.org
_________________________
Extreme!!!

Top
#206709 - 12/03/00 06:10 AM Re: Adding online users to main page [Re: Rapt0r]
patagon Offline
Journeyman

Registered: 12/06/99
Posts: 136
Wow..Very interesting hack! I have seen something like this in Vbulletin (I think).<br />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)<br /><br />Good Work!<br /><br />

Top
#206710 - 12/13/00 09:40 PM Re: Adding online users to main page [Re: Rapt0r]
Eileen Offline
Master Hacker

Registered: 05/11/99
Posts: 3701
Loc: Los Angeles
Great stuff. <br /><br />[]http://www.amdragon.com/images/eileensig.gif[/]
_________________________
[]http://www.wopr.com/w3tuserpics/Eileen-sig.gif[/]

Top
#206711 - 12/21/00 01:53 PM Re: Adding online users to main page [Re: Rapt0r]
Baalack Offline
Power User

Registered: 06/07/99
Posts: 72
Loc: Guess
Can you convert this for the Perl Version, I really like it but I cannot run PHP on my server only the Perl Version.<br /><br />Thank you<br /><br /><B>Baalack</B><br /><br />Baalack
_________________________
<B>Baalack</B> (wants HTML to be active in the Signature!<br><br>Baalack

Top


Who's Online
0 registered (), 24 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Today at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Today at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Today at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Today at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks