News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Who's online

Started by bayfresh, October 12, 2006, 05:26:34 PM

Previous topic - Next topic

bayfresh

If you want to display "who's online" outside the forum. You can include <?php ssi_logOnline(); ?> code in your php-file, but disadvantage is that the display method is not nice, because I want to display usernames in tables and one user on one rule.

Is there a method to change the display method of who's online ssi.php without editing ssi.php ?

SleePy

Try this.. Didn't test it but should work..

<?php
   
echo '
      <table>'
;
$array = ssi_logOnline('array');
foreach(
$array as $user)
     echo
'
              <tr>
                    <td>'
.$user['link'].'</td>
              </tr>'
;
     echo
'
       </table>'
;
?>
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: