News:

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

Main Menu

SSI function logOnline() - dosent work as advertised!

Started by Gobo, September 17, 2006, 07:11:07 PM

Previous topic - Next topic

Gobo

hi

ok i included this

<?php
include "./forum/SSI.php";
ssi_logOnline();
?>

on my custom pages of my site (not part of the forum)

isnt this function supposed to count ALL visitors even on custom pages?

but i noticed it DOSENT

because I placed the ssi_logOnline() and ssi_whosOnline() together in a file and they show the same stats no matter how many people are on the custom pages

The reason I know thre are users on the custom pages is becuase I asked some friends to go there and stay there so i coud test this out.

But the stats are exactly the same! for both functions!

what am i doing wrong here?

or have i completely misunderstood the logOnline() function?

thanks.

aku

Ravyn

The functions will include anyone who has logged into the database, regardless of what page they are currently on I believe.

With that said, your page should have the absolute path to your SSI.php file, like so:


<php
require("/home/virtual/site45/fst/var/www/html/forums/SSI.php");
?>


You can find the absolute path by going into your admin panel, and going to Server Settings.  Look at the bottom for "SMF Directory"
Ravyn
-SMF Newbie in Training

gamesmad

You also need to place the include right at the very to of your page.

Will
1 on 1 SMF Help - Want 1 on 1 SMF Help? Post in Help Wanted or drop me a message!

Go Charter! - Please consider becoming a charter member to support SMF development.

Please do not PM me with general questions, posting in the appropriate board will ensure everyone benefits from the advice given.

Gobo

so it wont count guests who are browsing the custom pages?

any way to do that?

ill also try the full path method u suggested

but i hope it can count ALL people (guests and users) browsing the site - or else it would be a bummer :(

codenaught

Yes, ssi_logOnline() will log guests who are browsing the page.
Dev Consultant
Former SMF Doc Coordinator

Advertisement: