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

jj 12-19-2006 06:07 AM

Quote:

Originally Posted by MaestroX (Post 1141024)
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

There was a big thread regarding the pimping of the profile, but I couldn't find it now. If you are interested in the MEMBERINFO content, just send me a note, and I'll send you the code back.

napukjon 12-19-2006 02:00 PM

Works fine, only problem i have is that the avatars arent showing when i have them to show

MaestroX 12-19-2006 06:52 PM

Quote:

Originally Posted by jj (Post 1141445)
There was a big thread regarding the pimping of the profile, but I couldn't find it now. If you are interested in the MEMBERINFO content, just send me a note, and I'll send you the code back.

Thankyou, pm sent :)

AK47 Nemesis 12-23-2006 11:15 AM

Nice, but how do you make the avatars their normal height and width? Since they are pretty small now. If you could tell me, it would be awesome.

jj 12-26-2006 03:20 PM

Quote:

Originally Posted by AK47 Nemesis (Post 1143940)
Nice, but how do you make the avatars their normal height and width? Since they are pretty small now. If you could tell me, it would be awesome.

Set width and height in the VBSettings in the ACP to 0. So they will scale to the original sizes.

adonfun 12-27-2006 06:36 PM

Looks like a great mod.

Update mu (us) when its 3.6.4 ready :)

Brew 01-11-2007 04:06 PM

Quote:

Originally Posted by FleaBag (Post 1140289)
Shame that filesystem images won't work though. I guess I'll have to reluctantly move them back into database to use this beauty.

Can you explain how to move image from the file system?

I've looked all over and can't seem to find the setting :(

Thank you!

edit: nm...I found it :)

Brew 01-11-2007 04:14 PM

After moving image to the filesystem and also after moving the image back into the database the avatars still won't show :(

Any ideas what I should do?

Here's the profile:
http://www.tankkillers.com/forums/member.php?u=1

Thank you!

obmob 01-11-2007 04:37 PM

Oh, i like the idea, and that member template... anywhere i can get the code for that template? :p

thanks

jj 01-11-2007 05:38 PM

Quote:

Originally Posted by Brew (Post 1156340)
After moving image to the filesystem and also after moving the image back into the database the avatars still won't show :(

Any ideas what I should do?

Here's the profile:
http://www.tankkillers.com/forums/member.php?u=1

Thank you!

I am able to see the avatar of you on that link. Btw you're using 3.6.3 right? Seems like it works on 3.6.3, too :)

cfspinner 01-14-2007 06:18 PM

Great hack. Installed. I get the buddy list with avatars, but the additional friends list that show who I am a friend of will not display no matter what setting I choose. Also, the only way I could get the buddy list to display was to set show friends to no. If I set it to yes, the buddy list won't display.

Also, which template do I edit so i can center the avatars?

StarBuG 01-14-2007 08:09 PM

Hi

I tried your hack and it looks promising.

But a few changes would be great.

If a noavatar image is provided, it would be cool if all friends are shown with graphic.
Somewhat like myspace does.

It would also be cool to have an option "use default avatar size of users" (as alternate option to a fixed size like it is now)
Because if all avatars are resized to a predefined size most of them look really bad.

That would be great.

/me clicks install

Spin Doctor 01-21-2007 11:05 AM

Quote:

Avatars/profilepics will not show up, if stored in filesystem!
can someone dum this down for me?

Snake 01-21-2007 12:09 PM

Thanks for the hack but I have a couple of questions.

Is this going to work just fine while I'm having my avatars as filesystem storage? Also is it possible to change the links to member's profile from "http://www.yourdomain.com/member.php?do=getinfo&username=Snake" to "http://www.yourdomain.com/member.php?u=1"?

MistaMarkael 01-27-2007 03:25 AM

so the avitars will not show on 3.6.4?

MorrisMcD 01-27-2007 06:41 AM

I have a user with a TM after his name.. The character, not just the letters TM..

Doesn't recognize it.. Is it possible to be able to add users by memberid as well or possibly fixing this?

NoDRaC 01-27-2007 02:41 PM

show all button doesnt work with vbseo :(
http://www.arkasokak.net/uyeler/metluca/

Snake 02-16-2007 08:10 PM

I just realized that the "Show All" link doesn't work on vBSEO so I was wondering if there's a little fix for this? :)

MistaMarkael 02-16-2007 08:15 PM

Quote:

Originally Posted by MistaMarkael (Post 1168150)
so the avitars will not show on 3.6.4?

? ? ? ?

ragtek 02-18-2007 02:08 PM

what are friends?
i don't know where they are from

jj 02-26-2007 02:14 PM

Quote:

Originally Posted by MistaMarkael (Post 1168150)
so the avitars will not show on 3.6.4?

Quote:

Originally Posted by MistaMarkael (Post 1184148)
? ? ? ?

Quote:

Originally Posted by myself
...I just made sure myself this is running just fine with 3.6.0...

So there will be no answer by me :)

jj 02-26-2007 02:14 PM

Quote:

Originally Posted by ragtek (Post 1185290)
what are friends?
i don't know where they are from

Read in the first post, thx.

jj 02-26-2007 02:15 PM

Quote:

Originally Posted by Snake (Post 1184143)
I just realized that the "Show All" link doesn't work on vBSEO so I was wondering if there's a little fix for this? :)

Got no SEO, so I can't test/fix it.

jj 02-26-2007 02:17 PM

Quote:

Originally Posted by Snake (Post 1164210)
Thanks for the hack but I have a couple of questions.

Is this going to work just fine while I'm having my avatars as filesystem storage? Also is it possible to change the links to member's profile from "http://www.yourdomain.com/member.php?do=getinfo&username=Snake" to "http://www.yourdomain.com/member.php?u=1"?

Quote:

Originally Posted by MorrisMcD (Post 1168208)
I have a user with a TM after his name.. The character, not just the letters TM..

Doesn't recognize it.. Is it possible to be able to add users by memberid as well or possibly fixing this?

This needs some editing in the Script. But I think its possible to go with the memberid. I will write that request down and implement it, when we updated to the latest vbulletin version (we're waiting for 3.6.5).

stonner 03-01-2007 04:12 PM

Great Hack!

Is it possible to set that the admin is by default a friend of every new user?

Thank you!

ABeautifulBrown 03-11-2007 12:57 PM

I have 3.6.5. I have the mod installed but I don't see the avatars. My images are stored in my database. Here's my profile

http://www.sofreshforums.com/member.php?u=1

Snake 03-13-2007 06:16 PM

Quote:

Originally Posted by jj (Post 1191130)
This needs some editing in the Script. But I think its possible to go with the memberid. I will write that request down and implement it, when we updated to the latest vbulletin version (we're waiting for 3.6.5).

It has been released finally. :D

Lars-Christian 03-14-2007 02:02 PM

I thought I'd just confirm that this is running fine on 3.6.5 - As you can see here.

darkblade25 03-15-2007 06:49 AM

How can I get $FNB_HTML to display in the homepage of the UserCP. Can someone please either post or PM me.

ABeautifulBrown 03-21-2007 12:56 AM

Quote:

Originally Posted by ABeautifulBrown (Post 1200780)
I have 3.6.5. I have the mod installed but I don't see the avatars. My images are stored in my database. Here's my profile

http://www.sofreshforums.com/member.php?u=1

anyone got any ideas? no clue what I'm doing wrong.


All times are GMT. The time now is 01:25 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.01462 seconds
  • Memory Usage 1,840KB
  • 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
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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