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
vBFriends - View your social network and surf to others in vBulletin 3.5 Details »»
vBFriends - View your social network and surf to others in vBulletin 3.5
Version: 2.00, by Cloud-Warrior Cloud-Warrior is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 11-23-2005 Last Update: 01-31-2006 Installs: 111
 
No support by the author.

As with vBFOAF, I've just released this mod. (There are no modications needed really, so it's more of an add-on.)

Please note that your buddy list becomes public (to other registered users) with vBFriends, so you will have to notify people of the small change in policy.

Put the attached file in your vbulletin folder, and call with the u=1 parameter, e.g.

http://www.vbulletin.ie/forums/friends.php?u=1

You can surf your social network (similar to orkut), and view connections you have made to others and that others have made to you (similar to FOAF, or as illustrated with plink.org).

Screenshot attached.

The code contains some hardcoded HTML to avoid the use of templates (for now), but it uses standard vB3 CSS classes such as tcat, thead, smallfont, alt1 and alt2 - so should be fine with most styles.

Changelog:

PHP Code:
// 0.1 - 2004-06-23 - First version
// 0.2 - 2004-06-24 - Added missing trailing slash
// 0.3 - 2004-06-28 - Added missing TABLE_PREFIX to tables
// 0.4 - 2004-07-01 - Added functionality for enemies
// 1.0 - 2004-07-21 - No comment
// 1.1 - 2004-09-09 - Added mutual percentage, in and out counts, link and unlink options for own account
// 1.2 - 2005-11-24 - Updated for the vB 3.5 series 
I have edited my postbit/postbit_legacy template, and linked it from there, e.g. under the reputation part, add in something like:

Code:
<a class="smallfont" href="friends.php?$session[sessionurl]u=$post[userid]">Friends</a>

Supporters / CoAuthors

Show Your Support

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

Comments
  #82  
Old 01-10-2006, 09:00 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is somebody still working on improving this??

If so, will it be possible to only display a maximum of friends, and then the rest they click on Show All Friends or something??

can this be done?
Reply With Quote
  #83  
Old 01-10-2006, 09:21 PM
silurius silurius is offline
 
Join Date: Oct 2004
Posts: 404
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think we're still waiting for someone to pick this one up again.
Reply With Quote
  #84  
Old 01-10-2006, 09:52 PM
D|ver's Avatar
D|ver D|ver is offline
 
Join Date: Feb 2003
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by j.jacobsen
Here we go with a little enhancement. I added a setup part into the code, so you don't need to search the text in the hard coded html. I also removed the foe part because I don't think someone wants to show these in his profile. You can choose if you want to use avatares or profilepics for the friends part (see attached images). The plugin still only shows friends. If you want to have the buddies only you have to edit it again to your needs.

Maybe I should start a new thread for this in the vB 3.5 plugin forum if I get permission from you, Cloud-Warrior, since it's basically your code a bit optimized

Heres the setup part of it
Code:
// Setup
///////////////////////////////////////////////////////////

$FFsetup = Array(

// these are the texts which are displayed

'friends' => "Freunde",
'has_these_users_on_his_list' => "Buddy-Liste",
'is_on_these_buddy_lists' => $userinfo['username']." ist auf den Buddy-Listen von",

// set these to TRUE or FALSE
// if you set fetch_avatar true you will get avatar picture, else you get profile picture if present

'show_counts' => false,
'fetch_avatar' => true

);

// End of setup
///////////////////////////////////////////////////////////
You see i commented a bit.

I hope it works for you, as it works for me. I'm using 3.5.3

EDIT: For those who haven't used it before I need to mention it again: Place
Code:
$FRIENDSFOES
in the MEMBERINFO template wherever you want to display this.

cheers
Jens
great addon
i will use this

but is it possible to hide those information who you got in your buddy list and whohas added you to his buddy list?
so only the friends are shown?
that would be great
Reply With Quote
  #85  
Old 01-11-2006, 02:57 AM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by silurius
I think we're still waiting for someone to pick this one up again.
I can't wait, as my members are really starting to like it and I would hate it that this is not updated anymore...
Reply With Quote
  #86  
Old 01-11-2006, 12:30 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 D|ver
but is it possible to hide those information who you got in your buddy list and whohas added you to his buddy list?
so only the friends are shown?
that would be great
Here we go This is a complete rewrite of the plugin. Please remove the old one before installing the new one. Replace
Code:
$FRIENDSFOES
in your MEMBERINFO template with
Code:
$FNB_HTML
Also take a look at the extended setup part of the plugin code.

