drupalfun.com
avatar in comments, avatar in posts
I am sad to lose the drupal core functionality that allows the standard drupal "User Picture" to be added to posts and comments. There must be a way to do this using the content type "avatar" but i don't know enough to work this out.
Has anybody attempted this?
can point in some direction or tell me how?
thanks y'all
Sabzi
Related Questions
Responses
2. I'd really like to know too.
I searched Drupal.org and found a few threads, such as this one: user_picture.tpl? It seems to be what I'm looking for. Unfortunately, I'm no PHP programmer and can't get it to work.
I'm sure I probably didn't change some variable to the right thing or otherwise mucked it up. Anyway, I'd love it if you could show us how to do something similar, but with code that applies to the example site in the book.
3. I have no idea why...
...but this worked perfectly for me the second time around. I did try a fresh install, but the only other thing I changed was that I used the content_profile dev version instead. Though it looks like the original beta version worked fine for the person who posted the thread on Drupal.org, so more than likely there was something I messed up or just plain missed.
Yay for custom avatars in comments and forums!
Anyway, I did a very wordy write-up on the code snippet to add some explaination for php newbs like me. It's here if anybody would like to read it.
4. Explanations and code
Could you please give me some details.
I am using profile page from the book (second edition) and also installed Advanced Forum.
I need book profile avatar to be included in forum posts and comments.
I am not programmer.
Thank you in advance.
5. There is also another approach
As always with Drupal, there also is another approach.
You could use the core-avatar functionality AND benefit from imagecache with this module: imagecache_profiles.
6. imagecache_profiles is great !
@albert : I've followed your idea and it's work great.
I've just added a patch for a better integration in views !
fabulous way, avatars have different resizes AND appear in comments and nodes !
thanks you !
7. Neato!
The inability to use Imagecache_profiles in connection with user pictures and Views was a big sticking point for me before, but no longer!
That sounds like it gets around the whole problem. I had fun tackling the coded solution for the imagefield avatar, but if you don't need imagefield why make things more complicated than they need to be? :-)
Edit: I had some questions posted here because I had trouble with patching the module files, but never mind! I got it. :-) Works great, by the way!


1. Hi, I'm going to look into
Hi,
I'm going to look into this. Basically, we should just make some changes in the theme. So that instead of the user picture, the avatar is displayed.