News:

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

Main Menu

Log online users on non-smf pages?

Started by Adi., July 27, 2009, 03:39:53 PM

Previous topic - Next topic

Adi.

Helo,
I have successfully integrated my smf forum with my other web pages like this:
mydomain.com/forum -> smf 1.1.10
mydomain.com/music
mydomain.com/videos
My question is, is there any way to log my smf users when they open non-smf pages (such as: mydomain.com/music) their usernames stay on the 'who is online'?

Orstio

Put this on the top of the page:


<?php
 
include_once('../forum/SSI.php');
 
$online=ssi_logOnline('array');
 
?>


Just a note:  Your forum Who's Online page will show these visitors listed as "Viewing the board index". 

Adi.


sangwe11

Quote from: Orstio on July 27, 2009, 06:08:38 PM
Put this on the top of the page:


<?php
 
include_once('../forum/SSI.php');
 
$online=ssi_logOnline('array');
 
?>


Just a note:  Your forum Who's Online page will show these visitors listed as "Viewing the board index".

Could you not find the variable that tells the logOnline where they are ?

Or add it to the list of places (i'm not sure how SMF logs where you are)

That way you could tell exactly what page they are on.

I am looking for a way to tell what subsite they are on for the SubDomain mod that I am improving.

Any ideas ?

Orstio


Advertisement: