The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
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
Developer Last Online: Apr 2010
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:
Code:
<a class="smallfont" href="friends.php?$session[sessionurl]u=$post[userid]">Friends</a> Supporters / CoAuthors Show Your Support
|
Comments |
#112
|
|||
|
|||
Has this been optimised? Does this still add one query for each friend on each page load?
|
#113
|
||||
|
||||
Quote:
|
#114
|
||||
|
||||
Quote:
|
#115
|
|||
|
|||
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 |
#116
|
||||
|
||||
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. |
#117
|
||||
|
||||
<font color="SeaGreen">* christianb subscribes to this thread</font>
|
#118
|
||||
|
||||
Quote:
Change this: Code:
(($inoutcounter % 5 Code:
(($inoutcounter % 4 |
#119
|
|||
|
|||
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&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&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&userlist=buddy&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&userlist=buddy&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&userlist=ignore&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&userlist=ignore&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> |
#120
|
||||
|
||||
Quote:
|
#121
|
|||
|
|||
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
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|