Page 1 of 2

Trouble witch Images Count bxSlider Module

Posted: 21 Jun 2016, 18:02
by sdi68
Hi?
I have install bxSlider Module and have trouble : slider shows max 5 images. I have chaged option "Images Count" and it's doesn't work.
What happend?

Re: Trouble witch Images Count bxSlider Module

Posted: 22 Jun 2016, 17:07
by Jan
Hi, which version of Phoca Gallery you are using, which version of the module? When saving the parameter, is different value displayed in options?

Jan

Re: Trouble witch Images Count bxSlider Module

Posted: 27 Jun 2016, 17:50
by sdi68
Hi,
i use:
Joomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT
Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Galery 4.3.0
bxSlider module 4.0.4
Count of displayed images is not dependent on the stored parameter. Now it is 300, and display only 5.

Re: Trouble witch Images Count bxSlider Module

Posted: 29 Jun 2016, 00:19
by Jan
Hi, can I see the site where this occurs?

Jan

Re: Trouble witch Images Count bxSlider Module

Posted: 29 Jun 2016, 09:33
by sdi68

Re: Trouble witch Images Count bxSlider Module

Posted: 29 Jun 2016, 16:39
by Jan
Hi, yes, in source code, only 5 images are displayed, but testing now on my localhost, get the count which is set in module. :idea:

When you save the parameter (options) of the module, is the value changed (e.g. if you set 10, is 10 stored):

Re: Trouble witch Images Count bxSlider Module

Posted: 30 Jun 2016, 10:05
by sdi68
Hi,
yes, if i change option, it's value stored. Now set 300.
https://yadi.sk/i/EPnVLOgsstwfm (see image)

Re: Trouble witch Images Count bxSlider Module

Posted: 05 Jul 2016, 01:26
by Jan
Hi, I see no image, as I wrote, tested now, tested the code, everything OK :idea: Did you set it in right module?

Jan

Re: Trouble witch Images Count bxSlider Module

Posted: 06 Jul 2016, 17:37
by sdi68
Hi/
You can see image by link: https://yadi.sk/i/EPnVLOgsstwfm
I have download module from your site... I think it's right.
But, after insall Phoca Galery haven't worked template preview...

Re: Trouble witch Images Count bxSlider Module

Posted: 07 Jul 2016, 00:45
by Jan
Hi, hmmm, I am testing it on three different servers without any problem. As you can see below:

- parameter is taken from Options (XML)
- when set it is added to SQL query with Limit

Code: Select all

<field name="count_images" type="text" default="5" label="MOD_PHOCAGALLERY_SLIDESHOW_BXSLIDER_COUNT_IMAGES_LABEL" description="MOD_PHOCAGALLERY_SLIDESHOW_BXSLIDER_COUNT_IMAGES_DESC" />

Code: Select all

$count                            = $params->get( 'count_images', 5 ); 

Code: Select all

$query = ' SELECT a.id, a.title, a.description, a.filename, a.extl, a.extlink1, a.extlink2, cc.id as categoryid, cc.alias as categoryalias'
. ' FROM #__phocagallery AS a'
. ' LEFT JOIN #__phocagallery_categories AS cc ON a.catid = cc.id'
. ' WHERE a.published = 1'
. $catidSQL
//. ' WHERE cc.published = 1 AND a.published = 1 AND a.catid = ' . (int)$catId
//. ' ORDER BY RAND()'
. $imageOrdering
. ' LIMIT '.(int)$count; 
Not sure if I asked before, but did you test if cache is enabled. If yes, did you try to clean it?

Jan