Need to show buddy's picture

jazzdrive3 - February 24, 2009 - 18:28
Project:Buddylist2
Version:5.x-1.0-beta2
Component:Buddy API
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

There is currently no way to show a user's picture in the buddylist. If you add the column "Usernode: Picture" or "User: Author's Picture", it just puts your own picture there every single entry, not each individual's pic.

So what the solution to this?

#1

jazzdrive3 - February 24, 2009 - 18:35

So really the underlying problem is that the Usernode fields are not pointing to the right node. Tried it with Usernode: Email as well, and again it pointed to my own user's email instead of the buddy's. It's pointing to currently logged in user usernode.

This definitely needs to be fixed for Buddylist2 to realize it's full potential.

#2

Makawak - April 8, 2009 - 16:58

I've managed to get this to work!!!!

I have two cck computed fields which gets computes an img tag for the users picture, and another which computes there username into there real name (LDAP setup)

When I first started I thought I had failed as all I was getting nothing but my picture and my name. So I then went into the view and started looking at the arguments. I found one called:

Buddylist2: Nodes author is buddy of UID
This will filter nodes of all users, which are buddies of the given uid.

So instead of changing that view I made a new one. Added my two computed fields, and added that argument with NO additional argument handling code. Saved the view went to my advanced profile setup, added and configured the block for the new view. Saved and it was now showing the information of my buddies instead of me.

 
 

Drupal is a registered trademark of Dries Buytaert.