Author Image in Post Title

Creating and modifying plugins.
Post Reply
NosferatusCoffin
Posts: 2
Joined: Thu Apr 03, 2008 2:29 am

Author Image in Post Title

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Author Image in Post Title

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
NosferatusCoffin
Posts: 2
Joined: Thu Apr 03, 2008 2:29 am

Post 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!
Post Reply