News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to put users online in our website outside the smf forum?

Started by joseph21, July 14, 2006, 08:52:48 AM

Previous topic - Next topic

joseph21

How to put users online in our website outside the smf forum?  ???
SMF 1.1.2 (SMF shop-Ad Management), Joomla 1.0.12, Ortsios Joomla - SMF bridge 1.1.7, CB 1.0.2 and many more..

Alan S

put this code

<?php require("/home/yourcpanelusername/public_html/yourforumdirectory/SSI.php"); ?>

at the very top of the page you want to show the users online replacing the yourcpanelusername with the username you use to log into your cpanel and yourforumdirectory with the directory your forum is in

then put

<?php ssi_whosOnline(); ?>

in the place you want the users online to appear


- Alan S
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

joseph21

Quote from: Alan S on July 14, 2006, 12:36:13 PM
put this code

<?php require("/home/yourcpanelusername/public_html/yourforumdirectory/SSI.php"); ?>

at the very top of the page you want to show the users online replacing the yourcpanelusername with the username you use to log into your cpanel and yourforumdirectory with the directory your forum is in

then put

<?php ssi_whosOnline(); ?>

Thanks!  :) Where could we find all these declarations of functions (e.g. ssi_whosOnline();)? Where do we see all these variables like if I want to show how many guest and just only the number of users online in the forums instead of their names? Many thanks..

in the place you want the users online to appear


- Alan S
SMF 1.1.2 (SMF shop-Ad Management), Joomla 1.0.12, Ortsios Joomla - SMF bridge 1.1.7, CB 1.0.2 and many more..

Advertisement: