PDA

View Full Version : @ Admin ( online / offline status )


iMan
08-14-2003, 07:35 AM
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

Bob
08-14-2003, 10:24 AM
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.