Welcome, Guest. Please Login or Register.
June 11, 2025, 07:55:28 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Small change to users online « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Small change to users online  (Read 3291 times)
Craig
Jr. Member
**
Posts: 66


I'm a llama!

Small change to users online
« on: November 29, 2003, 02:15:57 PM »
Reply with quote

Is there a way to say how many users are online TOTAL

IE: 19 Total Visitors 8 Guests, 9 Users, 2 Hidden

how easy would it be to add the Total Visitors tag   :-\

Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:Small change to users online
« Reply #1 on: November 29, 2003, 04:40:15 PM »
Reply with quote

This should be pretty easy.  You'll have to edit boardindex.php to do it though.  Look for $tmpusers

I'll take a look at it in a couple hours and maybe post some code.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Silent`
Noobie
*
Posts: 22


WWW
Re:Small change to users online
« Reply #2 on: November 29, 2003, 07:39:53 PM »
Reply with quote

In english.lng add this:

$txt[0] = 'Total Visitors';

in boardindex.php search for this:

' . $guests . ' ' . $txt[141] . ', ' . $numusersonline . ' ' . $txt[142] . '

and add:

' . $total_users . ' ' . $txt[0] . ',

before  ;)

Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Small change to users online
« Reply #3 on: November 29, 2003, 07:51:18 PM »
Reply with quote

just add the values and add the new text to the language files :)

edit: I hadn't refreshed the thread in a while before replying, so I didn't notice someone did before me ::)
« Last Edit: November 29, 2003, 08:01:47 PM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Small change to users online
« Reply #4 on: November 29, 2003, 08:05:23 PM »
Reply with quote

Quote from: Montrovant on November 29, 2003, 07:39:53 PM
and add:

' . $total_users . ' ' . $txt[0] . ',

before  ;)

hmm... you should define $total_urers first, or just add the other two right there...

' . $guests+$numusersonline . ' ' . $txt[0] . ',
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Silent`
Noobie
*
Posts: 22


WWW
Re:Small change to users online
« Reply #5 on: November 29, 2003, 08:10:37 PM »
Reply with quote

Why? It's defined a fiew rows over there? If you try it you'll see that it work's like a charm ;)
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Small change to users online
« Reply #6 on: November 29, 2003, 08:13:36 PM »
Reply with quote

Quote from: Montrovant on November 29, 2003, 08:10:37 PM
Why? It's defined a fiew rows over there? If you try it you'll see that it work's like a charm ;)

you're totally right... I must've been searching for in in another file  :P
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Silent`
Noobie
*
Posts: 22


WWW
Re:Small change to users online
« Reply #7 on: November 29, 2003, 08:33:09 PM »
Reply with quote

 ;D no problem
Logged
Craig
Jr. Member
**
Posts: 66


I'm a llama!

Re:Small change to users online
« Reply #8 on: November 29, 2003, 11:15:05 PM »
Reply with quote

Thank you very much that is just what i was after  :)
Logged
BrandonMiller
Jr. Member
**
Posts: 52


I'm a llama!

Re:Small change to users online
« Reply #9 on: December 09, 2003, 12:11:36 AM »
Reply with quote

cool - thanks :)

now I wanna know how to keep a running total of different users that have checked in for the day and keep track of the max day this has occured and show that :)
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Small change to users online
« Reply #10 on: December 09, 2003, 01:02:04 AM »
Reply with quote

the max is shown in the forum stats... the list of users that logged in the last 24 hrs would probably need a little modification to the database, but I'd have to check since I haven't tried it yet
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
BrandonMiller
Jr. Member
**
Posts: 52


I'm a llama!

Re:Small change to users online
« Reply #11 on: December 09, 2003, 06:02:59 PM »
Reply with quote

max at once time is, but the older version I had (maybe it was a hack) kept track of the most users in one day, that was more impressive  ;D
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Small change to users online
« Reply #12 on: December 09, 2003, 07:14:49 PM »
Reply with quote

yes, I know... I want that hack too ;D
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Small change to users online « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.723 seconds with 20 queries.