Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 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: 2.0.2, by jj jj is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.8 Rating:
Released: 12-16-2006 Last Update: 08-26-2007 Installs: 162
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!


TODO

  • Looking into avatar/profilepicture display/detection
  • Online status of friends/buddies
  • ?SEO compatibility?


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
  #72  
Old 05-06-2007, 01:51 AM
tamborinegal's Avatar
tamborinegal tamborinegal is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jj View Post
Well I wrote a pm to Antivirus, lets see what we can do here...
Cool. Thanks jj. It would be so great have the two incorporated.

I just have a couple of problems. The first one is the pagination system and the buddy (or friends) count. I'm finding that if there are enough friends or buddies to split into two or more pages the count is right and so are the avatars that show up. The problem is that when a member has less than the amount of buddies (or friends) to show up on two or more pages, one of the buddies (or friends doesn't appear). For example, if a member has two buddies, the count will say 2 buddies, but it will only show one of them... then if another buddy is added the count will change accordingly but the buddy just added won't show up until another buddy is added. This is no longer a problem when there are more buddies added and it splits into two pages... any idea why that would be happening?

Hope the above makes sense. It seems to be a pagination problem.

...and also I have noticed that when the "Links to the profiles of friends/buddies by ID?" is set to no, the link is incorrect and doesn't go to the buddies profile.

Thanks again for all your work jj.

Cheers

Clancy
Reply With Quote
  #73  
Old 05-06-2007, 07:41 AM
jj's Avatar
jj jj is offline
 
Join Date: Sep 2005
Location: Viernheim, Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rossco_2005 View Post
Something seems to be wrong.

All teh headings are missing...
for example instead of it saying "rossco is a buddy of: (6)" it just says "(6)"
Hm. Which vb Version you are using?

Anyone else with this problem? I've tested a lot to get this work.

Quote:
Originally Posted by tamborinegal View Post
I just have a couple of problems. The first one is the pagination system and the buddy (or friends) count. I'm finding that if there are enough friends or buddies to split into two or more pages the count is right and so are the avatars that show up. The problem is that when a member has less than the amount of buddies (or friends) to show up on two or more pages, one of the buddies (or friends doesn't appear). For example, if a member has two buddies, the count will say 2 buddies, but it will only show one of them... then if another buddy is added the count will change accordingly but the buddy just added won't show up until another buddy is added. This is no longer a problem when there are more buddies added and it splits into two pages... any idea why that would be happening?

Hope the above makes sense. It seems to be a pagination problem.

...and also I have noticed that when the "Links to the profiles of friends/buddies by ID?" is set to no, the link is incorrect and doesn't go to the buddies profile.
Hopefully fixed.
Reply With Quote
  #74  
Old 05-06-2007, 12:54 PM
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using 3.6.5.
Not sure why the phrases are fcked like that.
Reply With Quote
  #75  
Old 05-06-2007, 01:06 PM
shokmuzik.com shokmuzik.com is offline
 
Join Date: Apr 2007
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the older version working without problems. Updated, installed overwrote the german product but doesnt show up in memberinfo only in admincp. Deleted product and installed again, but no difference.
Reply With Quote
  #76  
Old 05-06-2007, 01:12 PM
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed. Sorry, it was another plugin affecting your init_startup plugin.
Wierd.

Managed to find a real bug though...the remove buddy/add buddy phrases are backwards. :P
Reply With Quote
  #77  
Old 05-06-2007, 03:41 PM
shokmuzik.com shokmuzik.com is offline
 
Join Date: Apr 2007
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed. Installed the english version and it worked, installed the german product over the english one and it worked, too.
Reply With Quote
  #78  
Old 05-07-2007, 06:27 AM
jj's Avatar
jj jj is offline
 
Join Date: Sep 2005
Location: Viernheim, Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shokmuzik.com View Post
Fixed. Installed the english version and it worked, installed the german product over the english one and it worked, too.
Weird. I had no problems with the german version on my test board and on our board itself.
Reply With Quote
  #79  
Old 05-07-2007, 04:47 PM
jj's Avatar
jj jj is offline
 
Join Date: Sep 2005
Location: Viernheim, Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rossco_2005 View Post
Fixed. Sorry, it was another plugin affecting your init_startup plugin.
Wierd.

Managed to find a real bug though...the remove buddy/add buddy phrases are backwards. :P
Fixed, and thanks for the info with your problem (maybe click install now? =])
Reply With Quote
  #80  
Old 05-07-2007, 09:20 PM
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jj View Post
Fixed, and thanks for the info with your problem (maybe click install now? =])
Sorry, I noticed more bugs...

First, you are already grabbing all buddies' avatar info from the DB in one query, but then for each friend you are fetching the avatr info again meaning each friend adds another query to the page...
I'd provide more info/a fix to you for this but your code is sorta all over the place and the var names are not constant, so it's too confusing for me to trace it...
Anyway, it works great so if you're not going to fix that I'll keep this installed anyway, until I can find my own fix.
Reply With Quote
  #81  
Old 05-07-2007, 11:52 PM
tamborinegal's Avatar
tamborinegal tamborinegal is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tamborinegal View Post
I just have a couple of problems. The first one is the pagination system and the buddy (or friends) count. I'm finding that if there are enough friends or buddies to split into two or more pages the count is right and so are the avatars that show up. The problem is that when a member has less than the amount of buddies (or friends) to show up on two or more pages, one of the buddies (or friends doesn't appear). For example, if a member has two buddies, the count will say 2 buddies, but it will only show one of them... then if another buddy is added the count will change accordingly but the buddy just added won't show up until another buddy is added. This is no longer a problem when there are more buddies added and it splits into two pages... any idea why that would be happening?

...and also I have noticed that when the "Links to the profiles of friends/buddies by ID?" is set to no, the link is incorrect and doesn't go to the buddies profile.
Quote:
Originally Posted by jj View Post

Hopefully fixed.
Works perfectly now. Thanks jj!

Clancy
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:07 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.06692 seconds
  • Memory Usage 2,330KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_php
  • (8)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
  • (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