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 |
#62
|
|||
|
|||
Is it possible to display the profile pictures instead of the avatar's in the buddy list?
|
#63
|
||||
|
||||
yeah, you should be able to do it by replacing all instances of $userinfo[avatarurl] with $userinfo[profilepicurl] within the XML file.
|
#64
|
|||
|
|||
Quote:
How can I get the friends.php to show User Avatar instead of Profile Image? (not buddies, but the User) |
#65
|
|||
|
|||
Quote:
|
#66
|
|||
|
|||
Quote:
|
#67
|
||||
|
||||
iizeusii,
i think it has to do with the following l conditional in the code: Code:
if (empty($userinfo[profilepicdateline])) { $HTML .= "<img width=\"64\" height=\"64\" src=\"$userinfo[avatarurl]\"><br>"; } else { $HTML .= "<img src=\"".$vbulletin->options['bburl']."/image.php?u=$userinfo[userid]&type=profile&dateline=$userinfo[profilepicdateline]\"><br>"; } Code:
// if (empty($userinfo[profilepicdateline])) { $HTML .= "<img width=\"64\" height=\"64\" src=\"$userinfo[avatarurl]\"><br>"; // } // else { // $HTML .= "<img src=\"".$vbulletin->options['bburl']."/image.php?u=$userinfo[userid]&type=profile&dateline=$userinfo[profilepicdateline]\"><br>"; // } |
#68
|
||||
|
||||
wwturbo,
Quote:
|
#69
|
|||
|
|||
I asked for the buddy list to display the Profile picture. When I installed vbfriends by default it shows the avatar. I replaced avatarurl with profilepicurl and that didn't work at all.
|
#70
|
||||
|
||||
I'm getting this error, using the original friends.xml file
Quote:
http://russbo.org/vb/member.php?u=1&styleid=41 Any ideas? Thanks! rich |
#71
|
||||
|
||||
Here we go with a little enhancement. I added a setup part into the code, so you don't need to search the text in the hard coded html. I also removed the foe part because I don't think someone wants to show these in his profile. You can choose if you want to use avatares or profilepics for the friends part (see attached images). The plugin still only shows friends. If you want to have the buddies only you have to edit it again to your needs.
Maybe I should start a new thread for this in the vB 3.5 plugin forum if I get permission from you, Cloud-Warrior, since it's basically your code a bit optimized Heres the setup part of it Code:
// Setup /////////////////////////////////////////////////////////// $FFsetup = Array( // these are the texts which are displayed 'friends' => "Freunde", 'has_these_users_on_his_list' => "Buddy-Liste", 'is_on_these_buddy_lists' => $userinfo['username']." ist auf den Buddy-Listen von", // set these to TRUE or FALSE // if you set fetch_avatar true you will get avatar picture, else you get profile picture if present 'show_counts' => false, 'fetch_avatar' => true ); // End of setup /////////////////////////////////////////////////////////// I hope it works for you, as it works for me. I'm using 3.5.3 EDIT: For those who haven't used it before I need to mention it again: Place Code:
$FRIENDSFOES Current XML file -> post #85 cheers Jens |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|