Help - Search - Members - Calendar
Full Version: Unique "signature" for different authors?
Movable Type Community Forum > Additional Resources > Tips and Tricks
EricJ
Hi.

I'm looking for a way to include a small graphic with each post. My blog has several authors and I want to have their photo display alongside their posts. I'm not sure how to do this if it's even possible.

Thanks for your help.

- Eric J.
austen21
hmm not sure but contact The Blog Body Shop

She's good at working with blogs + her prices are very reasonable. smile.gif
EricJ
Thanks. I appreciate the tip however, I can't spend any money. If there isn't a way to do this for free then I'm not interested.
imabug
do you have PHP installed? something like this is trivially done with PHP.

a line resembling
CODE
<?php
echo "<img src='<$MTEntryAuthor$>.gif'>
?>

wherever you want to display the image. I'm not positive it will work unmodified, since I haven't tried it. But something close to it ought to work.
charle97
you don't really need php for this. you should use the dirified form in case you have author names with a space in it.

CODE
<img src="<$MTEntryAuthor dirify="1"$>.gif">


so if you have an author called "Arthur Author" mt will output the following:

CODE
<img src="arthur_author.gif">


make sure you use the dirified form of the author name when naming your images.
EricJ
Thanks so much. This works super. Alas, we don't have PHP so the regular img tag works splendidly. I don't know why I didn't think of it.

Thanks charle97 and imabug.
existentialmoo
oh wow, thanks for the tip. I've been thinking about how to do this for a few days:) It works like a charm.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.