Welcome, Guest. Please login or register.
Did you miss your activation email?
February 10, 2012, 06:40:15 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149517 Posts in 21086 Topics by 7530 Members
Latest Member: dwaynebryant
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: new trivial module: random pic with text  (Read 3325 times)
mopey

Offline Offline

Posts: 11


« on: November 29, 2007, 10:41:07 PM »

This module includes a function you can call to randomly pick an image from a directory.  For an example see http://webstersprodigy.net/pages/randompicture.php.  It is based on a module written by John Maats, and I just added the captioning.  Pretty trivial...

The module description: This snippet shows a random image from directory - RandomImage(directoryname to show images from) also optionally includes captions in the directory - example.jpg will automatically display example.txt if it exists.

Logged
Girasol

Offline Offline

Posts: 64


« Reply #1 on: November 30, 2007, 09:45:54 AM »

Hello,

it looks like, this snippet is exactly what I am serching for. Just one question, is it possible to define the text as a link?

I want to introduce new produkts and I think it would help if the page visitor gets to see a link to get more informations.

Thanks for your help, Greeetings Eike
Logged
mopey

Offline Offline

Posts: 11


« Reply #2 on: November 30, 2007, 04:07:00 PM »

Yeah.  In fact, it doesn't do any scrubbing at all - it just posts the html in the txt file above the image posted.  You can just put your <a href="whatever">link</a> in the text file and it should be fine.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!