Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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

Version: 3.5.3 Rating:
Released: 11-23-2005 Last Update: 01-31-2006 Installs: 111
 
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
// 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>

Supporters / CoAuthors

Show Your Support

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

Comments
  #112  
Old 01-14-2006, 11:17 AM
Fallback Fallback is offline
 
Join Date: May 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has this been optimised? Does this still add one query for each friend on each page load?
Reply With Quote
  #113  
Old 01-14-2006, 03:21 PM
jj's Avatar
jj jj is offline
 
Join Date: Sep 2005
Location: Viernheim, Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fallback
Has this been optimised? Does this still add one query for each friend on each page load?
The plugin has been optimized, and has it's own thread now. https://vborg.vbsupport.ru/showthread.php?p=873179
Reply With Quote
  #114  
Old 01-15-2006, 11:42 AM
jj's Avatar
jj jj is offline
 
Join Date: Sep 2005
Location: Viernheim, Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by agiacosa
I'm sorry. I'm a little slow today.

How is one added to the friends list?
A adds B to his buddy list, and B adds A also to his buddy list. Done.
Reply With Quote
  #115  
Old 01-17-2006, 10:55 PM
bogene2020 bogene2020 is offline
 
Join Date: Apr 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I put in ....friends.php?u=1 or u=2 it works but what should I use as the link so that it pulls the members ID automatically when they are logged on . I am using one of those nav bar hacks that adds a 2nd nav bar and so I want to put the link on the navbar . I have to put www.domain.com/forum/friends.php/?u......
Thanks
Reply With Quote
  #116  
Old 01-18-2006, 08:34 PM
yayvb's Avatar
yayvb yayvb is offline
 
Join Date: Feb 2005
Location: CT
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please see a user of my website's profile. The friends names are too long so it is breaking my skin. www.420boards.com/scottso

Can someone please tell me how I can make either only 4 allowed per row or even better yet how to not have this skin break by somehow limiting the names in the vbfriends thing.
Reply With Quote
  #117  
Old 01-18-2006, 09:43 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="SeaGreen">* christianb subscribes to this thread</font>
Reply With Quote
  #118  
Old 01-18-2006, 09:48 PM
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Location: Oklahoma City
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yayvb
Please see a user of my website's profile. The friends names are too long so it is breaking my skin. www.420boards.com/scottso

Can someone please tell me how I can make either only 4 allowed per row or even better yet how to not have this skin break by somehow limiting the names in the vbfriends thing.
Well first, I look at your profile and didn't see anything wrong with it but to change the per row option.....

Change this:

