Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?)
Comment | File | Size | Author |
---|---|---|---|
#3 | 766886-3.patch | 6.13 KB | rjbrown99 |
Comments
Comment #1
aaron CreditAttribution: aaron commentedbump
Comment #2
rjbrown99 CreditAttribution: rjbrown99 commentedI'll pile on and also request integration with the content profile for CCK imagefield pictures.
Comment #3
rjbrown99 CreditAttribution: rjbrown99 commentedI 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.
Comment #4
rjbrown99 CreditAttribution: rjbrown99 commentedComment #5
nehasapra1 CreditAttribution: nehasapra1 commentedI want to select a profile user pictures from my image gallery.Please suggest me how can i do this?
Comment #6
IckZ CreditAttribution: IckZ commentednehasapra1: 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. ;)