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
  #32  
Old 06-27-2008, 03:04 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep - the correct way would be $stylevar[imgdir_misc]/buddy-image

Jacquii.
Reply With Quote
  #33  
Old 06-27-2008, 05:36 AM
Rocc Rocc is offline
 
Join Date: Mar 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did everything correct and it looks good in all other areas but how do I get the comma and space them correctly?



If you can help it would be greatly appreciated.
Reply With Quote
  #34  
Old 08-15-2008, 11:05 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol at the screen shots.
Reply With Quote
  #35  
Old 08-25-2008, 06:47 AM
Skierpetros's Avatar
Skierpetros Skierpetros is offline
 
Join Date: Jan 2008
Location: www.shopforum.gr
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed everything correctly and that happen ...




the image is also in the correct folder
Reply With Quote
  #36  
Old 08-30-2008, 05:45 PM
VeeDubZ VeeDubZ is offline
 
Join Date: Nov 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #37  
Old 09-05-2008, 01:56 AM
DragonMasterNYC's Avatar
DragonMasterNYC DragonMasterNYC is offline
 
Join Date: Jul 2007
Location: Bronx NY
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #38  
Old 10-17-2008, 06:19 AM
Seiyaboy Seiyaboy is offline
 
Join Date: May 2006
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #39  
Old 03-22-2009, 11:25 AM
itsheinz itsheinz is offline
 
Join Date: Feb 2009
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one,installed^^
Reply With Quote
  #40  
Old 05-11-2009, 11:44 AM
FiMeTi FiMeTi is offline
 
Join Date: May 2008
Location: Germany
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #41  
Old 07-31-2009, 06:48 PM
SEW810's Avatar
SEW810 SEW810 is offline
 
Join Date: Mar 2008
Location: M?xico City
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lil annoying when trying to select and copy :@
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 05:34 PM.


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.04984 seconds
  • Memory Usage 2,314KB
  • Queries Executed 27 (?)
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
  • (9)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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