Categories: Misc / DotNet / Java / Coder / Linux / PHP Ask - La ask - La Answer

@ Admin ( online / offline status )

Hi Guys, here is a simple hack for vBulletin that displays the "online / offline" status of users.

Go to the admin panel, then go to the templates section.
You are going to need to modify the following templates.
Postbit
Postbit_offline
Postbit_online

First off change the postbit_offline template to the following:

<b>Offline</b>

Second, change postbit_online to the following:

<font color="#FFFFFF"><table style="filter:glow(color=red, strength=2)">NOW ONLINE</table></font>

Now comes the tricky part. Open up the postbit template.
About 3 quarters of the way down you will see a variable called $onlinestatus. Cut it from there. Then scroll up until you see the following:

<smallfont>Registered: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts]</smallfont>

Replace that code with the following:

<smallfont>$onlinestatus<br>Registered: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts]</smallfont>

I hope this might help and be of use.

Best regards.

iMan
[1238 byte] By [iMan] at [2007-11-9 13:20:25]
# 1 Re: @ Admin ( online / offline status )
Thanks for that - but we actually disabled that function (if it is the online/offline graphic you are referring to) to try and reduce bandwidth useage.
The avatar function was also disabled at the same time as one of the highest bandwidth hogs were avatars and how they were displayed using avatar.php.
In one week, the file avatar.php had over 130,000 page views.
Bob at 2007-11-15 18:25:26 >
[an error occurred while processing this directive]
[an error occurred while processing this directive]