Recent Post Image in my Signature
Outside of my work colleagues I find that most of my viewers are led to my blog by my text links that I add to the posting signatures in the various BB forums that I'm a member of. So in view of this I thought it would be kinda cool to use an image instead of a simple line of text. I also thought that it would be good to have this signature picture automatically update with the title or date of my most recent post.
So I played around with Graphic Converter on my Mac and managed to come up with this simple image. Underneather the "Latest Post" text is a space to add the date of my last post. I was intending to give the name of the post - but to be honest, at the moment I'm too lazy to include into my little script a long title handler... and so at least by using the date I'll always know it will fit into the space provided!
So how do I code it? Well for those that are interested this is a simple piece of php scripting - using the built-in imagejpg functions that come with all versions of PHP. Essentially I give the script a default image - and it then merges the date text onto it. Simple!
At the moment though I'm cheating a little... I was going to add the script to a website that I own and then integrate it into my blog template by disguising it as a small/invisible image. The problem I have is I can't find a way to have it ONLY in the latest post. So at the moment I make a point of running the script just after I've posted.
If there's anyone with knowledge of the blogger.com template system and who thinks they could help me with this then I'd appreciate it!
So I played around with Graphic Converter on my Mac and managed to come up with this simple image. Underneather the "Latest Post" text is a space to add the date of my last post. I was intending to give the name of the post - but to be honest, at the moment I'm too lazy to include into my little script a long title handler... and so at least by using the date I'll always know it will fit into the space provided!
So how do I code it? Well for those that are interested this is a simple piece of php scripting - using the built-in imagejpg functions that come with all versions of PHP. Essentially I give the script a default image - and it then merges the date text onto it. Simple!
At the moment though I'm cheating a little... I was going to add the script to a website that I own and then integrate it into my blog template by disguising it as a small/invisible image. The problem I have is I can't find a way to have it ONLY in the latest post. So at the moment I make a point of running the script just after I've posted.
If there's anyone with knowledge of the blogger.com template system and who thinks they could help me with this then I'd appreciate it!
0 Comments:
Post a Comment
<< Home