Forum:Random images from category

Hi,

I would like to create a kinda-of "Featured Images" where i display random images on per-page-view to visitors from a category of my choice...

Does anyone know how to display random images from a manually selected category?

I'm almost certain it will involve JavaScript, but the hard part is extracting the list of file-names from the category, usable in JavaScript...

If anyone has any idea or knows of a  ready-made script , then please post to my talk-page on the wiki im spending my time atm. eg: w:c:unchartedwaters:User_talk:©TriMoon™

Thanks a lot guys! &lArr;&uArr; ©TriMoon™ Talk @ 19:09, November 13, 2010 (UTC)


 * I looks like this wiki had something using DPL that did what you want at w:c:shaiya:Random_Screenshot, but it appears to be broken now.
 * If you don't have to have it come from a category, using the  and   tags supported by the Extension:RandomSelection (which should be installed on all Wikia wikis) works well. --  Fandyllic  (talk &middot; contr) 7:49 PM PST 13 Nov 2010

&lArr;&uArr; ©TriMoon™ Talk @ 09:27, November 15, 2010 (UTC)
 * Yea i think it stopped working when wikia removed DPL...
 * Your suggestion sounds nice and made me look into mw:Extension:RandomInCategory, but somehow that does not return the image URL i need in an automated fasion...ugh


 * Yeah, I tried the RandomInCategory thing before I posted my reply, but it didn't work, so I didn't mention it. You could try asking for DPL turned on via Special:Contact for your wiki and trying the DPL code above. Or just ask for help via Special:Contact. -- Fandyllic  (talk &middot; contr) 9:34 AM PST 15 Nov 2010


 * w:c:shaiya:Random_Screenshot seems to be working now, so if that's what you wanted you can copy the dpl code from there. Sovq 17:27, November 15, 2010 (UTC)

&lArr;&uArr; ©TriMoon™ Talk @ 09:53, November 16, 2010 (UTC)
 * Thanks i'll keep this in mind as it does exactly what i wanted ^^


 * I finished my version wich depends  only  on Extension:DynamicPageList2. Anyone who needs this functionality can visit Template:RandomImage. Thanks for the inspiration guys &lArr;&uArr;©TriMoon™  Talk  @ 17:35, November 21, 2010 (UTC)