PDA

View Full Version : Forum Home Enhancements - Replace Buddy Icon


Red Spider
26 Dec 2007, 19:09
*=======================================*\
|| ###################################
|| # 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">&nbsp; $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">&nbsp; $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
26 Dec 2007, 20:26
This should be in Template Modifications.

Red Spider
26 Dec 2007, 20:44
:rolleyes: *request move to template mods*

Sofia
26 Dec 2007, 21:56
Thank you for this template modification ;)

Red Spider
27 Dec 2007, 05:15
Updated to v1.2

asj
27 Dec 2007, 06:00
Thank you for this template modification

Hornstar
27 Dec 2007, 12:07
Hey very nice, I may install this when I install 3.7
Thanks.

Audentio
27 Dec 2007, 13:15
Lovely :D.

SwollenCranium
27 Dec 2007, 23:33
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
27 Dec 2007, 23:55
SwollenCranium,

Check you are uploading the image to the right folder. In your case it should be: swollencranium.com/forums/images/statusicon/

SwollenCranium
28 Dec 2007, 00:05
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
28 Dec 2007, 00:25
check your template edit(s), a source view of your who's online page still shows:
<td><strong>+</strong></td>
<td class="smallfont">&nbsp; User is on your contact list</td>
which is wrong.

slmoney
01 Jan 2008, 03:32
thanks! looks great on my forum...instead of that UGLY + sign

+marks INSTALL+

DrussRob
01 Jan 2008, 05:55
I like this ;)
well done

glorify
02 Jan 2008, 23:04
Could you add this hack to this (http://www.vbulletin.org/forum/showthread.php?t=165960)?

Red Spider
06 Jan 2008, 01:51
Probably not :/

Red Spider
06 Jan 2008, 16:28
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
06 Jan 2008, 19:02
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
06 Jan 2008, 19:18
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
14 Jan 2008, 00:57
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
12 Apr 2008, 20:29
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
13 Apr 2008, 12:11
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
13 Apr 2008, 21:52
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
15 Apr 2008, 05:55
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
29 May 2008, 19:32
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.

LWS
10 Jun 2008, 03:24
thanks ..this looks much better than the +

Reinhart
13 Jun 2008, 06:57
Installed. Works on 3.6.10

Captain Tycoon
17 Jun 2008, 12:00
Marked and Installed! Thanks!

PoetJA-1975
26 Jun 2008, 14:25
Thanx ;)

Jacquii.

cheat-master30
26 Jun 2008, 21:57
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
27 Jun 2008, 05:04
Yep - the correct way would be $stylevar[imgdir_misc]/buddy-image

Jacquii.

Rocc
27 Jun 2008, 07:36
I did everything correct and it looks good in all other areas but how do I get the comma and space them correctly?

https://www.vbulletin.org/forum/external/2008/06/10.jpg

If you can help it would be greatly appreciated. :)

ShawneyJ
15 Aug 2008, 13:05
lol at the screen shots.

Skierpetros
25 Aug 2008, 08:47
I installed everything correctly and that happen ...


http://www.vbulletin.org/forum/attachment.php?attachmentid=86020&stc=1&d=1219650383

the image is also in the correct folder

VeeDubZ
30 Aug 2008, 19:45
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
05 Sep 2008, 03:56
$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
17 Oct 2008, 08:19
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
22 Mar 2009, 13:25
nice one,installed^^

FiMeTi
11 May 2009, 13:44
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
31 Jul 2009, 20:48
lil annoying when trying to select and copy :@