Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBFriends - View your social network and surf to others in vBulletin 3 Details »»
vBFriends - View your social network and surf to others in vBulletin 3
Version: 1.00, by Cloud-Warrior Cloud-Warrior is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 06-22-2004 Last Update: Never Installs: 40
 
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 

Show Your Support

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

Comments
  #12  
Old 06-24-2004, 12:17 PM
Ghostsuit's Avatar
Ghostsuit Ghostsuit is offline
 
Join Date: Nov 2001
Location: Glasgow, Scotland
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks fantastic. Wait for next release before testing
Reply With Quote
  #13  
Old 06-24-2004, 12:21 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think the file has been updated
Reply With Quote
  #14  
Old 06-24-2004, 02:54 PM
Cloud-Warrior's Avatar
Cloud-Warrior Cloud-Warrior is offline
 
Join Date: Feb 2002
Location: Galway, Ireland
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Polo
Nice hack Cloud warrior, i have made several modifications to the code (so it can work the way i want it) and so far i havent had any problems.
Thanks for the positive comments all - Polo, I'll appreciate any useful updates / changes you have made...
Reply With Quote
  #15  
Old 06-24-2004, 03:52 PM
D|ver's Avatar
D|ver D|ver is offline
 
Join Date: Feb 2003
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack

but is it possible to integrate this into the normal user profile?
Reply With Quote
  #16  
Old 06-24-2004, 03:59 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Idea
Reply With Quote
  #17  
Old 06-24-2004, 04:09 PM
Cloud-Warrior's Avatar
Cloud-Warrior Cloud-Warrior is offline
 
Join Date: Feb 2002
Location: Galway, Ireland
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you mean linking to the Friends page, it just involves some editing of your templates. One way to make it more visible is to edit your postbit template, and just add in something like:

Code:
<a class="smallfont" href="friends.php?$session[sessionurl]u=$post[userid]">Friends</a>
whereever you want it. I put it after the reputation images on my forum, it's a matter of personal taste I guess.
Reply With Quote
  #18  
Old 06-24-2004, 04:50 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cloud-Warrior
Thanks for the positive comments all - Polo, I'll appreciate any useful updates / changes you have made...
ok Cloud,
Reply With Quote
  #19  
Old 06-25-2004, 09:06 AM
D|ver's Avatar
D|ver D|ver is offline
 
Join Date: Feb 2003
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cloud-Warrior
If you mean linking to the Friends page, it just involves some editing of your templates. One way to make it more visible is to edit your postbit template, and just add in something like:

Code:
<a class="smallfont" href="friends.php?$session[sessionurl]u=$post[userid]">Friends</a>
whereever you want it. I put it after the reputation images on my forum, it's a matter of personal taste I guess.
thx for you help, but i don't mean linking to it

i want to show the friends page under the contact information in the normal user profile
is there any way to include friends.php?u=&userid for example?

that would be really great
Reply With Quote
  #20  
Old 06-25-2004, 05:46 PM
Gryphon's Avatar
Gryphon Gryphon is offline
 
Join Date: Oct 2001
Location: Seattle, WA
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It didn't like table prefixes so I had to make the following changes.

Find:
PHP Code:
     // (Dis)Likes
    
$outuserids = array();
    
$outuserids explode(' 'trim($userinfo[$whichlist]));
    if (
trim($userinfo[$whichlist]) != "") {
        
$outusers $DB_site->query("SELECT user.username,user.userid,usertextfield.".$whichlist." FROM
        "
.TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
        user.userid = usertextfield.userid AND
        user.userid IN ("
.implode(',',$outuserids).") 
Replace:
PHP Code:
    // (Dis)Likes
    
$outuserids = array();
    
$outuserids explode(' 'trim($userinfo[$whichlist]));
    if (
trim($userinfo[$whichlist]) != "") {
        
$outusers $DB_site->query("SELECT ".TABLE_PREFIX."user.username,".TABLE_PREFIX."user.userid,".TABLE_PREFIX."usertextfield.".$whichlist." FROM
        "
.TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
        "
.TABLE_PREFIX."user.userid = ".TABLE_PREFIX."usertextfield.userid AND
        "
.TABLE_PREFIX."user.userid IN (".implode(',',$outuserids).") 
Find:
PHP Code:
    // (Dis)Liked By
    
$counter 0;
    
$inusersquery "SELECT user.username,user.userid,usertextfield.".$whichlist." FROM
    "
.TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
    user.userid = usertextfield.userid AND
    FIND_IN_SET('"
.$userinfo[userid]."', REPLACE(usertextfield.".$whichlist.", ' ', ',')) > 0
    ORDER BY user.username"

Replace:
PHP Code:
    // (Dis)Liked By
    
$counter 0;
    
$inusersquery "SELECT ".TABLE_PREFIX."user.username,".TABLE_PREFIX."user.userid,".TABLE_PREFIX."usertextfield.".$whichlist." FROM
    "
.TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
    "
.TABLE_PREFIX."user.userid = ".TABLE_PREFIX."usertextfield.userid AND
    FIND_IN_SET('"
.$userinfo[userid]."', REPLACE(".TABLE_PREFIX."usertextfield.".$whichlist.", ' ', ',')) > 0
    ORDER BY "
.TABLE_PREFIX."user.username"
Reply With Quote
  #21  
Old 06-25-2004, 06:50 PM
58sniper 58sniper is offline
 
Join Date: Sep 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The one minor issue I've seen so far is that the avatar dimensions are hard coded. This is fine if you're using the 64x64 format.

Just a thought. Otherwise it's cool.
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 12:16 AM.


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.05003 seconds
  • Memory Usage 2,337KB
  • 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
  • (2)bbcode_code
  • (5)bbcode_php
  • (3)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
  • (3)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