Version: 1.00, by Cloud-Warrior
Developer Last Online: Apr 2010
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.
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.
If you mean linking to the Friends page, it just involves some editing of your templates. One way to make it more visible is to edit your postbit template, and just add in something like:
If you mean linking to the Friends page, it just involves some editing of your templates. One way to make it more visible is to edit your postbit template, and just add in something like:
whereever you want it. I put it after the reputation images on my forum, it's a matter of personal taste I guess.
thx for you help, but i don't mean linking to it
i want to show the friends page under the contact information in the normal user profile
is there any way to include friends.php?u=&userid for example?
It didn't like table prefixes so I had to make the following changes.
Find:
PHP Code:
// (Dis)Likes
$outuserids = array();
$outuserids = explode(' ', trim($userinfo[$whichlist]));
if (trim($userinfo[$whichlist]) != "") {
$outusers = $DB_site->query("SELECT user.username,user.userid,usertextfield.".$whichlist." FROM
".TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
user.userid = usertextfield.userid AND
user.userid IN (".implode(',',$outuserids).")
Replace:
PHP Code:
// (Dis)Likes
$outuserids = array();
$outuserids = explode(' ', trim($userinfo[$whichlist]));
if (trim($userinfo[$whichlist]) != "") {
$outusers = $DB_site->query("SELECT ".TABLE_PREFIX."user.username,".TABLE_PREFIX."user.userid,".TABLE_PREFIX."usertextfield.".$whichlist." FROM
".TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
".TABLE_PREFIX."user.userid = ".TABLE_PREFIX."usertextfield.userid AND
".TABLE_PREFIX."user.userid IN (".implode(',',$outuserids).")
Find:
PHP Code:
// (Dis)Liked By
$counter = 0;
$inusersquery = "SELECT user.username,user.userid,usertextfield.".$whichlist." FROM
".TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
user.userid = usertextfield.userid AND
FIND_IN_SET('".$userinfo[userid]."', REPLACE(usertextfield.".$whichlist.", ' ', ',')) > 0
ORDER BY user.username";
Replace:
PHP Code:
// (Dis)Liked By
$counter = 0;
$inusersquery = "SELECT ".TABLE_PREFIX."user.username,".TABLE_PREFIX."user.userid,".TABLE_PREFIX."usertextfield.".$whichlist." FROM
".TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
".TABLE_PREFIX."user.userid = ".TABLE_PREFIX."usertextfield.userid AND
FIND_IN_SET('".$userinfo[userid]."', REPLACE(".TABLE_PREFIX."usertextfield.".$whichlist.", ' ', ',')) > 0
ORDER BY ".TABLE_PREFIX."user.username";