php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#231264 - 12/30/02 11:15 AM [6.2] Who's Online Box
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Mod Name / Version - Who's Online Box for 6.2 <br /> <br />Description - This will add a box listing users online to the bottom of your main index page. There are also instructions to add this info to the top of every page for Registered users <br /> <br />Working Under - UBB.Threads 6.2 <br /> <br />Pre-requisites - none <br /> <br />Author - JustDave <br /> <br />Credits - JoshPet for adapting instructions to add to top of every page <br /> <br />Files Altered - ubbthreads.php, ubbthreads.tmpl <br /> (if you are doing every page - ubbt.inc.php, ubbt_registerednav.tmpl) <br /> <br />Database Altered - none <br /> <br />New Files - none <br /> <br />Notes - This has been around for a few versions. JustDave gets all the credit for creating this. <img src="/forum/images/graemlins/wink.gif" alt="" /> <br />


Attachments
62978-wol-box.6.2 Folder.zip (169 downloads)



Edited by JoshPet (01/01/03 02:57 PM)
_________________________
~Dave
ChattersOnline.com

Top
#231265 - 12/30/02 01:46 PM Re: [6.2] Who's Online Box [Re: sjsaunders]
pinion Offline
Junior Member

Registered: 06/07/02
Posts: 63
Thanks for all your hard work Dave. Much appreciated <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
My Forum

