![]() |
|
Random Photo Plug-In - 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 Photo Plug-In (/thread-238.html) Pages:
1
2
|
Random Photo Plug-In - thatlittleguy - 19-01-2006 Any chance anybody could whip up a random photo style plug-in (and by plug-in I mean line of php code). Better yet would be the option to choose "random photo" or "random photo from specific album". And it might not make sense to simply pull a random photo. Instead it might be more useful to display the thumbnail for a random photo and then link directly to that photo within it's own album. Thank you very much. Random Photo Plug-In - luv - 02-06-2008 Hello, I'm looking for ways on how to display random image per album. Is there a way to achieve this? There's no option for this in the program. There are about 200 photos in one album and viewers dont really go through all images on the albums so it's the same pictures are getting viewed. At least randow view based on file names. Thank you. Random Photo Plug-In - acrylian - 02-06-2008 There is: Random Photo Plug-In - fatman - 03-06-2008 I have made a php file for display random images for external site(I show some random image on wordpress blog sidebar), if anybody interested, I could post the code here. Random Photo Plug-In - acrylian - 03-06-2008 Of course, right on, we will add it then to your wordpress extensions page then. Random Photo Plug-In - fatman - 03-06-2008 Added at ticket 555 Random Photo Plug-In - acrylian - 03-06-2008 Thanks. Random Photo Plug-In - luv - 04-06-2008 really nice! thanks. Random Photo Plug-In - acrylian - 04-06-2008 It has been added to our extensions page http://www.zenphoto.org/2008/01/hacks/#random-image-external-site Random Photo Plug-In - luv - 10-06-2008 The extension made by fatman is different from http://www.zenphoto.org/documentation-official/zenphoto/_template-functions.php.html#functiongetRandomImages right? How to set getRandomImages? Is this the line where I should set? [code]$imageWhere = " AND " . prefix('images') . ". Thanks. Random Photo Plug-In - luv - 10-06-2008 fatman, Thank you for this piece of code. I have few questions because I cant seem to make it work. 1.) I placed random.php under zp-core and tested on the browser using http://mylocalgallery.com/zenphoto/zp-core/random.php? There are boxes of thumbnails but the pictures are not showing. It displayed the filename of the image. I got this "Zenphoto Error: the requested object was not found." error when I clicked on the thumbnail.
Random Photo Plug-In - acrylian - 10-06-2008 luv, fatman's extension is meant to be used on a external site/pages that are not administrated by zenphoto (like a wordpress blog for example) while the function randomimages() is for zenphoto pages only. Random Photo Plug-In - luv - 11-06-2008 Hi acrylian, So how to set getRandomImages? I only have one album with 200 images. Thank you. Random Photo Plug-In - acrylian - 11-06-2008 Please follow the links to our documentation I posted above. And maybe read this before: http://www.zenphoto.org/2008/04/how-to-read-the-zenphoto-functions-guide/ Random Photo Plug-In - vidisad - 28-06-2008 I would like to have fatman's random image display on external site but php is not my strength. Here is the code for a gif image (images/slikom.gif) which serves as the link to my zenphoto gallery. When you click the gif it opens page with gallery. I would like to have instead of that gif image random image by fatman that does the same job, takes you to the gallery. This is code i have now to do the above described job:
Where should I put fatman's code for the external php site? num=15&height=120&width=120&class=one-image&album=damjanci-ponaosob')` Random Photo Plug-In - fatman - 28-06-2008 you may try ` ` Random Photo Plug-In - vidisad - 28-06-2008 @fatman Random Photo Plug-In - girlsspot - 30-06-2008 I had succeed according fatman's method. please go mysite http://girlsspot.info and see the effection on the right bar. You may set up a table or frame. Random Photo Plug-In - vidisad - 01-07-2008 Very nice web site and of course girls. The fatman's code works for me too but I was just asking what should I change to have the random image (on the external site) being linked to the main zenphoto site instead of to the full size random photo in the target album. Random Photo Plug-In - acrylian - 01-07-2008 You have to change the url in the random.php file. Look at this line: |