Code:
(($inoutcounter % 5
to

Code:
(($inoutcounter % 4
or whatever amount you want to show.
Reply With Quote
  #119  
Old 01-19-2006, 08:37 AM
shadowdancer36 shadowdancer36 is offline
 
Join Date: Nov 2005
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get it to show up under my profile. I put the friendfoe variable there but its not showing up. I can bring it up in the browser no problem, but withing my profile, no. Any ideas to why?

Here is what I have in my memberinfo template

Code:
$stylevar[htmldoctype] 
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> 
<head> 
$headinclude 
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title> 
<style type="text/css"> 
$post[field24] 
</style> 
</head> 
<body> 
$header 
$navbar 
<table width="90%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"> 
  <tr>  
    <td colspan="2"><div align="center" class="bigusername">$userinfo[musername]</div><if condition="$userinfo['usertitle']">  
              <div class="smallfont" align="center">$userinfo[usertitle]</div> 
              </if> 
              <div align="center">$post[reputationdisplay]</div></td> 
  </tr> 
  <tr>  
    <td valign="top" width="40%"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
        <tbody> 
          <tr class="tcat">  
            <td class="text" colspan="2" style="" align="left" valign="bottom"></td> 
          </tr> 
          <tr class="alt2">  
            <td> <div align="right"><if condition="$show['profilepic']"> <img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>"  
                border="0" style="border:1px solid $stylevar[tborder_bgcolor];  
                border-top:none" /> 
                <else /> 
                 <img src="$stylevar[imgdir_misc]/no_pic.jpg"  alt="$userinfo[username]" border="0" style="border:1px solid $stylevar[tborder_bgcolor];" /> 
             </if> 
                 
                </div></td> 
            <td align="left" valign="top" class="text"> 
              <strong>Sex:</strong> $userinfo[field8] <br /> <if condition="$show['age']"><strong>$vbphrase[age]:</strong>  
              $userinfo[age]</if> <br /> <strong>Location:</strong> $userinfo[field2]<br /> 
              <div>$userinfo[onlinestatus]</div> 
              <br /> 
<div><strong>Last Online:</strong> $userinfo[lastactivitydate] at $userinfo[lastactivitytime]</div><!-- DONATIONS --> 
<if condition="$userinfo['donor'] AND $userinfo['showdonor'] == '1'"><br /><a href="$vboptions[bburl]/donate.php"><img src="$stylevar[imgdir_button]/donate_donor.gif" border="0" alt="Donor" /></a></if> 
<!-- END DONATIONS --> 
 </td> 
          </tr> 
        </tbody> 
      </table> 
      <p>  
      <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
        <tr class="tcat">  
          <td colspan="2">Contacting $userinfo[musername]</td> 
        </tr> 
<if condition="$show[registerbutton]"> 
<if condition="$userinfo[field26]=No"> 
<tr class="alt2"> 
<td> 
$vbphrase[contact_is_private] 
</td> 
</tr> 
</if> 
<else /> 
        <tr class="alt2">  
          <td align="center" height="5" nowrap="nowrap" width="50%"> <div align="left">  
              <img src="$stylevar[imgdir_button]/note_go.png" alt="$vbphrase[profile_pm]" border="0" />  
              <a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[profile_pm]</phrase></a>  
            </div></td> 
          <td align="center" height="5" nowrap="nowrap" valign="top" width="50%">  
            <div align="left"><if condition="$userinfo['showicq']"> $userinfo[icqicon]  
              <a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a>  
              </if> </div></td> 
        </tr> 
        <tr class="alt2">  
          <td align="center" height="5" nowrap="nowrap" valign="top" width="50%">  
            <div align="left"><img src="$stylevar[imgdir_button]/email_go.png" alt="$vbphrase[profile_email]" border="0" />  
              <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[profile_email]</phrase></a>  
            </div></td> 
          <td align="center" height="2" nowrap="nowrap" valign="middle" width="50%">  
            <div align="left"><if condition="$userinfo['showaim']"> $userinfo[aimicon]  
              <a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a>  
              </if></div></td> 
        </tr> 
        <tr class="alt2">  
          <td align="center" height="5" nowrap="nowrap" valign="top" width="50%">  
            <div align="left"><if condition="$show['addbuddylist']"> <img src="$stylevar[imgdir_button]/group_add.png" alt="$vbphrase[profile_addbuddy]" border="0" />  
              <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[profile_addbuddy]</phrase></a>  
              <else /><img src="$stylevar[imgdir_button]/group_delete.png" alt="$vbphrase[profile_deletebuddy]" border="0" />  
              <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[profile_deletebuddy]</phrase></a>  
              </if> </div></td> 
          <td align="center" height="5" nowrap="nowrap" valign="top" width="50%">  
            <div align="left"><if condition="$userinfo['showmsn']"> $userinfo[msnicon]  
              <a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a>  
              </if></div></td> 
        </tr> 
        <tr class="alt2">  
          <td align="center" height="5" nowrap="nowrap" valign="top" width="50%">  
            <div align="left"><if condition="$show['addignorelist']"> <img src="$stylevar[imgdir_button]/user_delete.png" alt="$vbphrase[profile_blockuser]" border="0" />  
              <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[profile_blockuser]</phrase></a>  
              <else /><img src="$stylevar[imgdir_button]/user_add.png" alt="$vbphrase[profile_unblockuser]" border="0" />  
              <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[profile_unblockuser]</phrase></a>  
              </if> </div></td> 
          <td align="center" height="2" nowrap="nowrap" valign="middle" width="50%">  
            <div align="left"><if condition="$userinfo['showyahoo']"> $userinfo[yahooicon]  
              <a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a>  
              </if></div></td> 
        </tr> 
        </if> 
      </table> 
      <p>  
      <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
        <tr class="tcat">  
          <td colspan="3" valign="middle">$userinfo[musername]'s Interests</td> 
        </tr> 
        <tr valign="top" class="alt2">  
          <td align="left" valign="top"><span class="">General:</span></td> 
          <td align="left" valign="top">$userinfo[field19]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"><span class="">Music:</span></td> 
          <td align="left" valign="top">$userinfo[field20]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"><span class="">Movies:</span></td> 
          <td align="left" valign="top">$userinfo[field21]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"><span class="">Television:</span></td> 
          <td align="left" valign="top">$userinfo[field22]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"><span class="">Heroes:</span></td> 
          <td align="left" valign="top">$userinfo[field23]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"><span class="">Groups:</span></td> 
          <if condition="$show['membergroups']">  
          <td></td> 
          <else />  
          <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td> 
          </if>  
      </table> 
      <p>  
      <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
        <tr class="tcat">  
          <td class="text" align="left" height="10" valign="center" colspan="2">  
            $userinfo[musername]'s Details</td> 
        </tr> 
        <tr valign="top" class="alt2">  
          <td align="left" valign="top"> <div align="left">Status:</div></td> 
          <td style="">$userinfo[field11]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"> <div align="left">Orientation:</div></td> 
          <td style="">$userinfo[field12]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"> <div align="left">Hometown:</div></td> 
          <td style="">$userinfo[field13]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"> <div align="left">Religion:</div></td> 
          <td id="ProfileReligion:" style="">$userinfo[field14]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"> <div align="left">Zodiac  
              Sign:</div></td> 
          <td style=""><if condition="$show['zodiacsign']">  
            <div>$zodiacsign</div> 
            </if></td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"> <div align="left">Smoke  
              / Drink:</div></td> 
          <td style="">$userinfo[field15] / $userinfo[field16]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"> <div align="left">Children:</div></td> 
          <td style="">$userinfo[field17]</td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"> <div align="left">Education:</div></td> 
          <td style="">$userinfo[field18]</td> 
        </tr> 
      </table></td> 
    <td valign="top" width="60%"> <if condition="$show[journalinfo]"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
        <tr class="tcat">  
          <td>$userinfo[musername]'s Latest Blog Entry</td> 
        </tr> 
        <tr class="alt2">  
          <td><if condition="$show[journalinfo]"> <if condition="$show[journal_lastentry]"><a href="journal.php?$session[sessionurl]do=showentry&e=$journal[lastentry_id]">$journal[lastentry]</a>  
            ($journal[lastentry_date])<br /> 
            <else />$vbphrase[private]</if> </if></td> 
        </tr> 
        <tr class="alt2">  
          <td><if condition="$show[journalinfo]"> [<a href="journal.php?$session[sessionurl]do=showjournal&j=$journal[journal_id]"><phrase 1="$userinfo[username]">$vbphrase[visit_xs_journal]</phrase></a>]  
            </if></td> 
        </tr> 
      </table> 
      <p></if>  
      <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
        <tr class="tcat">  
          <td>$userinfo[musername]'s Blurbs</td> 
        </tr> 
        <tr class="alt2">  
          <td valign="top"><strong>About Me:</strong><br />$userinfo[field9]</td> 
        </tr> 
        <tr>  
          <td class="alt2"><strong>Who I'd Like to Meet:</strong><br /> 
            $userinfo[field10]</td> 
        </tr> 
      </table> 
<if condition="$userinfo[field25]"> 
      <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
        <tr class="tcat">  
          <td class="text" wrap="" style="" align="left" height="10" valign="center" colspan="2">  
            <span class="">$userinfo[musername]'s Shared Media </span> </td> 
        </tr> 
        <tr class="alt2">  
          <td align="left" valign="top"> <div align="center"><EMBED SRC="$userinfo[field25]"></div></td>> 
        </tr> 
      </table> 
</if> 
       <p>$FRIENDSFOES</p> 
      <p>$comment_panel</p></td> 
  </tr></table></td> 
  <tr>  
    <td colspan="8" align="right" valign="bottom">   <if condition="$show['profileviews']"> 
          <if condition="$show['profileviewsother']"><a href="#" onClick="openWindow('misc.php?$session[sessionurl]do=profileviews&u=$userinfo[userid]', 300, 400); return false;">$vbphrase[profile_views]</a><else />$vbphrase[profile_views]</if>: $userinfo[profileviews] 
   </if></td> 
  </tr> 
</table> 
$footer 

</body> 
</html>
Reply With Quote
  #120  
Old 01-19-2006, 10:16 AM
jj's Avatar
jj jj is offline
 
Join Date: Sep 2005
Location: Viernheim, Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shadowdancer36
I can't get it to show up under my profile. I put the friendfoe variable there but its not showing up. I can bring it up in the browser no problem, but withing my profile, no. Any ideas to why?
https://vborg.vbsupport.ru/showpost....&postcount=112
Reply With Quote
  #121  
Old 01-19-2006, 01:05 PM
bogene2020 bogene2020 is offline
 
Join Date: Apr 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to link to friends.php. I have it installed but how can I make it possible for a member to link to such that they can see there friends . I want to but it in my Navbar . Thanks
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 05:01 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.10248 seconds
  • Memory Usage 2,342KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (1)bbcode_php
  • (4)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
  • (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