![]() |
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/ |
Quote:
Indeed. The image is in the correct folder. The template edits were very simple, so I am confident that I have done it correctly as per your instructions. Still, It is not working for me. |
check your template edit(s), a source view of your who's online page still shows:
HTML Code:
<td><strong>+</strong></td> |
thanks! looks great on my forum...instead of that UGLY + sign
+marks INSTALL+ |
I like this ;)
well done |
Could you add this hack to this?
|
Probably not :/
|
Quote:
|
any way to convert this to a product? with a site having multiple styles available it is a pain to edit all those templates.
|
Quote:
|
Quote:
Actually, I was having this problem too, and I re-read the instructions. He's got it coded to go to sitename.com\images\statusicon\buddy.gif not sitename.com\forum\images\statusicon\buddy.gif. It's a bug that happend in the latest version I believe, because I had it working in the first version, but not the new one. |
Hi,
I installed it but have a little problem. It appears fine in all the other sections except on the forum index, I still see the "+". I rechecked the code 3 times. Exactly like what you provided.:confused: |
If you change two Files, you have it everywhere.
Just change (for 3.7Beta3) File: functions_bigthree.php Line106 PHP Code:
PHP Code:
Line 1056 Change PHP Code:
PHP Code:
|
Quote:
|
Quote:
|
Who's online working ok for me but I didn't want to change any codes so I just made 2 folders images-statusicon and put the buddy icon inside. Thank you.
|
thanks ..this looks much better than the +
|
Installed. Works on 3.6.10
|
Marked and Installed! Thanks!
|
Thanx ;)
Jacquii. |
Might want to change the install instructions slightly, because you forgot to say to edit the image path, and some people aren't using their forum in their domain's root folder.
|
Yep - the correct way would be $stylevar[imgdir_misc]/buddy-image
Jacquii. |
I did everything correct and it looks good in all other areas but how do I get the comma and space them correctly?
https://vborg.vbsupport.ru/external/2008/06/10.jpg If you can help it would be greatly appreciated. :) |
lol at the screen shots.
|
I installed everything correctly and that happen ...
https://vborg.vbsupport.ru/attachmen...1&d=1219650383 the image is also in the correct folder |
the "forumhome_loggedinuser" template should be
HTML Code:
<if condition="$show['comma_leader']">, </if>$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]<if condition="$loggedin[buddymark]"><img src="/images/statusicon/buddy.gif" alt="User is on your buddy list"></if> Tested and working on vb3.7.3 |
Quote:
Great modification, but this should be made into a product. |
I have noticed that under showthread and forumdisplay, the + symbol is used instead of the buddy icon that was uploaded. Do you think you might be able to figure out why?
|
nice one,installed^^
|
Hey ... you forgot to fix one location I just noticed!
In Currently Active Users Viewing This Thread you still see the "+". I could add the .gif in "SHOWTHREAD" template, but I cant get rid of the little "+". lol :) Its in "$activeusers", but where/how can I fix it and get the crapy "+" out of there? Thanks 4 help |
lil annoying when trying to select and copy :@
|
All times are GMT. The time now is 04:51 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:
|