![]() |
Replace Buddy Icon
*=======================================*\
|| ################################### || # Replacement Buddy Icons - Red Spider || # ------------------------------------------------ || # Thanks to Jake Bunce @ vB for the help! || ################################## || \*======================================*/ This hack replaces the ugly "+" icon that denotes "User is on your buddy list" with something a little nicer :) Version 1.0: Inital ReleaseVersion 1.2: [F] Still showing "+" on member profile.Version 1.3: [F] Still showing "+" on who's online legend.Installation: 1) Download files 2) Upload attached image to "yourdomain.com/images/statusicon" folder. 3) In forumhome_loggedinuser find: HTML Code:
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark] replace with: HTML Code:
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]<if condition="$loggedin[buddymark]"><img src="/images/statusicon/buddy.gif" alt="User is on your buddy list"></if> In whosonlinebit find: HTML Code:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>$userinfo[hidden]<if condition="$show['buddy']">+</if> HTML Code:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>$userinfo[hidden]<if condition="$show['buddy']"><img src="/images/statusicon/buddy.gif" alt="User is on your buddy list"></if> In memberinfo_visitorbit find: HTML Code:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li> replace with: HTML Code:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>$user[invisiblemark]<if condition="$user[buddymark]"><img src="/images/statusicon/buddy.gif" alt="User is on your buddy list"></if> </li> In WHOSONLINE find: HTML Code:
<td><strong>+</strong></td> HTML Code:
<td><img src="/images/statusicon/buddy.gif" alt="User is on your buddy list"></td> Enjoy :) I will try to give support as much as i can - to those who have marked as "INSTALLED" :) |
This should be in Template Modifications.
|
:rolleyes: *request move to template mods*
|
Thank you for this template modification ;)
|
Updated to v1.2
|
Thank you for this template modification
|
Hey very nice, I may install this when I install 3.7
Thanks. |
Lovely :D.
|
Quote:
I followed your instructions and I get a red "X" and the phrase "user is on your buddy list" I edited the templates correctly, and the image is in the correct folder. |
SwollenCranium,
Check you are uploading the image to the right folder. In your case it should be: swollencranium.com/forums/images/statusicon/ |
All times are GMT. The time now is 03:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|