Page 1 of 1

Author Image in Post Title

Posted: Thu Apr 03, 2008 2:40 am
by NosferatusCoffin
Hello,

Is there a way to display the author's image in the post title block? I see that the plugin picks up the user profile information (including image) within the $entry.body variable and I am not sure where to look within the plugin hooks to change the order in which it is displayed.

Can the plugin code be modified so that it hooks into the serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} class in entries.tpl, which comes before the $entry.body DIV block?

Thanks.

Re: Author Image in Post Title

Posted: Thu Apr 03, 2008 9:49 am
by garvinhicking
Hi!

I assume you'Re talking about the serendipity_event_userprofiles plugin, right? It was only meant to add a CSS class into the body, but now I've modified this to also create a smarty variable {$entry.authorpic} that you can now freely place in your template file.

The update should be available in spartacus in < 48 hours (or you fetch it via CVS).

Regards,
Garvin

Posted: Thu Apr 03, 2008 4:50 pm
by NosferatusCoffin
Hi Garvin,

Yes, I am talking about the User Profile plugin. Essentially I just want the author's image to appear next to author's name/date at the top of the article, like it does, for example at TownHall.com

http://www.townhall.com/columnists/Robe ... ors_demand

As of now, the image only appears under the author's name/date block.

Thanks for the quick response and I will check the update in the CVS.

Much appreciated!