I need to ensure that's happening properly, and to handle when the user system doesn't allow user pics (maybe make it configurable whether to display user pics or not?)

CommentFileSizeAuthor
#3 766886-3.patch6.13 KBrjbrown99
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aaron’s picture

bump

rjbrown99’s picture

I'll pile on and also request integration with the content profile for CCK imagefield pictures.

rjbrown99’s picture

FileSize
6.13 KB

I rolled a patch for this. Here's what it does.

- Adds a new variable to the DXMPP setup form. Users select core profile, no profile, or any imagefield defined under a content profile content type. We look up each content profile type, and then pull in all of the imagefields as options.

- Creates a new unified function for returning the picture. I did this because the logic needs to be called in two places, in the core module and in the theme.inc.

- Modified the roster function to use this new picture function.

- Modified the theme function to use the new picture function.

I tested this with a dev copy but I have yet to manually apply and test this .patch since I rolled it specifically for this issue. Please give it a go.

Here's what it doesn't do:
- It may not properly handle the 'no profile' case yet. The logic is there, but further refactoring may be needed.
- Drupal caching should be introduced for the photo URL so the profile nodes don't have to be constantly loaded to find the picture URL.

rjbrown99’s picture

Title: Default user pics » User Pictures: Fix default image, integrate with Content Profile
Status: Active » Needs review
nehasapra1’s picture

Title: User Pictures: Fix default image, integrate with Content Profile » Image Gallery

I want to select a profile user pictures from my image gallery.Please suggest me how can i do this?

IckZ’s picture

nehasapra1: Maybe you should implement this feature to your profile page. Like content profile or core profile. Than use this patch (but i've never tried) to set up an imagefield to your dxmpp module which is used for the content profile. ;)