Log in

View Full Version : adding the online/offline icon in


Panzer Max
03-31-2009, 09:19 PM
Has anyone added the online/offline icon in the profile.php?do=buddylist part of the friends and contact? I'm looking though pages that do have the online status hook, should I just add that to the profile.php page? Is that the source for the Friends list?

I think it would be really useful to have the online/offline status icons there, see below.

http://www.subsim.com/radioroom/friend_online.png

Anyone have any ideas if there is a mod for this or where to start? How do you add the status icon to any page you want?

cheers!
Panz

tipoboy
03-31-2009, 10:06 PM
Has anyone added the online/offline icon in the profile.php?do=buddylist part of the friends and contact? I'm looking though pages that do have the online status hook, should I just add that to the profile.php page? Is that the source for the Friends list?

I think it would be really useful to have the online/offline status icons there, see below.

http://www.subsim.com/radioroom/friend_online.png

Anyone have any ideas if there is a mod for this or where to start? How do you add the status icon to any page you want?

cheers!
Panz

just put this where you want it to show:

$user[onlinestatus]

Panzer Max
04-01-2009, 12:38 AM
Ok, can you be any more specific? :D I suppose I can put it in the profile.php page, right? Just where in that file is the buddy list/friends list? Because when I just stick $user[onlinestatus] in

if ($vbulletin->GPC['userlist'] == 'friend' AND (!($vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_friends']) OR !($vbulletin->userinfo['permissions']['genericpermissions2'] & $vbulletin->bf_ugp_genericpermissions2['canusefriends'])))
{
$vbulletin->GPC['userlist'] = 'buddy';
}
$user[onlinestatus]
$show['friend_checkbox'] = false;
$userinfo = verify_id('user', $vbulletin->GPC['userid'], true, true, FETCH_USERINFO_ISFRIEND);
cache_permissions($userinfo);

the page goes white....



Hmm... adding a semicolon brings the page back to life,

$user[onlinestatus];


but still no status icon...