PDA

View Full Version : Navbar - Total Online


xXLeighXx2008
08-06-2008, 01:03 AM
I have some code in my navbar which shows the number of online users

ONLINE ( xx )

Its not displaying on all pages, it will show as

ONLINE ( )

The code I am using is $totalonline

Which code do I use to make it show on all pages? I tried $GLOBAL$totalonline

RLShare
08-06-2008, 01:40 AM
$totalonline is only defined in certain places. You will need to create a plug-in that replicates how VB fills that variable and fill another variable with the data if you want it to show on every page.

xXLeighXx2008
08-06-2008, 01:45 AM
As I've never created a plugin in my life, can anyone give me a plugin code to use that will acheive this?