Since i can't post it in the library, here goes: I've attached the file.
Based on ralphs newslisting-snippet. Basicaly it separates found images inside the content, and returns a random image found as a tumbnail, aside the stripped content.
IMPORTANT:
- It doesn't generate tumbnails, it just rescales a random image
- Yes, it does use tables, for some an issue... css simply fails on some browsers (images over tekst etc...)
in the config. above in the snippet, you can specify the tumbnail-size, image format (jpg, gif... but best to leave this on jpg) and scale-direction (depending on usage one might need an equal vertical or horizontal allignement).
I made the layout as flat as possible, i strongly advise to replace <hr>'s by bg's and make it look a bit nicer(hardcoded or via your stylesheet). Nest this complete table inside the middle cell of a 3 col/row table and give it fancy borders....
Previeuw url My Webpage
(hit the refresh and you 'll see the random-part)
Below each blog, there is a row with info regarding the image used, total images found... you can turn this off (as done in the example) in the config of the snippet once you are satisfied, but at least while testing it you can see if sth. is actual going on or not
Thanx to mikef for helping me out with regular expression stuff.
Hope you like it
Koen
Attached Files
Edited by koeniman, 11 June 2006 - 09:03 AM.













