Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: dewdrinker19 - maaliskuu 07, 2009, 05:34:08 AP

Otsikko: SMF reporting of visitors on different section of site?
Kirjoitti: dewdrinker19 - maaliskuu 07, 2009, 05:34:08 AP
Hey guys!  My forums are installed at

http://www.originald.com/forums/

Is there any way to make people that only go to the home page at www.originald.com show up in the "users active" area at the bottom of the forums?
Otsikko: Re: SMF reporting of visitors on different section of site?
Kirjoitti: karlbenson - maaliskuu 07, 2009, 08:40:55 AP
You would need to use ssi and the function on your homepage
<?php ssi_logOnline(); ?>

That will Log Online Presence and show on your homepage who is online.
Otsikko: Re: SMF reporting of visitors on different section of site?
Kirjoitti: dewdrinker19 - maaliskuu 09, 2009, 11:51:22 AP
Thank you for the super quick reply!

I added that code in and all the content on my front page disappeared!  Anybody know of a reason that would happen?

Could it be that I am using a mod that brought people's phpbb3 passwords over?
Otsikko: Re: SMF reporting of visitors on different section of site?
Kirjoitti: karlbenson - maaliskuu 09, 2009, 01:21:21 IP
did you include SSI.php first?

require("SSI.php");

Then call the function?
Otsikko: Re: SMF reporting of visitors on different section of site?
Kirjoitti: dewdrinker19 - maaliskuu 09, 2009, 01:38:39 IP
I have tried

require("SSI.php");
<?php ssi_logOnline(); ?>

and

require("http://www.originald.com/forums/SSI.php");
<?php ssi_logOnline(); ?>

but I still get the same results.

Thank you for your help this far.  I sometimes have 50+ guests according to that page and would love for the message boards to show the same!
Otsikko: Re: SMF reporting of visitors on different section of site?
Kirjoitti: Oldiesmann - maaliskuu 09, 2009, 02:39:45 IP
If it's already a PHP page, then you just need to do this:

require_once('/path/to/forum/SSI.php');
ssi_logOnline();
Otsikko: Re: SMF reporting of visitors on different section of site?
Kirjoitti: dewdrinker19 - maaliskuu 09, 2009, 03:52:36 IP
I put that code in and it didn't seem to hurt anything.  So far the numbers are still way off but I'm assuming that is because the main page also has a 15 minute period of time before it takes out people.  I will come back in a while and see if the number have become the same.  Thanks for the help you two!

Sorry I'm such a noob at this stuff, everybody is at one point right? haha
Otsikko: Re: SMF reporting of visitors on different section of site?
Kirjoitti: dewdrinker19 - maaliskuu 09, 2009, 04:29:31 IP
40 minutes later and there are 24 guests on my main site and 1 on the forums.  :(

Ugh.
Otsikko: Re: SMF reporting of visitors on different section of site?
Kirjoitti: Rumbaar - maaliskuu 19, 2009, 07:07:48 AP
It should reflect the current online status of your forum.

I can't see the sample coding on your main page, but in my test it's accurately and instantaneously reflected the state of my forum.