PHP Code:
// Setup
/////////////////////////////
$FNB_setup = array(
'friends' => "Freunde",
'buddies' => "Buddies",
'has_these_users_on_his_list' => "Buddy-Liste",
'is_on_these_buddy_lists' => $userinfo['username']." ist auf den Buddy-Listen von",

'columns_to_show' => 5,

// set these to TRUE or FALSE
// if you set show_friends to false you will get buddies shown up instead of friends and extended info is removed even
// you set show_ext_info to true
// if you set show_ext_info to false the additional buddy-list and where the user is buddy on others lists gets hidden
// if you set fetch_avatar true you will get avatar picture, else you get profile picture if present

'show_friends' => true,
'show_ext_info' => true,
'show_counts' => true,
'fetch_avatar' => true
); 
You can now additionally choose which list is shown, i.e. the friendslist or the buddylist with avatars or profilepics - as you like. If you choose the buddylist to be shown the extra information on who's on your buddylist and on whom's you are will be hidden. Even if show_ext_info is set true.

If you use file-based storage of profile pics, the profile-pics will NOT show up.

If you choose the friendslist to be shown, you can decide if you want to show the extra buddy info to be hidden or not with the show_ext_info array key.

Current xml: #102
Reply With Quote
  #87  
Old 01-11-2006, 12:45 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

J, I'm completely baffled.
Installed this hack without problems, using the original friends.xml plugins. All works well, except I get this error
Quote:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /member.php(651) : eval()'d code on line 359
You can see it here: http://russbo.org/vb/member.php?u=1&styleid=41

Now, if I disable or delete the plug in, my member profile page gets destroyed (even if I remove $FRIENDSFOES from the memberinfo template).

The new xml file, above, results in the same destroyed member profile; basically, I lose everything below the avatar and user name.

I'd like to get this to work, but, I don't understand why this error is coming up.
Any ideas???

Thanks!
rich
Reply With Quote
  #88  
Old 01-11-2006, 01:01 PM
jj's Avatar
jj jj is offline
 
Join Date: Sep 2005
Location: Viernheim, Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please re-download the xml file and overwrite the installed plugin with it. The sql error should be gone then.

If I remove the input-variable from the MEMBERINFO template everything is fine, the profile page is working and the friends or buddie field doesn't show up.
Reply With Quote
  #89  
Old 01-11-2006, 01:09 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

which xml? From post 85? Will that overwrite the previous plug ins?

Thanks!
Reply With Quote
  #90  
Old 01-11-2006, 01:12 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 docvader
which xml? From post 85? Will that overwrite the previous plug ins?

Thanks!
Yes, the xml from #85, and it should overwrite the previous one, as it's the same name. Hope you have removed the first one I did. Had another name, so there should be only "Friends and/or Buddylist on Profile" under (Hook) : member_complete in plugins.
Reply With Quote
  #91  
Old 01-11-2006, 02:13 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by j.jacobsen
Here we go This is a complete rewrite of the plugin. Please remove the old one before installing the new one. Replace
Code:
$FRIENDSFOES
in your MEMBERINFO template with
Code:
$FNB_HTML
Also take a look at the extended setup part of the plugin code.

PHP Code:
// Setup
/////////////////////////////
$FNB_setup = array(
'friends' => "Freunde",
'buddies' => "Buddies",
'has_these_users_on_his_list' => "Buddy-Liste",
'is_on_these_buddy_lists' => $userinfo['username']." ist auf den Buddy-Listen von",

'columns_to_show' => 5,

// set these to TRUE or FALSE
// if you set show_friends to false you will get buddies shown up instead of friends and extended info is removed even
// you set show_ext_info to true
// if you set show_ext_info to false the additional buddy-list and where the user is buddy on others lists gets hidden
// if you set fetch_avatar true you will get avatar picture, else you get profile picture if present

'show_friends' => true,
'show_ext_info' => true,
'show_counts' => true,
'fetch_avatar' => true
); 
You can now additionally choose which list is shown, i.e. the friendslist or the buddylist with avatars or profilepics - as you like. If you choose the buddylist to be shown the extra information on who's on your buddylist and on whom's you are will be hidden. Even if show_ext_info is set true.

If you use file-based storage of profile pics, the profile-pics will NOT show up.

If you choose the friendslist to be shown, you can decide if you want to show the extra buddy info to be hidden or not with the show_ext_info array key.
will there be a way that you will only be able to show like 8 friends in the profile, and then the rest brings you to the friends page or something, can this be done?

what would be even better is that we can choose our top 8 but I know that that would be something hard to do...
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 01:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07176 seconds
  • Memory Usage 2,348KB
  • Queries Executed 26 (?)
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
  • (7)bbcode_code
  • (3)bbcode_php
  • (6)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