$picture in Garland theme
www.richardspro... - March 18, 2008 - 19:32
I'm creating my own theme and I've used garland as my starting point.
In node.tpl.php there is a variable called $picture. Where does it get this from? I'd like my nodes to include pictures, but I'm a bit confused about how this all joins up.
Thanks for your help.
Richard.

...
That's the user's avatar. You need to have user pictures in posts/comments enabled in your theme as well as enabling picture support in user settings for that to have a value.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
Thanks
Hi Michelle,
Thanks for that. User avatar pictures didn't even cross my mind as a possibility.
Richard Garside
www.richardsprojects.co.uk