By rjr on
Hi all
Where or how to add an user's thumbnail instead of his name next to his posts?
Or better yet an onrollover action over an user's name and you see a profile summary with image???
regards
Hi all
Where or how to add an user's thumbnail instead of his name next to his posts?
Or better yet an onrollover action over an user's name and you see a profile summary with image???
regards
Comments
For adding user's thumbnail
For adding user's thumbnail instead of his name, you may have to go create a new template for your content type, Take the default $submitted info off (or manipulate it to your liking) and add the $picture variable where you need it.
The onrollover is going to be tough.. Maybe you'll need to try the Hovertip Module.
( On a lazier and haphazard note, perhaps even the snap.module :)) )
- Pavan Keshavamurthy.
- Pavan Keshavamurthy
http://grahana.net/
hi p6, Should have told you
hi p6,
Should have told you i am a drupal newbie. I am just reading up on the drupal structure and such.
Creating a new template for my content type =
1. create an my_posts.tpl.php
2. overwrite the existing one thru template.php
?????
Where can i find $submitted info??
regards
Some good starting points
Hi, rjr --
I think you'll find the Theme Developer's guide a solid starting point, especially the section on the PHPTemplate theming engine.
You'll want to read the page on customizing the node.tpl.php file and the page on theming particular content types -- the file you'll want to deal with (probably create), assuming the user posts are of the blog content type, is node-blog.tpl.php. The variables you'll want to manipulate are $name (the formatted name of the post's author) and $picture (the HTML for the author's picture).
I hope that's helpful!