Interesting Double-Google issue

Having trouble installing serendipity?
Post Reply
cornell2
Regular
Posts: 16
Joined: Sat Oct 07, 2006 6:34 am

Interesting Double-Google issue

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Interesting Double-Google issue

Post by garvinhicking »

Hi!

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

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
cornell2
Regular
Posts: 16
Joined: Sat Oct 07, 2006 6:34 am

Post 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]
Last edited by cornell2 on Tue Oct 10, 2006 5:26 am, edited 1 time in total.
cornell2
Regular
Posts: 16
Joined: Sat Oct 07, 2006 6:34 am

Post 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
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply