![]() |
|
Random image URL - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Random image URL (/thread-4258.html) |
Random image URL - developing - 15-12-2008 Im trying to have a random image show up on my homepage, but i want it to link to the actual image page it is contained on but it keeps reloading the page here is the code:
Random image URL - sbillard - 15-12-2008 What is the while loop for? As coded it only loops once, so seems somewhat redundant. Also, your code must not be complete--as shown above there are some dangling constructs. To show code on this forum you should enclose it in 'peck' marks. (On a US PC keyboard that is the character below the tilda on the left end of the numeric key row.) Anyway, somewhere there would need to be the href link to the image page. Random image URL - developing - 16-12-2008 Im still getting to grips with php, i removed the loop now, but it still goes to the same album everytime, how do i set it, so that when i click on the random image it takes me to the (random generated image) page
Random image URL - timo - 16-12-2008 Alright, I was doing something similar today, and here's what I came up with: ` Random image URL - acrylian - 16-12-2008 You also could have just looked at the existing Random image URL - developing - 16-12-2008 yeah great that works fine now! appreciate |