Multiple Random Images?

Phoca Gallery plugins - plugins for Phoca Gallery extension
User avatar
Jaga
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 02 Jun 2008, 00:31
Contact:

I was trying to get

Post 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.
--= Jaga
User avatar
Jaga
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 02 Jun 2008, 00:31
Contact:

Update to my origina

Post 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.
--= Jaga
crashoverride
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 12 Jun 2008, 21:43

Re: Multiple Random Images?

Post 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.
Thorned Rose
Phoca Member
Phoca Member
Posts: 10
Joined: 31 Jul 2008, 10:04

Re: Multiple Random Images?

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Random Images?

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Random Images?

Post 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
If you find Phoca extensions useful, please support the project
Post Reply