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
  #92  
Old 12-15-2004, 06:38 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahhhhh i just noticed that issue too, ok i'll fix that
Reply With Quote
  #93  
Old 12-15-2004, 06:41 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #94  
Old 12-15-2004, 06:43 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you ever so much.
Reply With Quote
  #95  
Old 12-17-2004, 11:28 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've not been able to work out how to optimise this at all.
Reply With Quote
  #96  
Old 12-17-2004, 11:42 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 benj
are there any plans to update this hack in any way shape or form ?
yeah that would be really so great if this hack would be optimised

i really love this hack but because there is still no profile integration i can't use it ;(
Reply With Quote
  #97  
Old 12-17-2004, 11:55 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

profile integration is the easy bit, the harder bit is the optimisation, then what i'd really love is making sure you have to accept buddy request, which even that aint too too hard (not saying i could do it but whoever can optimise it can, imo it's just a matter of sending a pm with two links, accept/deny if you click accept then it adds the userid to each table, else it sends back a pm to say request denied.
Reply With Quote
  #98  
Old 12-22-2004, 07:57 AM
MikaK's Avatar
MikaK MikaK is offline
 
Join Date: Nov 2004
Location: Helsinki, Finland
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This surely looks like a very cool hack to have once optimized! Any progress with that?

Cheers,

-Mika
Reply With Quote
  #99  
Old 12-22-2004, 09:29 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

aye once it's optimised it will be a great hack.
Reply With Quote
  #100  
Old 01-18-2005, 12:39 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump~~~ Any thing new on this?
Reply With Quote
  #101  
Old 01-20-2005, 08:41 AM
Cloud-Warrior's Avatar
Cloud-Warrior Cloud-Warrior is offline
 
Join Date: Feb 2002
Location: Galway, Ireland
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 11:32 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.05891 seconds
  • Memory Usage 2,313KB
  • 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
  • (1)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