Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Friends and/or Buddies on Profile Details »»
Friends and/or Buddies on Profile
Version: 1.0.5, by jj jj is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Version: 3.5.5 Rating:
Released: 01-13-2006 Last Update: 03-12-2006 Installs: 270
Uses Plugins Template Edits
 
No support by the author.

WHAT's THIS
  • This product adds a public friends and/or buddy list in the profile.
  • What are friends? Friends means you are on each others buddylists. It is no seperate addition/addon. It's all based on vb's buddy system.
  • Need more info? Look at the attached screenshots, or the live demo(s).
  • Avatars/profilepics will not show up, if stored in filesystem!
  • Need some kind of informing the users, which have been added to a buddy list? Look at the AutoPM after addBuddy Plugin by Antivirus
  • The product adds 2 queries to the profile page


INSTALLATION


Install with product manager.


Set your preferences in the acp (vBulletin options)


Add
PHP Code:
$FNB_HTML 
somewhere in your MEMBERINFO template. Whereever you'd like to show up the friends or buddies. If you're not sure what to do, search for
Code:
<if condition="$show['signature']">
in your MEMBERINFO template and add it before that line.


OPTIONAL (User selectable)


If you want to have this user-selectable you need to add a custom profile field. Create the new field as a radiobutton, give it a name and description of your choice, the options yes and no and use the following code instead of only $FNB_HTML:

HTML Code:
<if condition="$userinfo[fieldXX] == yes">$FNB_HTML</if>
(if user wishes to show up)
or

HTML Code:
<if condition="$userinfo[fieldXX] != no">$FNB_HTML</if>
(show by default, user can deactivate it)

Remember to replace XX with the number of the new profilefield!


PLANNED FEATURES

  • Using Templates


LIVE DEMO(S)



CREDITS


Thx to Cloud-Warrior for inspiration and idea. If you want a seperate friends page, too, get the vBFriends extension by Cloud-Warrior.

vwturbo (for the idea of gettin profilepics instead of avatars),
gamebgs (limitting shown friends/buddies to a max number),
D|ver (hiding the information who you got in your buddy list and whohas added you to his buddy list),
yayvb (show a "no avatar" picture if no avatar is available),
ThorstenA (see changelog version 1.0.2)

Show Your Support

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

Comments
  #182  
Old 07-10-2006, 08:38 PM
sab2000sab's Avatar
sab2000sab sab2000sab is offline
 
Join Date: May 2006
Location: Michigan
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cbr929rrerion
How do you get the avatars to show up. I have the 2 lists but no avatars..

Help
The avatars show up when BOTH users are eachother's buddy's..

The list on the left is the buddys you have on your list.. the list on the right is the list of members that have YOU on their list.. but you don't have them.. Click the add button [+] next to the members to add them to your list.. once you are on eachother's list.. you will see the avatars!

Sandra
Reply With Quote
  #183  
Old 07-11-2006, 05:42 PM
Coldhands's Avatar
Coldhands Coldhands is offline
 
Join Date: Oct 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jj
Hm? The hyperlink is being shown, if you choosed to limit the displayed number of friends, automatically in the profile, like in this picture
I understand that there is a link to veiw more buddies, but I wanted to make the "Buddies(##)" also link in the same way as "alle Anziegen". The fine print "alle Anziegen" link isn't very obvious, where as if the "Buddies(##)" was also a link, it would become more obvious that you can view more friends.

I'm not sure where to go and edit the code for this area. Do I go into plugin manager, or should I go into replacement variable area or somewhere else?
Reply With Quote
  #184  
Old 07-11-2006, 06:06 PM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's hit or miss on if the avatar shows up.

What is up with that?
Reply With Quote
  #185  
Old 07-12-2006, 08:56 PM
Coldhands's Avatar
Coldhands Coldhands is offline
 
Join Date: Oct 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coldhands
I understand that there is a link to veiw more buddies, but I wanted to make the "Buddies(##)" also link in the same way as "alle Anziegen". The fine print "alle Anziegen" link isn't very obvious, where as if the "Buddies(##)" was also a link, it would become more obvious that you can view more friends.

I'm not sure where to go and edit the code for this area. Do I go into plugin manager, or should I go into replacement variable area or somewhere else?
When I answer my own questions, I like to come back and answer them for anyone else that may have the same question so here it is . . .

Go to Admin CP >> Plugin System >> Plugin Manager >> Click on [edit] Friends and/or Buddies in Profile >> then . . . .

(cut & paste into note pad the Plugin PHP Code, and use the find feature)

You need to find this line:

Code:
$FNB_HTML .= "<td class=\"tcat\" colspan=\"2\">".($vbulletin->options['fnb_show_friends'] ? $vbphrase['fnb_friends'] : $vbphrase['fnb_buddies']).( ($vbulletin->options['fnb_show_counts']) ? " (".count($FNB_choice).")" : "" )."</td>";
and replace it with this line:

Code:
$FNB_HTML .= "<td class=\"tcat\" colspan=\"2\">"."<a href=\"".$vbulletin->options['bburl']."/member.php?u=".$userinfo['userid']."&showall=1\">".($vbulletin->options['fnb_show_friends'] ? $vbphrase['fnb_friends'] : $vbphrase['fnb_buddies'])."</a>".( ($vbulletin->options['fnb_show_counts']) ? " (".count($FNB_choice).")" : "" )."</td>";
and that will make it so when your buddy has more than x amount of friends, you can click on "Friends (xx)" and it will link the same way as the very small, not so obvious text in the bottom right of the table that says show all.

:banana: :banana: :banana:

P.S. Here's an example of how you can click on "Friends(xx)" so it's linkable. Nothing very exciting, just a link.
Reply With Quote
  #186  
Old 07-29-2006, 07:46 PM
Sean S's Avatar
Sean S Sean S is offline
 
Join Date: Jan 2004
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this, it works like a charm.

Also I wanted to share something with everyone else. I for one wanted the lists to be randomized instead of the usernames be in alphabet order. So all I did was to change
PHP Code:
ORDER BY username 
to
PHP Code:
ORDER BY RAND() 
Reply With Quote
  #187  
Old 07-30-2006, 12:35 AM
serhat_kk serhat_kk is offline
 
Join Date: Jun 2005
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have problem with "Show All".
When users clicks "Show All" it opens;
http://www.domain.com/members/admin.html

My Seo using "members/[user_name].html" and rewrites "/member.php?u=".$userinfo['userid']"

so i have problem with this line

"href=\"".$vbulletin->options['bburl']."/member.php?u=".$userinfo['userid']."&amp;showall=1\">"

how do i fix it?
Thanks...
Reply With Quote
  #188  
Old 08-06-2006, 12:45 AM
serhat_kk serhat_kk is offline
 
Join Date: Jun 2005
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can somebody help?
Reply With Quote
  #189  
Old 08-07-2006, 01:11 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work with vb 3.6?
Reply With Quote
  #190  
Old 08-07-2006, 05:04 PM
louis_chypher's Avatar
louis_chypher louis_chypher is offline
 
Join Date: Mar 2006
Location: Boise, Idaho
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1
Will this work with vb 3.6?

Working on my site running vb 3.6.
Reply With Quote
  #191  
Old 08-08-2006, 04:53 AM
ab420 ab420 is offline
 
Join Date: Feb 2006
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to automatically add new members to my buddy list when they sign up?
Reply With Quote
Reply


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 03:08 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.04977 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (2)bbcode_html
  • (3)bbcode_php
  • (4)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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_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