Phoca slideshow nivo module - random images

Phoca modules - support for all Phoca modules except Phoca Gallery modules
fcbunyodkor
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 19 Sep 2011, 17:11

Phoca slideshow nivo module - random images

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

Re: Phoca slideshow nivo module - random images

Post 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
If you find Phoca extensions useful, please support the project
djjerom
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 21 Sep 2011, 08:58

Re: Phoca slideshow nivo module - random images

Post by djjerom »

Hello how must i fil in the id, en where can i find de id,
Can you let me see a sample
fcbunyodkor
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 19 Sep 2011, 17:11

Re: Phoca slideshow nivo module - random images

Post 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'
fcbunyodkor
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 19 Sep 2011, 17:11

Re: Phoca slideshow nivo module - random images

Post 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
Post Reply