Tuen's Blog

Infrequent diary of a procrastinator

Random Image plugin

Written By: Tuen - Aug• 12•07

I installed a random image plugin today, and the blog page now shows a random photo from one of my photo collections.  It’s pretty cool, but I’m trying to get the photo centred on the sidebar.  It’s a little to the left at the moment.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Comments

  1. Tuen says:

    Yep, managed to get the photo centred and added words to explain it’s a random photo. Next up; to get the photo clickable.

  2. Tuen says:

    Hooray, managed to make the photo clickable, but not able to get it to link to the random photo. Would probably need to study the underlying php random generator function before I can figure that out. May take days or weeks! :(

  3. Tuen says:

    Yes! I mucked around with the php function code, did some research, and managed to link the random thumbnail with the full sized photo. Clicking on the thumnail will bring out the full photo now. I feel good…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>