vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBFriends - View your social network and surf to others in vBulletin 3 (https://vborg.vbsupport.ru/showthread.php?t=66449)

Cloud-Warrior 06-22-2004 10:00 PM

vBFriends - View your social network and surf to others in vBulletin 3
 
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 


Cold Steel 06-23-2004 07:10 PM

Excellent! Installed!

However, I had to add a "/" to every instance of [bburl]. My [bburl] doesn't have a trailing slash.

Cold Steel 06-23-2004 07:14 PM

Can you explain a little bit about how it works?

I have one buddy, so I am only linked to one person.

Another user has four buddies, and she is linked to eight people.

If they are linked through buddies of buddies, can that be made clear?

Polo 06-23-2004 07:54 PM

Looks like a cool hack, i may install it later...

FleaBag 06-23-2004 09:54 PM

Sweet ass. :)

Erwin 06-23-2004 10:30 PM

Sounds like a very interesting idea. :) I may try this out...

Polo 06-23-2004 11:04 PM

Installed. Works nice so far... (i also had to add a "/")

Cold Steel 06-24-2004 07:03 AM

This hack would be orgasmic if it could become a vBulletin version of Friendster.

Cloud-Warrior 06-24-2004 08:02 AM

Quote:

Originally Posted by Cold Steel
If they are linked through buddies of buddies, can that be made clear?

Sure, I'll explain it now...

Let's say I have 6 buddies on my list (Homer, Marge, Bart, Lisa, Maggie and Grandpa), but only Homer, Bart and Grandpa have me on their buddy lists - then I'm linked to 3 people (because the link has been reciprocated).

So the number of 'friends' is really those who have linked back - you can't make a friend by just adding them to a buddy list. You'll see the number corresponds to the common names in the two lists (linked to / linked from).

I'll fix that trailing slash thing in the next version...

Polo 06-24-2004 12:10 PM

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.


All times are GMT. The time now is 09:10 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.01595 seconds
  • Memory Usage 1,734KB
  • 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_php_printable
  • (1)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