cloudy

Author Topic: [RESOLVED] How to switch to wide view for only one page?  (Read 1826 times)

0 Members and 1 Guest are viewing this topic.

Offline i_fiorentino

  • Posts: 1,352
  • 160 mls Carmignano (Po), Tuscany, Italy
    • Meteocarmignano.it
[RESOLVED] How to switch to wide view for only one page?
« on: September 22, 2009, 08:33:00 AM »
Hi guys,
i've an application that it needs to wide page instead of narrow view.
Few months ago Ken added this code to change my whos-online page from narrow to wide view.
Code: [Select]
// the code below will force your whose-online.php page to use a wide css template
 if ( isset($C['filename_whos_online']) && preg_match("/".$C['filename_whos_online']."/i", $SITE['REQURI']) ){
   $SITE['CSSscreen'] = str_replace ('-narrow.css','-wide.css',$SITE['CSSscreen']);  
 }

How to do the same code from another page?
Which settings should i change? (f.e. the new page is wxcompare.php)
Thanks a lot,

Alessandro
« Last Edit: September 22, 2009, 01:45:05 PM by i_fiorentino »

Offline MadALwx

  • Posts: 1,317
  • Retired USAF B-52 Gunner
  • Madison, AL
    • MadALwx
Re: [REQUEST] How to switch to wide view for only one page?
« Reply #1 on: September 22, 2009, 11:55:44 AM »
Below this
Code: [Select]
$TITLE= $SITE['organ'] . " - Forecast Accuracy Report";
$showGizmo = true;  // set to false to exclude the gizmo
include("top.php");
############################################################################

Add this before </head>
Code: [Select]
<style type="text/css">
#page {width: 1024px }
</style>

It will look like
Code: [Select]
############################################################################
$TITLE= $SITE['organ'] . " - Forecast Accuracy Report";
$showGizmo = true;  // set to false to exclude the gizmo
include("top.php");
############################################################################
?>
<style type="text/css">
#page {width: 1024px }
</style>
</head>
<body>
<?php
############################################################################
Lee,     Fox4ALS.com


VP2 w/ Solar Rad, LD-250-Lightning2000, MadCam

Offline i_fiorentino

  • Posts: 1,352
  • 160 mls Carmignano (Po), Tuscany, Italy
    • Meteocarmignano.it
Re: [REQUEST] How to switch to wide view for only one page?
« Reply #2 on: September 22, 2009, 01:26:11 PM »
Perfect!
Thank you Lee,

Alessandro

Offline MadALwx

  • Posts: 1,317
  • Retired USAF B-52 Gunner
  • Madison, AL
    • MadALwx
Re: [RESOLVED] How to switch to wide view for only one page?
« Reply #3 on: September 22, 2009, 02:59:40 PM »
You are welcome.
Site looks really good.

I like your fire indx icons. Where?
Lee,     Fox4ALS.com


VP2 w/ Solar Rad, LD-250-Lightning2000, MadCam

Offline i_fiorentino

  • Posts: 1,352
  • 160 mls Carmignano (Po), Tuscany, Italy
    • Meteocarmignano.it
Re: [RESOLVED] How to switch to wide view for only one page?
« Reply #4 on: September 22, 2009, 05:18:43 PM »
You are welcome.
Site looks really good.

I like your fire indx icons. Where?
Hi Lee,
you can find something here: http://www.weather-watch.com/smf/index.php/topic,39362.0.html
while mine icons are in attachment!
Glad to help you,

Alessandro

Offline MadALwx

  • Posts: 1,317
  • Retired USAF B-52 Gunner
  • Madison, AL
    • MadALwx
Re: [RESOLVED] How to switch to wide view for only one page?
« Reply #5 on: September 22, 2009, 05:23:48 PM »
Thanks!
Lee,     Fox4ALS.com


VP2 w/ Solar Rad, LD-250-Lightning2000, MadCam

 

cumulus