Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2004-06-06 09:44:31

bleveck
Member
Registered: 2004-05-30
Posts: 52
Website

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

yep… got it working great. Thanks Erwin.

Offline

#14 2004-06-07 11:04:22

erwin
New Member
Registered: 2004-05-19
Posts: 7
Website

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

no problem, sharing good stuff is always .. ehm .. good! :D

Offline

#15 2004-08-26 10:04:53

starzabove
Member
Registered: 2004-04-13
Posts: 76

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

Does anyone know if there is a way to adapt this so that it shows several images in the random folder at a once? Like, say 3 at a time ?

Thanks!


90+ Textpattern installs and still going…

Offline

#16 2004-08-26 17:38:19

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

call the plugin 3 times?
or put it in a form and call the form three times.


Listen to Kenneth

Offline

#17 2004-08-27 02:18:16

starzabove
Member
Registered: 2004-04-13
Posts: 76

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

That sometimes calls the same image, though, so there are doubles, could potentially be triples I suppose.

Thanks for the suggestion.


90+ Textpattern installs and still going…

Offline

#18 2004-08-28 23:49:49

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

Hi,
love the plugin but it gives me a validation error:

required attribute “alt” not specified

What can I do about that?

Offline

#19 2004-08-29 00:29:59

Hans
Member
From: Everywhere
Registered: 2004-03-07
Posts: 99
Website

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

Hmm. Not much, since the plugin can’t magically know the alt text for every image in a directory. So, either leave the alt text as “picture” or something similar, or just leave it out, as Dean has done with the plugin.

But, wait! There’s a solution! Dan Benjamin recently published an article on ALA which is able to output the alt text for every image (everything has to be specified beforehand). However, it won’t grab anything from a directory— you have to make a list of images, with location, filename, alt text, etc. in an ini file.
<br />
<br />
Edit: Yes, leaving out the alt is invalid, but leaving it in and having the same alt for every photo is also accessibilty suicide. Ah, well…

Last edited by SirHans004 (2004-08-29 18:05:16)


Lumilux – A Photoblog

Offline

#20 2004-08-29 10:56:07

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

> SirHans004 wrote:
> Hmm. Not much, since the plugin can’t magically know the alt text for every image in a directory. So, either leave the alt text as “picture” or something similar, or just leave it out, as Dean has done with the plugin.

Leaving it out means getting a validation error. When I look at the source, ‘width’ and ‘height’ are specified, so I gather it must be possible to add alt=”“. I just don’t know where to do that, looking at the plugin makes me think this function is somewhere hardcoded and I don’t know enough about php to find it.

The ALA article looks to me a too drastic remedy for my small problem.
So if someone can tell me how to add the alt=”“ I’ll be very happy.

EDIT: Never mind, I found where to add it. It was rather stupid to overlook that. Thanks anyway!

Last edited by doggiez (2004-08-29 11:20:56)

Offline

#21 2007-02-10 17:05:10

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

Wanted to put up a random image on a couple of my sites and came across this plugin. Due to it’s age, I wondered if it would work on Textpattern 4.0.4, but it worked fine.

I created a subdirectory off the images folder and threw some thumbnailed images in there, adjusted the plugin to look into this new directory and also added a class=”“ to it’s img tag output.

Now I have a random image in my sidebar that links to my gallery, thanks Dean :)

Offline

#22 2007-05-08 19:15:55

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: [plugin] [ORPHAN] dca_random_image: Random Image from a Directory

I’ve tested three or four random image plugins, this is the first one that really works, though the zipped file seems to be more than three years old.
Thanks Dean for writing this one! And thanks Mary for mentioning it in another randimg thread.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB