Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Replace Buddy Icon Details »»
Replace Buddy Icon
Version: 1.3, by Red Spider Red Spider is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.0 Beta 3 Rating:
Released: 12-25-2007 Last Update: 01-05-2008 Installs: 83
Template Edits
Code Changes Additional Files  
No support by the author.

*=======================================*\
|| ###################################
|| # 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"

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-26-2007, 06:26 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should be in Template Modifications.
Reply With Quote
  #3  
Old 12-26-2007, 06:44 PM
Red Spider's Avatar
Red Spider Red Spider is offline
 
Join Date: Jan 2006
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*request move to template mods*
Reply With Quote
  #4  
Old 12-26-2007, 07:56 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this template modification
Reply With Quote
  #5  
Old 12-27-2007, 03:15 AM
Red Spider's Avatar
Red Spider Red Spider is offline
 
Join Date: Jan 2006
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to v1.2
Reply With Quote
  #6  
Old 12-27-2007, 04:00 AM
asj's Avatar
asj asj is offline
 
Join Date: Jul 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this template modification
Reply With Quote
  #7  
Old 12-27-2007, 10:07 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey very nice, I may install this when I install 3.7
Thanks.
Reply With Quote
  #8  
Old 12-27-2007, 11:15 AM
Audentio's Avatar
Audentio Audentio is offline
 
Join Date: Mar 2007
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lovely .
Reply With Quote
  #9  
Old 12-27-2007, 09:33 PM
SwollenCranium's Avatar
SwollenCranium SwollenCranium is offline
 
Join Date: Oct 2007
Location: Raleigh, NC
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Red Spider View Post
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.
Reply With Quote
  #10  
Old 12-27-2007, 09:55 PM
Red Spider's Avatar
Red Spider Red Spider is offline
 
Join Date: Jan 2006
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SwollenCranium,

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04586 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete