Weather-Watch.com
September 02, 2010, 05:27:18 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Members: 8,509  Posts: 362,030  Topics: 40,113
Please welcome lawrencerebeiro, our newest member.

Latest versions: WD - 10.37P  WDL - 6.05  MML - 1.03
 News:
Check out the new FAQs (Frequently Asked Questions) board for a growing list of hints, tips and diagnostic suggestions.
  Advanced Search
   Home   Bug Tracker Photo Gallery Wiki Chat Calendar Search Login Register Help  
Pages: [1]
  Print  |  « previous  |  next »  |  Go Down  
Author Topic: [RESOLVED] How to switch to wide view for only one page?  (Read 907 times)
0 Members and 1 Guest are viewing this topic.
i_fiorentino
Weather Guru
**
Offline Offline

Location: 160 mls Carmignano (Po), Tuscany, IT
Station Type: La Crosse 2308, Boltek PCI, Nexstorm, Mobotix M22-IT Webcam & WXSim
Posts: 836
Local Time: Thursday 19:27



WWW
« 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:
// 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 » Logged

MadALwx
Weather Guru
**
Online Online

Location: Madison, AL
Station Type: Davis VP2 Wireless
Posts: 771
Local Time: Thursday 13:27


Retired USAF B-52 Gunner


WWW
« Reply #1 on: September 22, 2009, 11:55:44 AM »

Below this
Code:
$TITLE= $SITE['organ'] . " - Forecast Accuracy Report";
$showGizmo = true;  // set to false to exclude the gizmo
include("top.php");
############################################################################

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

It will look like
Code:
############################################################################
$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
############################################################################
Logged

Lee,     Fox4ALS.com


VP2 w/ Solar Rad, LD-250-Lightning2000, MadCam
i_fiorentino
Weather Guru
**
Offline Offline

Location: 160 mls Carmignano (Po), Tuscany, IT
Station Type: La Crosse 2308, Boltek PCI, Nexstorm, Mobotix M22-IT Webcam & WXSim
Posts: 836
Local Time: Thursday 19:27



WWW
« Reply #2 on: September 22, 2009, 01:26:11 PM »

Perfect!
Thank you Lee,

Alessandro
Logged

MadALwx
Weather Guru
**
Online Online

Location: Madison, AL
Station Type: Davis VP2 Wireless
Posts: 771
Local Time: Thursday 13:27


Retired USAF B-52 Gunner


WWW
« Reply #3 on: September 22, 2009, 02:59:40 PM »

You are welcome.
Site looks really good.

I like your fire indx icons. Where?
Logged

Lee,     Fox4ALS.com


VP2 w/ Solar Rad, LD-250-Lightning2000, MadCam
i_fiorentino
Weather Guru
**
Offline Offline

Location: 160 mls Carmignano (Po), Tuscany, IT
Station Type: La Crosse 2308, Boltek PCI, Nexstorm, Mobotix M22-IT Webcam & WXSim
Posts: 836
Local Time: Thursday 19:27



WWW
« 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

* FWI Fire Icons.zip (38.25 KB - downloaded 54 times.)
Logged

MadALwx
Weather Guru
**
Online Online

Location: Madison, AL
Station Type: Davis VP2 Wireless
Posts: 771
Local Time: Thursday 13:27


Retired USAF B-52 Gunner


WWW
« Reply #5 on: September 22, 2009, 05:23:48 PM »

Thanks!
Logged

Lee,     Fox4ALS.com


VP2 w/ Solar Rad, LD-250-Lightning2000, MadCam
Pages: [1]
  Print  |  « previous  |  next »  |  Go Up  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!