News:

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

Main Menu

Place Who's Online On All Forum Pages

Started by palang, April 05, 2008, 12:35:45 AM

Previous topic - Next topic

palang

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>';

palang

Okay figured it out using ssi_examples.php.   Love this SMF thing.   :D

Thanks.

Advertisement: