Page 1 of 1

Phoca gallery clearfix problem - plugin in article (mosaic)

Posted: 20 Apr 2015, 19:59
by radik10
Hi
if you insert code in to the article with phocagallery plugin (example: {phocagallery view=category|categoryid=1|limitstart=0|limitcount=0|type=1} ), images are not correctly clearfixed - I mean div is not cleared (because of left align of mosaic images).
Please add clearfix div in to he generate mosaic images in to the plugin.
BUG - description:
Image

Re: Phoca gallery clearfix problem - plugin in article (mosa

Posted: 22 Apr 2015, 00:47
by Jan
Hi, which version of the plugin you are running?

Jan

Re: Phoca gallery clearfix problem - plugin in article (mosa

Posted: 22 Apr 2015, 05:41
by radik10
Hi
I am using latest version of Joomla (3.4.1) and latest version (4.1.2) of phoca and phoca plugin - it was tested with protostar and beez3 (standard joomla) templates, everywhere same result.
In the plugin you have some "clear" tags, but they are not working properly. It is always good test plugins or modules with standard joomla templates.
Temporary workaround is to use in template css: ".phocagallery { display:table; clear: both; }" after this modification inserted text in the article has correct position - as desired. But it will be better to have extra clear (div) tag in the inserted plugin code (in article) like "<div class="clearfix"> </div>".
Thanks
Radovan

Re: Phoca gallery clearfix problem - plugin in article (mosa

Posted: 22 Apr 2015, 23:51
by Jan
Hi, try to open the plugin code:
plugins/content/phocagallery/phocagallery.php

and try to edit cca line 1771
FROM:

Code: Select all

if ($float == '') {
				$output .= '<div style="clear:both"> </div>';
			}
TO:

Code: Select all

//if ($float == '') {
				$output .= '<div style="clear:both"> </div>';
			//}
And let me know it is OK.

Jan

Re: Phoca gallery clearfix problem - plugin in article (mosa

Posted: 23 Apr 2015, 05:41
by radik10
Hi Jan,
Yes, your modification works as desired. Now is output correctly displayed. Thanks for modification.
Please add this change in to the content plugin as standard part of Phoca plugin.
R.

Re: Phoca gallery clearfix problem - plugin in article (mosa

Posted: 26 Apr 2015, 22:47
by Jan
Ok

Re: Phoca gallery clearfix problem - plugin in article (mosa

Posted: 17 Apr 2016, 08:44
by aplauz
Hello.
I have a problem with float my images by text. I heard this solution can help for problem with float. I'm afraid, this solution is not working on my site. Single photo in article, Joomla 3.4.8, Phoca 4.2.2. and float not working

Re: Phoca gallery clearfix problem - plugin in article (mosa

Posted: 25 Apr 2016, 00:26
by Jan
Hi, do you get the problem when you use standard template? Which plugin you exactly run?

Jan