Layout problem (just happened)

Phoca Gallery - image gallery extension
kef now
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Jul 2010, 20:07

Layout problem (just happened)

Post by kef now »

Hi all at Phoca.

I have been using Phoca for my album for awhile now and just the last few days the layout has gone wild.

I have made some alterations to my site they are:

Upgraded Joomla to 1.5.18

Changed my template. I have been onto Shape5 and they say its probably a Phoca problem.

Whats happening is the images have dropped out of the boxes see http://www.kefalonianow.com/kefalonia-p ... skala.html

Any ideas
I am using Phoca version 2.5.5
kef now
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Jul 2010, 20:07

Re: Layout problem (just happened)

Post by kef now »

I have just updated to 2.7.3
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Layout problem (just happened)

Post by Jan »

Hi, did you check it with some standard template like rhuk_milkyway is? Can I see the site with rhuk_milkyway enabled?
If you find Phoca extensions useful, please support the project
kef now
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Jul 2010, 20:07

Re: Layout problem (just happened)

Post by kef now »

Jan wrote:Hi, did you check it with some standard template like rhuk_milkyway is? Can I see the site with rhuk_milkyway enabled?
Hi
Before I changed template it was OK. I have a problem with the milkyway template it will not load so I cannot let you see it with that, also my site will drop to bits with that template. Any change of template needs to be quick due to my visitors.

I can after looking at your profile pm you super admin login, then you can change template at will.

thanks for looking
kef now
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Jul 2010, 20:07

Re: Layout problem (just happened)

Post by kef now »

I have been onto Shape5 and this is what they say
I am sorry but without being the developer of this component I wouldn't know what is causing the issue. Components should never rely on a template for css and should have their own css for issues like this. As I said above the component is using a lot of un-necessary calls for positions, floats, lefts, etc. You would need to contact the developer of this component to have this resolved, a component should work on all templates with no issues. You can also verify the css for the component on both installs to make sure they are the same.
So they are saying its phoca layout problem.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Layout problem (just happened)

Post by Jan »

Hi,

used code in Phoca Gallery is valid (there are some exceptions because of not stadard browsers like IE, etc.) but e.g. CSS is used this way:
#phocagallery .some-class
It means, only parts of code which is in id "phocagallery" is affected. It means, Phoca Gallery does not influence any other parts e.g. in template on in other extension.

Phoca Gallery is tested in many standard templates like rhuk_milkyway is and is working there without any problems.
As I said above the component is using a lot of un-necessary calls for positions, floats, lefts
Every part of Phoca Gallery is necessary. E.g. there is used hack for vertical and horizonal centering the boxes. Some of browsers (IE6 -> IE8) don't know some CSS rules which then prevent from correctly displaying of e.g. vertical and horizontal centering of boxes. This is the reason why e.g. boxes have 3 divs. Mostly this is a problem, some people who don't know the browsers behaviour (IE6, IE7, IE8, Firefox, Chrome, Seamonkey, Safari, Opera, ...) think, 3 divs are unnecessary, etc. Yes they are, but only in case, all users will use only Firefox e.g.


So it is a common javascript and CSS problem. Joomla! CMS is very popular and includes a lot of extensions (include templates) and there are conflicts between different extensions (e.g. one extension is loading the same javascript library as a template - but both are different versions and this will then cause conflict - search Joomla.org forum where I have described here and where I have pasted a rule to load libraries only one time - rules for all developers)

No idea why you cannot switch to main standard template which is rhuk milky way, but enabling it, it can show us where the conflict is. :idea:

Jan
If you find Phoca extensions useful, please support the project
kef now
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Jul 2010, 20:07

Re: Layout problem (just happened)

Post by kef now »

The error I get when enabling the milkyway template is a blank page with the following text

Code: Select all

<link rel="stylesheet" href="/templates/rhuk_milkyway/css/
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Layout problem (just happened)

Post by Jan »

Hi, can I see the site, seems like there is some php error after adding some style to rhuk_milkyway and after this the script will end, so for getting more info you need to display error someway :idea: on your server

https://www.phoca.cz/documents/16-joomla ... rs-on-site
If you find Phoca extensions useful, please support the project
kef now
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Jul 2010, 20:07

Re: Layout problem (just happened)

Post by kef now »

OK I think I have figured it out, I have the Shape 5 CSS and JS Compressor on the site if I disable this all is fine. Back to Shape5
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Layout problem (just happened)

Post by Jan »

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