Page 1 of 1

Wrong location in widget

Posted: Thu May 12, 2011 9:21 pm
by BEBER1212
Hi,

I just found this widget and wanted to put it on a blog. Once the code past on my blog, with a french city, it showed me New York City forecast.

I don't know why. Do you ?

Thanks.

Re: Wrong location in widget

Posted: Thu May 12, 2011 9:35 pm
by countryroads
Hi Beber,

Welcome to YoWindow.

Can you supply us with a link to your Blog so we can look at your code?

Without the code, it is a little difficult to help you out.

Thanks in advance for the code.

Marty

Re: Wrong location in widget

Posted: Thu May 12, 2011 9:54 pm
by BEBER1212
Here is the code i used :

Code: Select all

<div style="width:220px; height:150px;">
    <object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="220" height="150">
    	<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"/>
    	<param name="allowfullscreen" value="true"/>
    	<param name="wmode" value="opaque"/>
    	<param name="bgcolor" value="#FFFFFF"/>
    	<param name="flashvars" 
    	value="location_id=gn:3028641&location_name=Carcassonne&time_format=24&us=metric&lang=fr&background=#FFFFFF&copyright_bar=false"
    />
        <a href="http://yowindow.com?client=widget&link=stub"
        style="width:220px;height:150px;display: block;text-indent: -50000px;font-size: 0px;background:#DDF url(http://yowindow.com/img/logo.png) no-repeat scroll 50% 50%;"
        >Desktop weather</a>
    </object>
</div>
<div style="width: 220px; height: 15px; font-size: 14px; font-family: Arial,Helvetica,sans-serif;">
	<span style="float:left;"><a target="_top" href="http://yowindow.com?client=widget&link=copyright" style="color: #2fa900; text-decoration:none;" title="Desktop weather">YoWindow.com</a></span>
	<span style="float:right; color:#888888;"><a href="http://yr.no" style="color: #2fa900; text-decoration:none;">yr.no</a></span>
</div>
My blog is :http://laure-aurelien.ameliste.fr (page "Météo" on the right of the page)
It's my wedding website :D It's a pre made blog so i think i can't go in the source code. But pasting the code make the widget.

Thx

Re: Wrong location in widget

Posted: Thu May 12, 2011 10:31 pm
by Wally©
The code you just posted is the right one for Carcassonne...

However...the code is totally messed up on your blog...

I just copied the source which refers to the widget...

Code: Select all

<div style="width:220px; height:150px;"><br />
&#160;&#160;&#160; <object width="220" height="150" type="application/x-shockwave-flash" 

data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"><br />
&#160;&#160; &#160;&#160;&#160; &#160;
<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" /><br />
&#160;&#160; &#160;&#160;&#160; &#160;
<param name="allowfullscreen" value="true" /><br />
&#160;&#160; &#160;&#160;&#160; &#160;
<param name="wmode" value="opaque" /><br />
&#160;&#160; &#160;&#160;&#160; &#160;
<param name="bgcolor" value="#FFFFFF" /><br />
&#160;&#160; &#160;&#160;&#160; &#160;
<param name="flashvars" /> &#160;&#160; &#160;&#160;&#160; 

&#160;value="location_id=gn:3028641&location_name=Carcassonne&time_format=24&us=metric&lang=fr&

amp;background=#FFFFFF©right_bar=false"<br />
&#160;&#160;&#160; /><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;  &#160;&#160;&#160;&#160;&#160;&#160;&#160; 

style="width:220px;height:150px;display: block;text-indent: -50000px;font-size: 0px;background:#DDF url

(http://yowindow.com/img/logo.png) no-repeat scroll 50% 50%;"<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160; >Desktop weather<br />
&#160;&#160;&#160; </object></div>
You should get rid of those &#160 entries...

That's why it displays the weather in NY...

Hope this helps...

Re: Wrong location in widget

Posted: Thu May 12, 2011 11:21 pm
by BEBER1212
Thx for your answers.
You were right, the code is totally messed up in the source.

I just found how to change the source. Deleting &#160 entries was useless. So i pasted the right code and it's now working.

Thank you for your help Wally and Countryroads !!! :good:

By. Have a good day or evening wherever you are. It's gonna be a good night for me. :D :D

Thx again !

Re: Wrong location in widget

Posted: Thu May 12, 2011 11:28 pm
by Wally©
Il n'y a pas de quoi... ;)

I wish you and Laure all the best life has to offer...

Have a wonderful wedding in August !!!

Re: Wrong location in widget

Posted: Thu May 12, 2011 11:37 pm
by BEBER1212
Merci ! :Bravo: