vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Friends and/or Buddies on Profile (https://vborg.vbsupport.ru/showthread.php?t=134181)

jj 12-16-2006 10:00 PM

Friends and/or Buddies on Profile
 
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)

jj 12-17-2006 10:42 AM

v2.0.2
  • [Fix] Fixed the german xml file on 2007-27-08

v2.0.2
  • [Fix] Add/remove buddy phrases switched

v2.0.1
  • [Fix] Error in pagination count and displayed entries mismatched
  • [Fix] Profile links by username should work now

v2.0.0
  • [Change] GLOBAL Phrases now in sperate phrasegroup
  • [Add] HTML code now in template system
  • [Add] Pagination

v1.0.5
  • [Fix] Prevent showing the "red X" in Internet Explorer, if no profile pic is set and you're using file based storage of the profile pics

v1.0.4
  • [Add] Option to set hight/width of avatar/profilepic
  • [Add] Option to use profilelinks with id or username
  • [Add] Option to show only friends/buddies with username if you limit them to a max number

v1.0.3
  • [New] It's a product now
  • [Add] Phrased
  • [Add] Setup options moved to ACP (vBulletin options)
  • [Fix] Little fix with added option from 1.0.2

v1.0.2
  • [Add] Option to remove "friends" from being shown in buddy-list and buddy-by-list

v1.0.1
  • [Add] Friends list/Buddy list will not show up, if no friends are available. Also the additional Buddylist/Added by list will not show up if both of the are empty (i.e. you added no buddy and were not added by anyone else to his buddylist)
  • [Add] Prefixes to add/remove buddies in the additional lists now editable in setup part (what is meant exactly? these: [+], [-] as the default)

v1.0.0
  • Initial release

FleaBag 12-17-2006 11:54 AM

Thanks for the confirmation that it will work in 3.6.x... Shame that filesystem images won't work though. I guess I'll have to reluctantly move them back into database to use this beauty. A question: How are friends sorted?

jj 12-17-2006 12:01 PM

Quote:

Originally Posted by FleaBag (Post 1140289)
Thanks for the confirmation that it will work in 3.6.x... Shame that filesystem images won't work though. I guess I'll have to reluctantly move them back into database to use this beauty. A question: How are friends sorted?

They are ordered by username. If you want to change it, you need to edit the plugin code under the hook "member_complete" on line 21 from
PHP Code:

                    username

to something like
PHP Code:

                    RAND()

ie. for randomization. Someone mentioned that in the 3.5.x Thread already.

The buddy-by ordering is located on line 44.

projectego 12-17-2006 12:09 PM

Cool idea, thanks! :)

FleaBag 12-17-2006 12:11 PM

The beauty of RAND. :)

Exactly how I'd like to do it, thanks for the info jj. :)

Veer 12-17-2006 12:29 PM

Hi, I have installed your 3.5 Release in my vb 3.6.0
So is there any need to update or re-install it to this 3.6 release?

thanks.

jj 12-18-2006 07:01 AM

Quote:

Originally Posted by Pehchaan (Post 1140307)
Hi, I have installed your 3.5 Release in my vb 3.6.0
So is there any need to update or re-install it to this 3.6 release?

thanks.

No, as you can read under "EXTRA INFORMATION" it's absolutely the same version and code. I've just tested it myself with a 3.6.0 vb.

Veer 12-18-2006 08:46 AM

okay, thanks :)

MaestroX 12-18-2006 03:44 PM

Thanks for this, I hope people expand on improving the profiles in vB3.6 at the moment there arn't many mods out there.

p.s. The demo site has a really nice layout of the profile. Anychance you'll release a mod to do similar?

Thanks once again


All times are GMT. The time now is 03:08 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.01149 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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