After upgrade thumbs not showed centered in Firefox

Phoca Gallery - image gallery extension
JLomin
Phoca Member
Phoca Member
Posts: 10
Joined: 27 Feb 2008, 12:04
Location: Spain

After upgrade thumbs not showed centered in Firefox

Post by JLomin »

Hi,
After upgrade, thumbs not showed properly centered in Firefox.

To see what I mean:

http://www.escarabajoclubciudadreal.com ... &Itemid=19

(Solution provided in similar post doesn’t apply in this case).

Any hints will be appreciated..
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: After upgrade thumbs not showed centered in Firefox

Post by Jan »

Hi, did you check if with standard template?

Try to add center style to:

components\com_phocagallery\views\category\tmpl\default.php

line cca. 114

change from:

Code: Select all

echo '<div class="phocagallery-box-file-first" style="height:'.$imageHeight['size'].'px;width:'.$imageWidth['size'].'px;">';
to:

Code: Select all

echo '<div class="phocagallery-box-file-first" style="height:'.$imageHeight['size'].'px;width:'.$imageWidth['size'].'px;margin:auto">';
and let me know if this helped.

Jan
If you find Phoca extensions useful, please support the project
JLomin
Phoca Member
Phoca Member
Posts: 10
Joined: 27 Feb 2008, 12:04
Location: Spain

Re: After upgrade thumbs not showed centered in Firefox

Post by JLomin »

[b]Problem solved[/b] with that hack!

Great control over your code, Jan.

(thanks!)
User avatar
JanRoza
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 May 2010, 01:18

Re: After upgrade thumbs not showed centered in Firefox

Post by JanRoza »

I too had this problem after upgrading from 2.6.1 to 2.7.1 and I also changed the code in default.php but with me the thumbnails are still out of line.
Any ideas what else to do to cure this?

Thanks!

Jan
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: After upgrade thumbs not showed centered in Firefox

Post by Jan »

Hi, can I see the site with default template?
If you find Phoca extensions useful, please support the project
User avatar
JanRoza
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 May 2010, 01:18

Re: After upgrade thumbs not showed centered in Firefox

Post by JanRoza »

Sorry for my late reaction.
The production is running a much older version of Gallery, but my test website is now running 2.61 again since version 2.71 did not show the thumbnails correctly. This 2.61 version uses the Blue theme.
You can see the galleries vie link: http://213.10.59.241/vhz-t/index.php?op ... Itemid=115
I'm not sure what the default theme is or how I reset the galleries to the default.
Hope you can find a solution (no hurry though as version 2.61 is doing the job very well).

Thanks!

Jan
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10081
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: After upgrade thumbs not showed centered in Firefox

Post by Benno »

Hi,
I'm not sure what the default theme is or how I reset the galleries to the default.
https://www.phoca.cz/download/category/3 ... ery-themes
take com_phocagallery_theme_default.zip (23.77 kB)
Kind regards,
Benno
User avatar
JanRoza
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 May 2010, 01:18

Re: After upgrade thumbs not showed centered in Firefox

Post by JanRoza »

Going to the website for the default theme file I saw that a new release of Phocagallery was out 2.72 so I downloaded and installed that one on my test server. This release solves the problems I had with thumbnail allignments. The default theme as well as the blue theme now show up correctly again.
So problem solved, Jan did a great job with updating his Phoca Gallery again. Compliments!

Jan
:twisted:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10081
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: After upgrade thumbs not showed centered in Firefox

Post by Benno »

Ok.
Kind regards,
Benno
Post Reply