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
  #102  
Old 01-20-2005, 08:49 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The easiest would be a separate column which gets updated as people are added or removed from the buddy list. When I have time I was going to look into it. But I'm just too busy. It's not hard - same queries only when people are added to buddy list, adds to the column in user table with list of userids.
Reply With Quote
  #103  
Old 01-28-2005, 09:14 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cloud-Warrior
I'm afraid work priorities have put me off track on this hack - it'll be a few weeks before I can take a look.

There's three ideas - see if the existing SQL and code can be optimised, create a new table to store buddy IDs, or cache the output to a HTML file that only gets updated every so often...

Sorry - but I do want to do this, just can't at the moment.
Hey so far for me it works great.
Reply With Quote
  #104  
Old 02-15-2005, 02:14 PM
Dennis Olson Dennis Olson is offline
 
Join Date: Jul 2004
Location: Wisconsin
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like something a little different:

Mods and admins can see anyone's list, but regular users can only see their own list. (For example user# 123 could not see user # 456's friends list.) How could that be done?
Reply With Quote
  #105  
Old 03-05-2005, 12:09 PM
altsounds altsounds is offline
 
Join Date: Dec 2004
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Re-vamping the buddy portion of VB would be excellent for this hack so that a PM is sent when you ask to add a buddy and they can either accept you or deny you.

If they accept you, it would be cool if it automatically created the reverse (add me as one of their friends too).

And having the capability of viewing the buddies from the profile with a limit (say 8) shown. Would be cool if they could be shown in random order too so every time you open the profile it would be different. There should then be a link saying view full buddy list which will take you to friends.php

I can mess around with the profile integration thing (not that good at coding mind you) if some expert can handle the whole back end buddy pm sending, accepting, denying and checking.

I'll be keeping my eye on this post!!!!

Great Hack.

Chris
Reply With Quote
  #106  
Old 03-05-2005, 08:31 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good idea sounds like myspace... nice.
Reply With Quote
  #107  
Old 03-10-2005, 06:08 PM
altsounds altsounds is offline
 
Join Date: Dec 2004
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone willing to take my suggestions above on?? As I stated I am not a coder so all I can help with is suggestions!! This would be amazing if someone could take it on.

Chris
Reply With Quote
  #108  
Old 03-13-2005, 12:59 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey a few if statements do not work in this.
I never noticed before. The enemy and " <!-- // If already on list, will want to change this to remove... -->" part.
if you look there isnt code there for the if statement. should be a else but I am not sure what string to put.

If your around think you can fix that small mishap?

Quote:
Originally Posted by sabret00the
fixed code, it was dirty but it works

replace the template with this
HTML Code:
$stylevar[htmldoctype]
<head>
<title>$vboptions[bbtitle] vBFriends</title>
$headinclude

</head>
<body>
$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" width="200">
			User
		</td>
	<if condition="$whichlist == 'buddylist'">
		<td class="tcat" colspan="2">
			Friends ($inoutcounter) ... $mutual% Mutual
		</td>
	<else />	
		<td class="tcat" colspan="2">
			Enemies ($inoutcounter) ... $mutual% Mutual
		</td>
	</if>
	</tr>
	<tr>
		<td class="alt1" valign="top" align="center" rowspan="3">
			<if condition="!$userinfo[profilepicdateline]">
				<img src="$vboptions[bburl]/$userinfo[avatarurl]\ /"><br />
			<else />
				<img src="$vboptions[bburl]/image.php?u=$userinfo[userid]&amp;type=profile&amp;dateline=$userinfo[profilepicdateline]" /><br />
			</if>
    		$userinfo[username] ($inoutcounter)<br />
			<br />
			<a class="smallfont" href="$vboptions[bburl]/member.php?u=$userinfo[userid]">View Full Profile</a><br />
			<!-- // If already on list, will want to change this to remove... -->
			<if condition="$userinfo[userid] != $bbuserinfo[userid]">
				<a class="smallfont" href="$vboptions[bburl]/profile.php?do=addlist&userlist=$whichlistshort&u=$userinfo[userid]">Add to Your $whichlistshort List</a>
			</if>
		</td>
		<td class="alt2" colspan="2">
			<table>
				<tr>
					$inoutuserlist
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="thead" height="20">
			Is Linked To ($outcounter)
		</td>
		<td class="thead" height="20">
			Is Linked From ($incounter)
		</td>
	</tr>
	<tr>
		<td class="alt2" valign="top">
			<div class="smallfont">
				$outuserlist
			</div>
		</td>
		<td class="alt2" valign="top">
			<div class="smallfont">
				$inuserlist
			</div>
		</td>
	</tr>
</table>


$footer
Reply With Quote
  #109  
Old 03-13-2005, 08:38 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by T3MEDIA
Hey a few if statements do not work in this.
I never noticed before. The enemy and " <!-- // If already on list, will want to change this to remove... -->" part.
if you look there isnt code there for the if statement. should be a else but I am not sure what string to put.

If your around think you can fix that small mishap?
i have no idea what so ever what you mean, this template is working properly for me.
Reply With Quote
  #110  
Old 03-13-2005, 08:44 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
i have no idea what so ever what you mean, this template is working properly for me.
ok look at your if statement.

<if condition="$userinfo[userid] != $bbuserinfo[userid]">
<a class="smallfont" href="$vboptions[bburl]/profile.php?do=addlist&userlist=$whichlistshort&u= $userinfo[userid]">Add to Your $whichlistshort List</a>
</if>

this is always true. On top of that there isnt a remove there.
shouldnt it not show all the time? I can see it even if they are on my list.

as for enemies I never see that.

is it just me?
Reply With Quote
  #111  
Old 03-13-2005, 08:48 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by T3MEDIA
ok look at your if statement.

<if condition="$userinfo[userid] != $bbuserinfo[userid]">
<a class="smallfont" href="$vboptions[bburl]/profile.php?do=addlist&userlist=$whichlistshort&u= $userinfo[userid]">Add to Your $whichlistshort List</a>
</if>

this is always true. On top of that there isnt a remove there.
shouldnt it not show all the time? I can see it even if they are on my list.

as for enemies I never see that.

is it just me?
what the if condition is asking is "if you are not this user => do you want to add him/her to your userlist?" and NOT "if you're a buddy do you wanna add me?".
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 10:26 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.04659 seconds
  • Memory Usage 2,330KB
  • 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
  • (1)bbcode_html
  • (1)bbcode_php
  • (5)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