Previous Thread
Next Thread
Print Thread
Hop To
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
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
C
journeyman
journeyman
C Offline
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
D
Pooh-Bah
Pooh-Bah
D Offline
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 confused

(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,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Modifications aren't really supported on these forums; you should ask over at UBBDev, the development community for UBB.Threads.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Yep, you're right Giz (Politically incorrect hand slapping blush )

Cheers SK - I'm on my way... smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)