Instead of doing our own, error-prone and limited username/user picture handling in guestbook entries, we should implement User Display API, which allows to output users in a highly-configurable way throughout Drupal.
Code is in shape, patch follows soon.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | guestbook-DRUPAL-5--2.user_display.patch | 4.51 KB | sun |
Comments
Comment #1
sun#245306: How to make username (uid) active in guestbook? has been marked as duplicate and contained an edge-case feature request to link a user to her guestbook page instead of her profile. Might be worth adding as configuration option to User Display API.
Comment #2
sunAttached replaced the previous and limited theme_guestbook_user_picture implementation with an integration of User Display API.
Comment #3
sunComment #4
Thoor commentedThanks for the quick answer under: http://drupal.org/comment/reply/296186/967287
I´ve seen the problem in Version 5.x But I am using Version 6.4 and your guestbook version guestbook.module,v 1.3.2.5 2008/08/13
Is the patch above working to override the theme_guestbook_user_picture() function in Drupal 6 too?
Comment #5
sunNo, for D6 you can only override guestbook's user picture theme function in your theme, because User Display API is not yet ported to D6.
Comment #6
Thoor commentedDo you mean styling the picture with css in the theme, or is there an other chance? Because I don´t find a guestbook's user picture theme function in my theme. I am using the Garland Theme so far ...
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.