|
hayskswx
|
 |
« on: June 05, 2012, 10:01:09 PM » |
|
How do I widen the ajax dashboard? I switched to wide view.
|
|
|
|
|
Logged
|
|
|
|
|
saratogaWX
|
 |
« Reply #1 on: June 06, 2012, 12:33:48 AM » |
|
The ajax-dashboard is currently a fixed size (so it fits in both narrow and wide aspect views).
It was specifically 'tuned' for compact display.. If you want to change the layout, you'll need to edit the HTML in ajax-dashboard.php itself.
|
|
|
|
|
Logged
|
Ken True/Saratoga, CA, USA main site: saratoga-weather.orgDavis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
|
|
|
|
|
|
Axelvold
|
 |
« Reply #3 on: June 06, 2012, 02:04:24 AM » |
|
I think if you change the value on this line you will get it wider. <!-- start of ajax-dashboard.php --> <div class="ajaxDashboard"> <table width="652" border="0" cellpadding="2" cellspacing="1" style="border:solid; border-color: #CCCCCC;">
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #4 on: June 06, 2012, 10:48:50 AM » |
|
I think if you change the value on this line you will get it wider. <!-- start of ajax-dashboard.php --> <div class="ajaxDashboard"> <table width="652" border="0" cellpadding="2" cellspacing="1" style="border:solid; border-color: #CCCCCC;"> That worked. Thanks You!!! 
|
|
|
|
|
Logged
|
|
|
|
|
hayskswx
|
 |
« Reply #5 on: June 06, 2012, 11:33:06 AM » |
|
How do I widen the NWS extended forecast. I've widen everything else but cant figure that one out. Anyone have any ideas?
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #6 on: June 06, 2012, 12:40:45 PM » |
|
Do a search for table width="652" in that file and you will find it. I did find several with the width of 652 <table width="652" border="0" cellpadding="2" cellspacing="1"> <tr> <td style="text-align: left" class="datahead"> NWS Weather Forecast - This Afternoon's and Tonight's Outlook</td> </tr> <tr> <td align="center" valign="middle"> <table width="652" border="0" cellpadding="2" cellspacing="3" style="border:solid; border-color: #CCCCCC;">
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #7 on: June 06, 2012, 01:02:58 PM » |
|
Do a search for table width="652" in that file and you will find it. I did find several with the width of 652 <table width="652" border="0" cellpadding="2" cellspacing="1"> <tr> <td style="text-align: left" class="datahead"> NWS Weather Forecast - This Afternoon's and Tonight's Outlook</td> </tr> <tr> <td align="center" valign="middle"> <table width="652" border="0" cellpadding="2" cellspacing="3" style="border:solid; border-color: #CCCCCC;">
Hmm.... It didnt widen it. I changed it to 780
|
|
|
|
|
Logged
|
|
|
|
|
hayskswx
|
 |
« Reply #8 on: June 06, 2012, 01:04:49 PM » |
|
It is the advforecast2.php file correct?
|
|
|
|
|
Logged
|
|
|
|
|
hayskswx
|
 |
« Reply #9 on: June 06, 2012, 01:21:49 PM » |
|
Do a search for table width="652" in that file and you will find it. I did find several with the width of 652 <table width="652" border="0" cellpadding="2" cellspacing="1"> <tr> <td style="text-align: left" class="datahead"> NWS Weather Forecast - This Afternoon's and Tonight's Outlook</td> </tr> <tr> <td align="center" valign="middle"> <table width="652" border="0" cellpadding="2" cellspacing="3" style="border:solid; border-color: #CCCCCC;">
What file is this in??
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #10 on: June 06, 2012, 02:01:38 PM » |
|
Look in the file for the NWS forecast, don't know the name of it.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #11 on: June 06, 2012, 02:05:42 PM » |
|
Where did you find the code at then?
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #12 on: June 06, 2012, 02:07:56 PM » |
|
Where did you find the code at then?
I did view your source code in my browser, so I think it's in that file.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #13 on: June 06, 2012, 02:09:04 PM » |
|
advforecast2.php
This one? If so I changed all the tables and it doesnt widen it.
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #14 on: June 06, 2012, 02:14:25 PM » |
|
And change on line 921 and 927 in the dashboard file as well.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #15 on: June 06, 2012, 02:17:22 PM » |
|
I changed this one
<table width="780" style="border: none;"> <tr align="center" style="background-color: #inherit;"> <td><b>National Weather Service Forecast for: </b><span style="color: green;"> <?php echo $forecastcity; ?></span><br /> Issued by: <?php echo $forecastoffice; ?> </td>
Cant find the other one
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Axelvold
|
 |
« Reply #17 on: June 06, 2012, 02:23:58 PM » |
|
change this as well. <table width="652" border="0" cellpadding="2" cellspacing="1"> <tr> <td style="text-align: left" class="datahead"> NWS Weather Forecast - This Afternoon's and Tonight's Outlook</td> </tr> <tr> <td align="center" valign="middle"> <table width="652" border="0" cellpadding="2" cellspacing="3" style="border:solid; border-color: #CCCCCC;">
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
|
|
Axelvold
|
 |
« Reply #19 on: June 06, 2012, 02:27:23 PM » |
|
there is one more you need to change, just above the forecast.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #20 on: June 06, 2012, 02:28:13 PM » |
|
where is it?
|
|
|
|
|
Logged
|
|
|
|
|
hayskswx
|
 |
« Reply #21 on: June 06, 2012, 02:30:07 PM » |
|
I think I got it 
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #22 on: June 06, 2012, 02:32:54 PM » |
|
Yes, you got it looks great. 
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #23 on: June 06, 2012, 02:42:37 PM » |
|
Thanks. And thanks again for the help.
|
|
|
|
|
Logged
|
|
|
|
|
Bunty
|
 |
« Reply #24 on: June 06, 2012, 09:38:30 PM » |
|
Going wider is cool.
|
|
|
|
|
Logged
|
|
|
|
|