I have this mod now running on my board in the CMS as a widget, but changed the code a tiny bit so that it auto-scales. Now the code looks like this (my changes are marked in
RED)
Code:
<div class="cms_widget">
<div class="block">
<div class="cms_widget_header">
<h3><img src="{vb:stylevar imgdir_siteicons}/html.png" alt="" /> {vb:raw widget_title}</h3>
</div>
<div class="cms_widget_content_restore_widget_content">
<center>
<div style="width:auto; height:200px;">
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/yowidget3.swf" width="100%" height="100%">
<param name="movie" value="http://swf.yowindow.com/yowidget3.swf"/>
<param name="allowfullscreen" value="true"/>
<param name="wmode" value="opaque"/>
<param name="bgcolor" value="#FFFFFF"/>
<PARAM NAME="SCALE" VALUE="exactfit">
<param name="flashvars"
<vb:if condition="$bbuserinfo[field9] !=''">
value="location_id=gn:{vb:raw bbuserinfo.field9}
<vb:else />
value="location_id=gn:2745912
</vb:if>
&time_format=24&unit_system=metric&lang=nl&background=#FFFFFF&mini_locationBar=true&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;">
</div>
</div>
</center>
</div>
</div>
I also changed the location of the
<vb:if condition="$bbuserinfo[field9] !=''"> a bit so that when a user or a guest user have no ID it defaults to a city in the middle of The Netherlands.