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/


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
  • Page Generation 0.01080 seconds
  • Memory Usage 1,748KB
  • 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
  • (8)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete