Problems with styleshout-refresh and with CSS validation

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
1/4/2009 11:18:33 AM
Gravatar
Total Posts 117

Problems with styleshout-refresh and with CSS validation

Using styleshout-refresh  I am getting a missing ) error when I use google analiticscs together with a load of xhtml validation errors ( site is dev.bhpc.org.uk ).

Also if I try and do a CSS validation I get :

Error
Target: http://dev.bhpc.org.uk/Data/Sites/1/skins/styleshout-refresh/style.css
I/O Error: http://dev.bhpc.org.uk/Data/Sites/1/skins/styleshout-refresh/style.css: Not Found
 

Any Ideas

 

Neil

1/4/2009 11:35:49 AM
Gravatar
Total Posts 18444

Re: Problems with styleshout-refresh and with CSS validation

The xhtml validation error is because of javascript you apparently added to your layout.master. Unless you are using the paid google urchin service you do not need to add that javascript, all you need to do is add the id code to your site settings as documented here.

The css validation link is a bug as I forgot to update it when we switched to the css handler. I've already fixed it here so it will be fixed in the next release. In the mean time you can remove that from your layout.master file.

Best,

Joe

1/4/2009 12:06:57 PM
Gravatar
Total Posts 117

Re: Problems with styleshout-refresh and with CSS validation

I dont have any javascript in layout.master - the only javascript is caused by the line

<portal:mojoGoogleAnalyticsScript ID="mojoGoogleAnalyticsScript1" runat="server" />

Which is needed to make the id code work as I understand it - If I take that line out its fine but i loose analitics.

I will remove the link to the CSS validation until the next release

 

Neil

1/4/2009 12:15:03 PM
Gravatar
Total Posts 18444

Re: Problems with styleshout-refresh and with CSS validation

When I view the source of you page I see this:

var mojoPageTracker = _gat._getTracker("<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">");
 

which is not correct and it made me think you must have put it there but now my best guess is that you tried to paste the whole javascript into site settings rather than just the analytics account id as indicated in the documentation.

When you view the source of this site you see the correct format:

var mojoPageTracker = _gat._getTracker("UA-xxxxxxx-1");

UA-xxxxxxx-1 is the analytics account id and it is the only thing that needs tobe entered in site settings. I think you have something else there like script.

I'm heading out for afternoon to visit family so won't be monitoring forums for a while.

Best,

Joe

1/4/2009 12:24:38 PM
Gravatar
Total Posts 117

Re: Problems with styleshout-refresh and with CSS validation

Thanks joe - that was it

You must sign in to post in the forums. This thread is closed to new posts.