View Full Version : How do I change the buddy and invisible symbol?
domokun
09-25-2006, 04:17 AM
I was wondering, how do I change the buddy symbol (+) and the invisible symbol (*) that's displayed next to the username? I would prefer using a .gif.
Domokun
domokun
09-28-2006, 12:46 AM
Nobody knows how to do this???
Domokun
domokun
09-30-2006, 02:26 PM
Anybody??
Domokun
Paul M
09-30-2006, 04:44 PM
As far as I remember it is built into the code, so you would need to edit the vb files in a number of places.
calorie
09-30-2006, 05:13 PM
Untested, but in both the forumdisplay_loggedinuser and forumhome_loggedinuser templates find:
$loggedin[invisiblemark]$loggedin[buddymark]
And replace with the following:
<if condition="$loggedin[invisiblemark]"><img src="http://www.domain.com/forum/images/misc/whatever1.gif" alt="" border="0" /></if><if condition="$loggedin[buddymark]"><img src="http://www.domain.com/forum/images/misc/whatever2.gif" alt="" border="0" /></if>
Adrian Schneider
09-30-2006, 05:24 PM
I've only ever seen it generated by the function fetch_online_status() in functions_bigthree.php.
Look at that function (line 53 for me) - it should be very easy to change.
calorie
09-30-2006, 05:34 PM
No need to change the function though. ;)
Adrian Schneider
09-30-2006, 05:45 PM
I'd personally rather change one PHP file than 3-4 templates. You missed postbit_onlinestatus as well.
calorie
09-30-2006, 05:51 PM
The postbit_onlinestatus template is for user_offline.gif, user_online.gif, and user_invisible.gif. Both buddymark and invisiblemark appear in only the forumdisplay_loggedinuser and forumhome_loggedinuser templates, at least on vB 3.6.0, and of course TIMTOWTDI. :)
Adrian Schneider
09-30-2006, 05:53 PM
Ah right - I just took a quick glance. :)
domokun
09-30-2006, 09:27 PM
Ok, you've given me enough to figure this out :) . I'm learning HTML as much as I can so let me give this a shot. I use vBulletin 3.5.4 so I'm not sure what difference there is for vB 3.6.
You'll have to change a few templates in order to make this consistent, unless there's an easier way but I'm not sure:
forumdisplay_loggedinuser
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" target="_blank">$loggedin[musername]</a><if condition="$loggedin[invisiblemark]"><img src=images/misc/user_invisible.gif alt="" width="10" height="10" /></if><if condition="$loggedin[buddymark]"><img src=images/misc/heart.gif alt="" width="12" height="12" /></if>
forumhome_loggedinuser
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a><if condition="$loggedin[invisiblemark]"><img src=images/misc/user_invisible.gif alt="" width="10" height="10" /></if><if condition="$loggedin[buddymark]"><img src=images/misc/heart.gif alt="" width="12" height="12" /></if>
WHOSONLINE
<!-- icons and forum jump -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td width="100%">
<table cellpadding="2" cellspacing="0" border="0">
<col align="center"></col>
<tr>
<td><img src=images/misc/heart.gif alt="" width="12" height="12" /></td>
<td class="smallfont"> $vbphrase[user_is_on_your_buddy_list]</td>
</tr>
<if condition="$show['hidden']">
<tr>
<td><img src=images/misc/user_invisible.gif alt="" width="10" height="10" /></td>
<td class="smallfont"> $vbphrase[user_is_invisible_to_others]</td>
</tr>
</if>
whosonlinebit
<if condition="$show['loggedinuser']">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]" target="_blank">$userinfo[musername]</a><if condition="$userinfo[hidden]"><img src=images/misc/user_invisible.gif alt="" width="10" height="10" /></if><if condition="$show['buddy']"><img src=images/misc/heart.gif alt="" width="12" height="12" /></if>
I used the ftp to upload the images I wanted to use instead of the vBulletin defaults. This should replace those images in the forum home page, the who's online page, and the legend on who's online. Thanks so much for giving me a place to start. I think I'm finally starting to understand how HTML works. Much appreciated.
Domokun
p.s. Some snapshots of what I did:
da420
09-30-2006, 09:32 PM
Very cool. I might just have to do something like that. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.