vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - Replace Buddy Icon (https://vborg.vbsupport.ru/showthread.php?t=166174)

Red Spider 12-25-2007 10:00 PM

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 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:

HTML Code:

$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
and

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>
4)
In whosonlinebit find:

HTML Code:

<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>$userinfo[hidden]<if condition="$show['buddy']">+</if>
replace with:

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>
5)
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>
6)
In WHOSONLINE find:

HTML Code:

<td><strong>+</strong></td>
<td class="smallfont">&nbsp; $vbphrase[user_is_on_your_contact_list]</td>

replace with:

HTML Code:

<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 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

asj 12-27-2007 04:00 AM

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

Quote:

Originally Posted by Red Spider (Post 1409897)
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

Quote:

Originally Posted by Red Spider (Post 1410364)
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:
HTML Code:

<td><strong>+</strong></td>
<td class="smallfont">&nbsp; 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?

Red Spider 01-05-2008 11:51 PM

Probably not :/

Red Spider 01-06-2008 02:28 PM

Quote:

Originally Posted by SwollenCranium (Post 1410372)
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

Quote:

Originally Posted by slmoney (Post 1416631)
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

Quote:

Originally Posted by SwollenCranium (Post 1410372)
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
PHP Code:

$user['buddymark'] = '+'

The + in anything you want. Like:
PHP Code:

$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
PHP Code:

$user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' ''

in
PHP Code:

$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

Quote:

Originally Posted by Hoffi (Post 1489647)
If you change two Files, you have it everywhere.
Just change (for 3.7Beta3)
File: functions_bigthree.php
Line106
PHP Code:

$user['buddymark'] = '+'

The + in anything you want. Like:
PHP Code:

$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
PHP Code:

$user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' ''

in
PHP Code:

$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

Quote:

Originally Posted by Hoffi (Post 1489647)
If you change two Files, you have it everywhere.
Just change (for 3.7Beta3)
File: functions_bigthree.php
Line106
PHP Code:

$user['buddymark'] = '+'

The + in anything you want. Like:
PHP Code:

$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
PHP Code:

$user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' ''

in
PHP Code:

$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.

LWS 06-10-2008 01:24 AM

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.

Rocc 06-27-2008 05:36 AM

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/attachmen...1&d=1219650383

the image is also in the correct folder

VeeDubZ 08-30-2008 05:45 PM

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>
for it to give you the comma inbetween each username.

Tested and working on vb3.7.3

DragonMasterNYC 09-05-2008 01:56 AM

Quote:

Originally Posted by PoetJA-1975
$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 :@


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
  • Page Generation 0.01390 seconds
  • Memory Usage 1,847KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_html_printable
  • (12)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete