Welcome, Guest. Please login or register.
March 18, 2010, 06:29:45 AM

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.
110327 Posts in 15933 Topics by 9291 Members
Latest Member: topwzp
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Archive (posts up to 2007) (Moderators: Argos, BerndJM)
| | |-+  new trivial module: random pic with text
Pages: [1] Go Down Print
Author Topic: new trivial module: random pic with text  (Read 3079 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: 61


« 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.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!