News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Visitors on website

Started by smacktalk, January 15, 2004, 01:49:16 AM

Previous topic - Next topic

smacktalk

Is there some code that I can use on a page to diplay the number of users on an entire website?

pulpitfire

Quote from: smacktalk on January 15, 2004, 01:49:16 AM
Is there some code that I can use on a page to diplay the number of users on an entire website?

it's not built into your admin panel?

Tony Reid

I think he means - not just in his forum - but entirely across the site.

Yes there is, but if you want it integrated into your SMF board then perhaps it would be a good idea to use the smf code on your other pages.



Tony Reid

pulpitfire

i mean the admin panel for his entire website, rather than the forum. 

smacktalk

Quote from: Tony on January 15, 2004, 09:38:12 AM
I think he means - not just in his forum - but entirely across the site.

Yes there is, but if you want it integrated into your SMF board then perhaps it would be a good idea to use the smf code on your other pages.





i just want to show it on my main website's index page.

Something that like:    Users online: 13 <:::> Users in last 24 hours: 1547   

morph

Hm, you could check to see how many different IP's are on and store it in a database and have it update all the time. Then have a script that counts how many unique IP's there have been in the past 24 hours.

Coming soon!

Valconeye

here is the easy way,
http://www.simplemachines.org/community/ssi_examples.php
To use SSI.php in your page add at the very top of your page before the <html> tag on line 1:
<?php require("/home/simple/public_html/community/SSI.php"); ?>

Who's Online Function: <?php ssi_whosOnline(); ?>

or for non php users,
http://www.simplemachines.org/community/ssi_examples.shtml


Who's Online Function: <!--#include virtual="./SSI.php?ssi_function=whosOnline" -->

smacktalk

Quote from: Valconeye on January 15, 2004, 03:07:56 PM
here is the easy way,
http://www.simplemachines.org/community/ssi_examples.php
To use SSI.php in your page add at the very top of your page before the <html> tag on line 1:
<?php require("/home/simple/public_html/community/SSI.php"); ?>

Who's Online Function: <?php ssi_whosOnline(); ?>

or for non php users,
http://www.simplemachines.org/community/ssi_examples.shtml


Who's Online Function: <!--#include virtual="./SSI.php?ssi_function=whosOnline" -->

This is just for the people on the forum. I already have this one. I have seen some scripts that I could install but since we use Webalizer Version 2.01, I though we could use some code from this program. I'll keep on searching. Thanks.

Valconeye

well for yabbse, the clicklog logs the users, and guests in, i forgot they mentioned something about removing it from smf.  >:( >:(

Grudge

I'm only a half geek really...

[Unknown]

The online log can log, just use logOnline() instead of whosOnline().

-[Unknown]

Valconeye

clicklog works GREAT, i have never had it fail once on my site.

nil

Quote from: Valconeye on January 15, 2004, 10:01:25 PM
clicklog works GREAT, i have never had it fail once on my site.

He said that it was

Quote from: Grudge on January 15, 2004, 06:50:22 PM
pure evil. ;)

not buggy. :P

[Unknown]

No, the click log was evil and crashed forums left and right.  The online log is not evil.

-[Unknown]

Valconeye

i guess it crashed those boards that are all messy, and dont prune off the old posts (because they like seeing all those post counts)

[Unknown]

It has nothing to do with the number of posts; rather, if something happened, like a power failure, it would crash the table.  I know my forum was down for a week and a half because of a power failure making the log_clicks table crash.

-[Unknown]

dschwab9

People should put their servers on UPS's  ;D

[Unknown]

Well, some servers aren't.  Should, would, could, didn't.  Broken table and a week and a half.

-[Unknown]

smacktalk

Quote from: [Unknown] on January 15, 2004, 08:14:52 PM
The online log can log, just use logOnline() instead of whosOnline().

-[Unknown]

Will this log the visitors on my sub domains?

[Unknown]

If you have global cookies on, yes.

-[Unknown]

Advertisement: