News:

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

Main Menu

show 'Users online' including external pages with SSI

Started by macdonald12, July 27, 2010, 03:11:35 PM

Previous topic - Next topic

macdonald12

Hello all,

First of i'd like to say thanks to the team and community of SMF for creating this beautiful piece of software. Since yesterday i've been playing around with SMF 2.0 RC3 and so far it seems to be all good! However, i've come up with a question i hope someone could help me find an answer for..

I've created an external page showing content to users who are also logged in on the SMF forum (i've pretty much followed the guide "How to use the SMF user system outside of SMF" for this at http://docs.simplemachines.org/index.php?topic=789.0). So far so good, the external page lets users login and logout perfectly fine. Some problems with sessions i experienced were solved by disabling the 'local storage of cookies' setting.

Now, on the forum it shows the 'Users online', while on the external page i accomplish the same by using ssi_whosOnline();. However, this only seems to show users currently (or in the past x min) active on the forum. Seeing both the forum and the external page are now using the same session i'd expect it to include the external page visitors too. Is there anyone who could be so kind as to explain why this isn't the case, and perhaps how this could be made so, still?

Cheers!

edit: Did some more research and found the solution at http://www.simplemachines.org/community/ssi_examples.php. Solved! :)

Advertisement: