Page 1 of 1

I was trying to get

Posted: 02 Jun 2008, 00:37
by Jaga
I was trying to get Phoca Gallery Plugin to display more than one random image from a category, but using "imagerandom=1" seems to return and display just one image. Is there a quick change to the mySQL query that could be done to have it return up to "limitcount=3" (or whatever you put in limitcount)?

I already know where the SQL query is in the phocagallery.php file (around line 502), I just don't know how to modify it to return multiple random images.

Thanks in advance.

Update to my origina

Posted: 02 Jun 2008, 01:19
by Jaga
Update to my original post:

I managed to sort out the changes to the .php file and the queries myself. It has been a while since I last worked with it, but the resulting code seems to work quite well now, and responds to the limitcount parameter.

Now I'll have to see about dimming the images until they are mousedover, so that they don't dominate the top portion of the page.

Re: Multiple Random Images?

Posted: 12 Jun 2008, 21:49
by crashoverride
Hello,

i was also trying to display more than one random image. Would you be so kind to let me know how you solved this problem.

Re: Multiple Random Images?

Posted: 31 Jul 2008, 10:10
by Thorned Rose
Jaga (or anyone else who knows for that matter), could you please post how you did this, as I would also like to know how you did it. I am (unfortunately) somewhat noobish with php and can't work out how to do it myself

Re: Multiple Random Images?

Posted: 31 Jul 2008, 12:13
by Jan
Hi, more images will be displayed in the next version of Phoca Gallery Random Image Module... I have it on my disc but not published yet...

jan

Re: Multiple Random Images?

Posted: 31 Jul 2008, 14:18
by Jan
New features in Phoca Gallery Random Image (version 1.8.1):
- you can set the category id from where the images should be displayed
- you can set the limit start and limit count of images which should be displayed, examples:

limit start 0
limit count 5 ... 5 images will be displayed (from beginning).
You can download it here:
https://www.phoca.cz/documentation/index.php/download


Thanks to Willem Hilders for the support.

Jan