Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: palang on April 05, 2008, 12:35:45 AM

Title: Place Who's Online On All Forum Pages
Post by: palang on April 05, 2008, 12:35:45 AM
I want to show users online in the upper "upshrink" area, where avatar and other info is.  In this area I have the yshout module installed and would like users online to be listed next to the shout box. 

I have added the following code to index.template.php.  It works only if I am on the main index page of my forum.  If I navigate to a topic or to admin or somewhere else, users online does not display in the shrinkable header area.

Any help is appreciated.


Here is the code I inserted and a screenshot of it working on my index page.

echo '
<div align="right" <small>Users Able To View Chatbox</small><br /> ', implode(', ', $context['list_users_online']),
                                                        '</div>';
Title: Re: Place Who's Online On All Forum Pages
Post by: palang on April 05, 2008, 01:27:37 PM
Okay figured it out using ssi_examples.php.   Love this SMF thing.   :D

Thanks.