Top
#231266 - 12/31/02 03:54 AM Re: [6.2] Who's Online Box [Re: sjsaunders]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
Hi!<br /><br />Thanks for the mod. However, on my site, it seems that there's a little problem. If you click on a user's name (in the who's online box), it seems that you cannot view their profile. You would get an error saying that the user is not in the database. Do you know what could have went wrong? Thanks!

Top
#231267 - 12/31/02 04:01 AM Re: [6.2] Who's Online Box [Re: firdaus]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Ack... hmmmm thought I changed that over to user numbers...<br /><br />I'll get this fixed asap. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#231268 - 12/31/02 04:09 AM Re: [6.2] Who's Online Box [Re: firdaus]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Ok I uploaded the new zip. It would have worked with invisible users... I just forgot to fix the links for the visible ones. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#231269 - 12/31/02 01:51 PM Re: [6.2] Who's Online Box [Re: sjsaunders]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2570
Loc: England
Works great - thanks for the updated .tmpl file as well.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#231270 - 12/31/02 03:01 PM Re: [6.2] Who's Online Box [Re: Gorlum]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
thanks dave! <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#231271 - 01/01/03 12:04 PM Re: [6.2] Who's Online Box [Re: firdaus]
pinion Offline
Junior Member

Registered: 06/07/02
Posts: 63
I was wondering if anyone has gotten this to work so you get it at the top of every page? I know Josh had it this way with the old version but I can't figure out how to do it <img src="/forum/images/graemlins/frown.gif" alt="" />.
_________________________
My Forum

Top
#231272 - 01/01/03 12:16 PM Re: [6.2] Who's Online Box [Re: mata]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
At the top of ubbthreads.tmpl after this line:<br /><br />$only_favs<br /><br />PLace the code that you would place at the bottom instead. It goes right before the $tbopen. Works fine.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#231273 - 01/01/03 12:30 PM Re: [6.2] Who's Online Box [Re: sf49rminer]
pinion Offline
Junior Member

Registered: 06/07/02
Posts: 63
Thanks omegatron, that worked great. The only thing is that I was wondering if you would know how to get it on every page like the IIP index and all the other pages?
_________________________
My Forum

Top
#231274 - 01/01/03 01:03 PM Re: [6.2] Who's Online Box [Re: mata]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Thats a bit tougher my friend.<br /><br />The code required to define the variable is loaded in ubbthreads.php. There is no way currently as is to do that. However i am playing a bit to see what I can do.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#231275 - 01/01/03 01:39 PM Re: [6.2] Who's Online Box [Re: mata]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
That's how I will be adding this to my site.<br /><br />Will work on this now and post instructions. Lemme take a look.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231276 - 01/01/03 02:27 PM Re: [6.2] Who's Online Box [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I updated JustDave's documentation a bit (per his request) as he hates to document... and we'd all rather have him creating cool stuff rather than documenting. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I've updated the ZIP file as well. To the bottom of his instructions, I have added instructions to add this to the ubbt_registerednav.tmpl file.<br /><br />To do that, insert the Who's Online code into ubbt.inc.php just above:<br /><br /> // -------------------------------------------<br /> // Now require the registerednav.php template<br /> $html = new html;<br /> list($tbopen,$tbclose) = $this -> table_wrapper();<br /> if (!$debug) {<br /> include("$thispath/templates/$tempstyle/ubbt_registerednav.tmpl");<br /> }<br /> }<br /><br /><br />And change the first line of the Whos Online code from:<br /><br /> $LastOn = $html -> get_date() - 600;<br /><br />To this:<br /><br /> $LastOn = $this -> get_date() - 600;<br /><br /><br />Then insert the Template code into the ubbt_registerednav.tmpl file.<br /><br />Then it will appear at the top of the page for registered users. If you wish to do it for unregistered users you'll need to place the modified Who's Online code above the require statement for ubbt_unregisterednav.tmpl and edit the ubbt_unregisterednav.tmpl file as well. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />Thanks Dave! <img src="/forum/images/graemlins/cool.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231277 - 01/01/03 02:52 PM Re: [6.2] Who's Online Box [Re: Daine]
pinion Offline
Junior Member

Registered: 06/07/02
Posts: 63
Cool Josh! Gonna go try this out after dinner. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
My Forum

Top
#231278 - 01/01/03 02:58 PM Re: [6.2] Who's Online Box [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Just updated the zip again..... <br /><br />it was still leaving the User number off the link to visible user's profiles. I think just dave fixed it, but maybe the instructions I started modifying were downloaded before that. <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />All fixed now. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231279 - 01/02/03 11:29 AM Re: [6.2] Who's Online Box [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Small problem... I can get it to show up at the bottom of every page like normal. But for adding to the top of every page, the who's online box is there, but no users are inside of it <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />I want to cry <img src="/forum/images/graemlins/frown.gif" alt="" />

Top
#231280 - 01/02/03 12:33 PM Re: [6.2] Who's Online Box [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Did you alter the first line of the code in ubbt.inc.php.... and did you place it before the registered nav template. There are two similar places. I had that trouble too... If the code is in the wrong place in ubbt.inc.php it won't show any users. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231281 - 01/02/03 03:21 PM Re: [6.2] Who's Online Box [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I did change the first line, and I thought I double checked everything, but that's ok. I didn't want it on every page anyway. Just the top of ubbthreads.php so I just edited that template and removed the other part of the hack <img src="/forum/images/graemlins/smile.gif" alt="" /> All is well.

Top
#231282 - 01/05/03 03:48 PM Re: [6.2] Who's Online Box [Re: palmen]
Nettomo Offline
Enthusiast

Registered: 11/18/01
Posts: 431
Loc: Germany, Bremen
Who's Online Box <br /><br />whosonline_index_6.2 all languages <br /><br />Nettomo
_________________________
www.board.se
www.u3.board.se

Top
#231283 - 01/08/03 12:29 PM Re: [6.2] Who's Online Box [Re: Orlov]
Kayjey Offline
Lurker

Registered: 07/25/02
Posts: 9
Loc: Belgium, Zele
Have added it to my site.<br /><br />Have changed a few things here and there, but would like to have the admin username in bold. Any chance for help? I've tried but didn't manage.<br /><br />I also saw some code making it depending on number of users online - can you offer me some explication on that?
_________________________
- www.fiatcoupe.net -

Top
Page 1 of 2 1 2 >


Top Posters Last 30 Days
AllenAyres 83
Gizmo 27
sirdude 24
Zarzal 23
blaaskaak 11
swebs 6
willing 5
Who's Online
0 Registered (), 29 Guests and 23 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Nice Ajax Chat
by Thelockman
Yesterday at 09:07 AM
[7.x] UBB.Post Templates v0.1
by sirdude
07/05/08 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
Changing currency for subscriptions?
by AllenAyres
07/03/08 01:15 PM
Protect users emails
by AllenAyres
07/03/08 11:36 AM
VPS and Newbies
by Gizmo
07/02/08 09:08 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
ryzilla, M4D, Jer, Kanigo2, Bubba
13302 Registered Users

 

 

 
fusionbb message board php hacks