cloudy

Author Topic: wdl-mml-forcesize.js  (Read 1050 times)

0 Members and 1 Guest are viewing this topic.

Offline AM1234

  • Posts: 368
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
wdl-mml-forcesize.js
« on: April 19, 2009, 11:06:36 AM »
I am using the wdl-mml-forcesize.js, and my mml display looks too small

http://www.beamsvillewx.ca/wxmesomap.php

Can anyone suggest how I may increase the display size?
Ann-Marie
Beamsville, Ontario, Canada

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: wdl-mml-forcesize.js
« Reply #1 on: April 19, 2009, 02:37:28 PM »
What web browser are you having the trouble with?

Offline AM1234

  • Posts: 368
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: wdl-mml-forcesize.js
« Reply #2 on: April 19, 2009, 03:24:50 PM »
Hi Mike: I'm using IE.
Ann-Marie
Beamsville, Ontario, Canada

Offline lasatalayas

  • Posts: 428
  • Peñíscola, Spain
    • Peniscola Weather
Re: wdl-mml-forcesize.js
« Reply #3 on: April 20, 2009, 05:24:32 AM »
Try changing
so.addParam("wmode", "opaque")
to
so.addParam("wmode", "disabled")

Offline AM1234

  • Posts: 368
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: wdl-mml-forcesize.js
« Reply #4 on: April 20, 2009, 09:35:32 AM »
Thanks Mike, but the display is still very small :(
Ann-Marie
Beamsville, Ontario, Canada

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: wdl-mml-forcesize.js
« Reply #5 on: April 20, 2009, 02:30:43 PM »
What version of IE are you using? 6,7,8 ?
How small is small? can you post a screen shot?

Offline AM1234

  • Posts: 368
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: wdl-mml-forcesize.js
« Reply #6 on: April 20, 2009, 03:25:46 PM »
I am using IE7. Here's a link to an image:

http://www.beamsvillewx.ca/mesomap.jpg

Thanks.
Ann-Marie
Beamsville, Ontario, Canada

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: wdl-mml-forcesize.js
« Reply #7 on: April 20, 2009, 05:17:33 PM »
It is a CSS issue caused by the big temp.

The fix will be: add clear:right; to main-copy

Try this fix and let me know if it works:
update your style switcher CSS files:

Download:                 
www.642weather.com/weather/scripts/css-theme-switcher.zip

Version: 1.20  20-Apr-2009
- fix css problem with too much right margin on mml page (when viewed in IE7).
the cause was the big temp interfering.
the fix was to add clear:right to main-copy and main-copy-dark
To upgrade from vers 1.19: just replace all the css files from this zip file to your server


Offline AM1234

  • Posts: 368
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: wdl-mml-forcesize.js
« Reply #8 on: April 20, 2009, 07:54:35 PM »
Hi Mike: It looks like the image is larger now, thanks. However, how can I make the image bigger still?  The weather data in the slide bar is small and difficult to read.
Ann-Marie
Beamsville, Ontario, Canada

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: wdl-mml-forcesize.js
« Reply #9 on: April 20, 2009, 08:07:07 PM »
The only option left is to make the page wider....

This is a mod to force the wxmesomap.php page to use wide css,
the rest of your site can stay on a narrow theme or what ever the visitor has selected (narrow or wide).
 
Put this code at the very bottom of the Settings.php, but before the closing PHP tag:

Code:
Code: [Select]
// the code below will force your wxmesomap.php page to use a wide css template
 if ( preg_match("/wxmesomap.php/i", $SITE['REQURI']) ){
   $SITE['CSSscreen'] = str_replace ('-narrow.css','-wide.css',$SITE['CSSscreen']); 
 }
« Last Edit: April 20, 2009, 10:02:50 PM by MCHALLIS »

Offline AM1234

  • Posts: 368
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: wdl-mml-forcesize.js
« Reply #10 on: April 20, 2009, 08:17:19 PM »
My page is displaying an error:

Quote
Parse error: syntax error, unexpected '{' in /home/annmarie/public_html/Settings.php on line 282
Ann-Marie
Beamsville, Ontario, Canada

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: wdl-mml-forcesize.js
« Reply #11 on: April 20, 2009, 10:02:35 PM »
Sorry, here is the correct code:

Code: [Select]
// the code below will force your wxmesomap.php page to use a wide css template
 if ( preg_match("/wxmesomap.php/i", $SITE['REQURI']) ){
   $SITE['CSSscreen'] = str_replace ('-narrow.css','-wide.css',$SITE['CSSscreen']); 
 }

Offline tonyva

  • Posts: 1,065
  • Mangawhai Heads, Northland, New Zealand
    • Mangawhai Heads Weather
Re: wdl-mml-forcesize.js
« Reply #12 on: April 20, 2009, 11:59:18 PM »
Thanks Mike I used the above code to fix my mesomap side bar  :)
Thank You
Tony

Weather Dedicated 24/7 HP Dual Core 1.8 Ghz CPU, 2GB Ram

Offline AM1234

  • Posts: 368
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: wdl-mml-forcesize.js
« Reply #13 on: April 21, 2009, 09:53:34 AM »
Thanks for all your help, Mike :)
Ann-Marie
Beamsville, Ontario, Canada

 

cumulus