|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
How would I change:
4 Registered (Gizmo, Scott Cargill, Sirdude, Willzter), 30 Guests and 48 Spiders online.
to:
82 in total: 4 Registered (Gizmo, Scott Cargill, Sirdude, Willzter), 30 Guests and 48 Spiders online.
Thanks!
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
It seems it'd be pretty simple for someone who knows what they're doing... unfortunately I'm not one of them lol....
But maybe change the island title to "Who's Online (82)" or "82 Online" and leave out the "82 in total" part... just thinking aloud...
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jul 2006
Posts: 62
journeyman
|
journeyman
Joined: Jul 2006
Posts: 62 |
You're gonna have to modify \templates\default\island_whos_online.tpl to change it up, and possibly the \cache_builders\online_now.php file to have it do an "add" up of all of them if it's not already in there.
So, depending on if you wanted to count spiders in your total or not, you could create a new variable called $tot_on and add up $reg, $anon, $users, $invisible and $spi if you want to count spiders or leave it out if you don't. (that'd be in the online_now.php
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
So how do you add these guys together? Curly brackets? Round brackets? I don't seem to be getting anywhere (Instead of 46 Guests and 51 Spiders online, I'd prefer 97 guests.)
|
|
|
|
Joined: Dec 2006
Posts: 1,235
veteran
|
veteran
Joined: Dec 2006
Posts: 1,235 |
Would it not be easier to leave the existing Who's Online hidden and create a new custom island with data extracted from the database? I had some help with something similar that shows the Top 10 Most Viewed Topics.
|
|
|
|
Joined: Jun 2006
Posts: 16,304 Likes: 116
|
Joined: Jun 2006
Posts: 16,304 Likes: 116 |
Modifications aren't really supported on these forums; you should ask over at UBBDev, the development community for UBB.Threads.
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
Yep, you're right Giz (Politically incorrect hand slapping ) Cheers SK - I'm on my way...
|
|
|
|
|
Test
by Phun - 05/28/2024 7:31 PM
|
|
0 members (),
273
guests, and
292
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|