Welcome, Guest. Please login or register.
August 20, 2008, 05:10:44 PM

Login with username, password and session length
Search:     Advanced search
Website Baker 2.7.0 (stable) veröffentlicht!
Nähere Informationen findet ihr hier.
Das Diskussionsboard findet ihr hier.
60556 Posts in 9791 Topics by 5824 Members
Latest Member: blubb
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Modules
| | |-+  new trivial module: random pic with text
Pages: [1] Go Down Print
Author Topic: new trivial module: random pic with text  (Read 1259 times)
mopey
Pending Apprentice Baker
**
Offline Offline

Posts: 11


Email
« 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
Apprentice Baker
***
Offline Offline

Posts: 50


« 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
Pending Apprentice Baker
**
Offline Offline

Posts: 11


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