Page 1 of 1

Phoca slideshow nivo module - random images

Posted: 19 Sep 2011, 17:16
by fcbunyodkor
Hi,

Wonder if you can help.

How can I set for random images to be showed in slideshow from set category in Nivo?

Thank you!

Re: Phoca slideshow nivo module - random images

Posted: 21 Sep 2011, 01:10
by Jan
Hi, for now there is no option for this, so the module needs to be customized, it is prepared in the code:

uncomment the line 62:

Code: Select all

//. ' ORDER BY RAND()'
and comment line below:

Code: Select all

. ' ORDER BY a.ordering'
Jan

Re: Phoca slideshow nivo module - random images

Posted: 21 Sep 2011, 09:04
by djjerom
Hello how must i fil in the id, en where can i find de id,
Can you let me see a sample

Re: Phoca slideshow nivo module - random images

Posted: 21 Sep 2011, 10:13
by fcbunyodkor
Jan, thanks for help!

For other newbies like me you have to edit file called 'mod_phocagallery_slideshow_nivo.php' which normally be saved under '/modules/mod_phocagallery_slideshow_nivo/'.

Change you have to make is as Jan said in around line 61:

From:

Code: Select all

//. ' ORDER BY RAND()'
. ' ORDER BY a.ordering'
To:

Code: Select all

. ' ORDER BY RAND()'
//. ' ORDER BY a.ordering'

Re: Phoca slideshow nivo module - random images

Posted: 21 Sep 2011, 10:29
by fcbunyodkor
djjerom wrote:Hello how must i fil in the id, en where can i find de id,
Can you let me see a sample
I believe you mean ID under module parameters. You will find in joomla under components>Phoca Gallery Control Panel>Categories> and there you will see ID numbers for each of your picture folders. So enter ID of whichever folder you want to show on your slideshow module