Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name: Who's Online Box on Every Page 1.0

Description: This adds JustDave's Who's Online box to every page. NOTE: I have included instructions for including it at the top of every page and separate instructions for including at the bottom of every page.

Author: JustDave of www.chattersonline.com
        JoshPet of www.joshuapettit.com
        For discussion and bug reports go to www.ubbdev.com

Date: 1/22/03

Working Under: 6.2

Files Modified: ubbt.inc.php and either ubbt_registerednav.tmpl or ubbt_footer.tmpl

New Files: None

Database Modifications: None

Notes: Thanks to JustDave for the original code. Pay careful attention if you are following the instructions for the top of every page.
Attachments
65947-WhosOnlineEveryPage1.0.txt (0 Bytes, 130 downloads)

Last edited by JoshPet; 02/13/2003 1:53 AM.
Sponsored Links
Joined: Aug 2002
Posts: 45
User
User
Offline
Joined: Aug 2002
Posts: 45
Great Work Josh. Is any way to make it in a way that it shows how many is in the exact subforum and not in all the forum ?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Not sure off the top of my head. That's a bit deeper of a hack. Not quite sure how that could be pulled off. I'd have to look at how Rick has it grab the number of people in each forum and see if that could be expanded upon.

Joined: Aug 2002
Posts: 45
User
User
Offline
Joined: Aug 2002
Posts: 45
I noticed that in the box down left it says in every forum how many users are online
For example if I go to forum1 it says
2 registered and 0 anonymous users are browsing this forum.

So If I'm not mistaken, it knows how many users are online but doesn't show their names. Is it any way to "exlude" this information?

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Yep. Look into showflat.tmpl and showthreaded.tmpl files located in your templates folder.

Close to the end on both files you will see this:
Code
<br />$r {$ubbt_lang['C_ONLINE2']} $a {$ubbt_lang['C_ONLINE4']} <br /><br /><br /><br />

Remove it and that will exclude this information.

However instead of deleting the lines, I would suggest you do something like this:
Code
<br />UBBTPRINT;<br />// 20030201 - Removed by dreamer - Old Start<br />/*<br />$r {$ubbt_lang['C_ONLINE2']} $a {$ubbt_lang['C_ONLINE4']} <br /><br /><br /><br />*/<br />// 20030201 - Removed by dreamer - Old End<br />echo <<<UBBTPRINT<br />

The above will comment the lines rather than you hitting the delete key and later on try to find where this information went should you need it in the future.

Warm regards

Nikos


Nikos
Sponsored Links
Joined: Aug 2002
Posts: 45
User
User
Offline
Joined: Aug 2002
Posts: 45
Thanks Nikos

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
No problem

Nikos


Nikos
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
Hi Josh, I wanted to use this one on my UBB 6.2.1 under www.clanforums.com but its not working for me.

I am getting an empty line with the WHOs ONLINE link.
Pressing the link will result in the right output but beside the link no persons are shown.

I used the ON TOP description. Any idea?

Last edited by jluerken; 02/03/2003 10:35 AM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Check that all the variable names are correct. Capitalization counts.

Use them consistantly.... $whosOnline (with the capital O) carries the names through to your templates.

Try the instructions again from scratch..... but use cut and paste to find the code bits and insert new bits.

Some parts of ubbt.inc.php look very similar..... so copy and find to get the exact location.

Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
Thanks, its working now. Problem was in ubbt.inc.php

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Moved to finished mods.

Joined: Oct 2002
Posts: 64
Power User
Power User
Offline
Joined: Oct 2002
Posts: 64
how do somthing like this on ubbt 6,3 ?

Joined: Oct 2002
Posts: 64
Power User
Power User
Offline
Joined: Oct 2002
Posts: 64
sorry my mistake


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