Page 1 of 1

Interesting Double-Google issue

Posted: Sun Oct 08, 2006 9:28 pm
by cornell2
Here's an interesting one.

1. on the left side I have a google adsense banner (in an HTML nugget). No problems

2. somewhere else, I decided to embed another google link (to a google 'referral') ... this is a similar javascipt segment. So I put this in another HTML nugget.

But when I view the page ... the 2nd nugget is identical to the first! The code is different ... but for some reason, serendipity (or google) chooses to re-execute the first adsense script again.

When I try this in a traditional website/page ... each of the google 'calls' are different and appear as they should: 1 is a banner ad, and the other is a google referral ad).

ANyone have experience or insights with this?

Re: Interesting Double-Google issue

Posted: Mon Oct 09, 2006 12:34 pm
by garvinhicking
Hi!

Could you tell us your URL? then we could have a look :)

Best regards,
Garvin

Posted: Mon Oct 09, 2006 6:52 pm
by cornell2
OK - actually I mischaracterized the problem (though working with inserting google scripts is very quirky!)

Here is the problem: I am using "google gadgets" (generates a short javascript line that I insert into the web page so that a quote of the day, little game or other app appears). Works flawlessly on a regual webpage. But here ... there is a weird issue in the HTML nuggets.

Google gadgets (like adsense) allows me to adjust the width/height of the inserted area. It shows me a preview and generates the code, which I insert into the html nugget. No matter what I do - serendipity displays the gadget area as (my guess) somthing like 350 pixels wide (in the right col) even though I am explicitly stating 150 or less. The google gadget preview verifies how it should look, as does examination of the javascript setting, as does inserting into a standard webpage.

I have left the blog in the mis-aligned format so you can see it (the right column should be the same width as the left (about 160 or 180 pixels).



[/img]

Posted: Mon Oct 09, 2006 9:04 pm
by cornell2
OK - well, unfortunately I need to remove the example that is exposing this flaw in Serendipity... because people actually need to view the blog. I wished someone could have stepped in with some help.
Thanks

Posted: Tue Oct 10, 2006 5:20 am
by mgroeninger
Interestingly, it seems that at least one of the Google modules does not use xhtml compliant code.

This problem can be fixed by removing the DOCTYPE reference from the template you are using (in /templates/template_name/index.tpl, where template_name is the name of the template you are using).

(Note, replacing it with a html 4.0 doctype did not work, either... You can to go back to an html 3.1 to get the width to render correctly).

Edit: Tested both hangman script and quotes4all Quote of the day script with same result.

Posted: Tue Oct 10, 2006 9:21 am
by garvinhicking
Hi!

Sadly I still see no URL from you here. But my guess is that your CSS sets input buttons to a fixed width, and thus the 350px wide areas?

Regards,
Garvin