Phoca gallery clearfix problem - plugin in article (mosaic)

Phoca Gallery - image gallery extension
radik10
Phoca Member
Phoca Member
Posts: 22
Joined: 25 Oct 2008, 20:04

Phoca gallery clearfix problem - plugin in article (mosaic)

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

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

Post by Jan »

Hi, which version of the plugin you are running?

Jan
If you find Phoca extensions useful, please support the project
radik10
Phoca Member
Phoca Member
Posts: 22
Joined: 25 Oct 2008, 20:04

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

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

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

Post 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
If you find Phoca extensions useful, please support the project
radik10
Phoca Member
Phoca Member
Posts: 22
Joined: 25 Oct 2008, 20:04

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

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

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

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
aplauz
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 17 Apr 2016, 08:37

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

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

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

Post by Jan »

Hi, do you get the problem when you use standard template? Which plugin you exactly run?

Jan
If you find Phoca extensions useful, please support the project
Post Reply