View Full Version : Forum Home Enhancements - Replace Buddy Icon
Red Spider
12-25-2007, 10:00 PM
*=======================================*\
|| ###################################
|| # 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 Release
Version 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:
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]and
replace with:
$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>
4)
In whosonlinebit find:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>$userinfo[hidden]<if condition="$show['buddy']">+</if>replace with:
<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>
5)
In memberinfo_visitorbit find:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li>
replace with:
<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>
6)
In WHOSONLINE find:
<td><strong>+</strong></td>
<td class="smallfont"> $vbphrase[user_is_on_your_contact_list]</td>
replace with:
<td><img src="/images/statusicon/buddy.gif" alt="User is on your buddy list"></td>
<td class="smallfont"> $vbphrase[user_is_on_your_contact_list]</td>
7)
Enjoy :)
I will try to give support as much as i can - to those who have marked as "INSTALLED" :)
Gray Matter
12-26-2007, 06:26 PM
This should be in Template Modifications.
Red Spider
12-26-2007, 06:44 PM
:rolleyes: *request move to template mods*
Sofia
12-26-2007, 07:56 PM
Thank you for this template modification ;)
Red Spider
12-27-2007, 03:15 AM
Updated to v1.2
Thank you for this template modification
Hornstar
12-27-2007, 10:07 AM
Hey very nice, I may install this when I install 3.7
Thanks.
Audentio
12-27-2007, 11:15 AM
Lovely :D.
SwollenCranium
12-27-2007, 09:33 PM
Updated to v1.2
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.
Red Spider
12-27-2007, 09:55 PM
SwollenCranium,
Check you are uploading the image to the right folder. In your case it should be: swollencranium.com/forums/images/statusicon/
SwollenCranium
12-27-2007, 10:05 PM
SwollenCranium,
Check you are uploading the image to the right folder. In your case it should be: swollencranium.com/forums/images/statusicon/
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.
Red Spider
12-27-2007, 10:25 PM
check your template edit(s), a source view of your who's online page still shows:
<td><strong>+</strong></td>
<td class="smallfont"> User is on your contact list</td>
which is wrong.
slmoney
01-01-2008, 01:32 AM
thanks! looks great on my forum...instead of that UGLY + sign
+marks INSTALL+
DrussRob
01-01-2008, 03:55 AM
I like this ;)
well done
glorify
01-02-2008, 09:04 PM
Could you add this hack to this (https://vborg.vbsupport.ru/showthread.php?t=165960)?
Red Spider
01-05-2008, 11:51 PM
Probably not :/
Red Spider
01-06-2008, 02:28 PM
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.
This should be fixed in v1.3 - try downloading and follwing the new instructions :)
slmoney
01-06-2008, 05:02 PM
any way to convert this to a product? with a site having multiple styles available it is a pain to edit all those templates.
Red Spider
01-06-2008, 05:18 PM
any way to convert this to a product? with a site having multiple styles available it is a pain to edit all those templates.
I'm gonna try - but i will need some help :P
The Ottoman
01-13-2008, 10:57 PM
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.
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.
bennac40
04-12-2008, 06:29 PM
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:
Hoffi
04-13-2008, 10:11 AM
If you change two Files, you have it everywhere.
Just change (for 3.7Beta3)
File: functions_bigthree.php
Line106
$user['buddymark'] = '+';
The + in anything you want. Like:
$user['buddymark'] = '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">';
And the secon is the File class_profileblock.php
Line 1056
Change
$user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' : '';
in
$user['buddymark'] = in_array($user['userid'], $buddylist) ? '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">' : '';
Then you need no Template-Mod and the Sign shoul be on every Page.
Breathex
04-13-2008, 07:52 PM
If you change two Files, you have it everywhere.
Just change (for 3.7Beta3)
File: functions_bigthree.php
Line106
$user['buddymark'] = '+';
The + in anything you want. Like:
$user['buddymark'] = '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">';
And the secon is the File class_profileblock.php
Line 1056
Change
$user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' : '';
in
$user['buddymark'] = in_array($user['userid'], $buddylist) ? '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">' : '';
Then you need no Template-Mod and the Sign shoul be on every Page.
That's easier, thanks Hoffi :)
NeuroLancer
04-15-2008, 03:55 AM
If you change two Files, you have it everywhere.
Just change (for 3.7Beta3)
File: functions_bigthree.php
Line106
$user['buddymark'] = '+';
The + in anything you want. Like:
$user['buddymark'] = '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">';
And the secon is the File class_profileblock.php
Line 1056
Change
$user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' : '';
in
$user['buddymark'] = in_array($user['userid'], $buddylist) ? '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">' : '';
Then you need no Template-Mod and the Sign shoul be on every Page.
you still need to modify whosonline, because it gets the + from the template
haytham
05-29-2008, 05:32 PM
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 +
Reinhart
06-13-2008, 04:57 AM
Installed. Works on 3.6.10
Captain Tycoon
06-17-2008, 10:00 AM
Marked and Installed! Thanks!
PoetJA-1975
06-26-2008, 12:25 PM
Thanx ;)
Jacquii.
cheat-master30
06-26-2008, 07:57 PM
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.
PoetJA-1975
06-27-2008, 03:04 AM
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. :)
ShawneyJ
08-15-2008, 11:05 AM
lol at the screen shots.
Skierpetros
08-25-2008, 06:47 AM
I installed everything correctly and that happen ...
https://vborg.vbsupport.ru/attachment.php?attachmentid=86020&stc=1&d=1219650383
the image is also in the correct folder
VeeDubZ
08-30-2008, 05:45 PM
the "forumhome_loggedinuser" template should be
<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>
for it to give you the comma inbetween each username.
Tested and working on vb3.7.3
DragonMasterNYC
09-05-2008, 01:56 AM
$stylevar[imgdir_misc]/buddy-image
This is the only way I can get it to work for me.
Great modification, but this should be made into a product.
Seiyaboy
10-17-2008, 06:19 AM
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?
itsheinz
03-22-2009, 11:25 AM
nice one,installed^^
FiMeTi
05-11-2009, 11:44 AM
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
SEW810
07-31-2009, 06:48 PM
lil annoying when trying to select and copy :@
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.