Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2003
Posts: 9
Lurker
Lurker
Offline
Joined: Jun 2003
Posts: 9
I've gone through page after page of the mods index, but one thing I haven't found is a feature I love on this very discussion board:
On the main discussion board page, after each forum, it says how many users are currently browsing that forum, i.e.: How Do I... (3 viewing). What mod is this? I'd so love to use it.

Sponsored Links
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
This normal function and it's not enabled by default. To enable it go to Admin > Edit Config Settings > Special Functions / Misc. settings and turn on Post Tracking.

Joined: Jun 2003
Posts: 9
Lurker
Lurker
Offline
Joined: Jun 2003
Posts: 9
I do have post tracking on (tried the 2 flavors available) but neither show current number of users viewing each forum from the main discussion board page. If I understand correctly, new post tracking shows you how many new posts are in a forum, but not how many folks are currently viewing that forum.

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
I'm sorry pdagal, I mis-read. What version of threads are you using? It's now standard in 6.4.

Joined: Jun 2003
Posts: 9
Lurker
Lurker
Offline
Joined: Jun 2003
Posts: 9
Still on 6.2.3. Since I'd customized it so much, I've been avoiding the upgrade until 6.5 comes out. . . I might have to re-consider.

Sponsored Links
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
How could we change the color of that (3 viewing) to something more definite than white?

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Edit your /lang/*/ubbthreads.php as shown below. Then change the color to one that works for you

find:
Code
 $ubbt_lang['VIEWING'] = "viewing"; 


Then surround it with color quotes

Code
 $ubbt_lang['VIEWING'] = "<font color=\"gray\">viewing</font>"; 

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
that only changed the word viewing?

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
That is correct.

To change the color of the whole string, you'd have to edit the tmpl file to add/change the class for that specific cell so that the text color is different.

Last edited by DLWebmaestro; 04/14/2004 12:02 AM.
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
I found this in the ubbthreads.tmpl file.
Code
 <span class="small"><br /> {$forum[$c][$f]['viewing']}<br /></span><br /> 


that seems to be the only one there that has the viewing option.

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
thats the forum variable thats built in ubbthreads.php

if (!isset($Boardview[$Keyword])) {
$forum[$x][$y]['viewing'] = "";
}
else {
$forum[$x][$y]['viewing'] = "($Boardview[$Keyword] {$ubbt_lang['VIEWING']})";
}

so change it there instead.

Last edited by scroungr; 04/14/2004 7:44 AM.

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
Posts: 70
Joined: January 2007
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)