vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBFriends - View your social network and surf to others in vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=101470)

Cloud-Warrior 11-23-2005 10:00 PM

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

Vizionz 11-24-2005 04:26 PM

this is a awesome hack would there be a easy way to throw this into a profile instead of standalone

Daniel 11-24-2005 04:52 PM

Very interesting, will check it out.

/me clicks install

Snake 11-24-2005 05:58 PM

Sounds good. Will check it out soon.

TundraSoul 11-24-2005 06:07 PM

So much potential with this add-on. A good start.

trancetopia 11-24-2005 09:48 PM

This is sweet and works great. Many thanks for sharing. Clicks install!!

The Chief 11-25-2005 01:25 AM

Looking good, installed and works great so far ;)

trancetopia 11-25-2005 03:02 PM

Found a problem. The main avatar of the person your looking at does not display if your avatars are stored in the filesystem.

jj 11-25-2005 04:27 PM

Nice addon, but indeed, it would be perfect in the profile view, so I played around a bit ^^.

I've attached the plugin xml file. You need to edit the text in the php code, if you don't like german. Maybe this will get extended with phrases to a full product. You need to add
PHP Code:

$FRIENDSFOES 

somewhere in your MEMBERINFO template, wherever you like to have it displayed.

I've also attached a screenshot how it would look like.

For the current XML file look post #85

Snake 11-25-2005 05:09 PM

Nice hack! :)


All times are GMT. The time now is 10:53 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.01152 seconds
  • Memory Usage 1,735KB
  • 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_php_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