Author Topic: Making Columns  (Read 1156 times)

0 Members and 1 Guest are viewing this topic.

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 412
    • Penn Lake Weather
Making Columns
« on: December 01, 2014, 07:15:28 PM »
I'm not sure if I'm in the right place, but -- I am looking for an EASY way to make columns in my ski report weather page.

http://www.pennlake.us/wxskireport.php

I used the wxnewpage and just added the code that was generated. Anyway I think I can fit two across but all I can seem to find is code that is way beyond me.  Any suggestions for a simple solution?

Thanks,

yamiacaveman 

Offline Dr Obbins

  • Forecaster
  • *****
  • Posts: 1152
Re: Making Columns
« Reply #1 on: December 01, 2014, 08:50:22 PM »
Use Tables
Replace this:
Code: [Select]
<p><div class="ots-widget"><iframe id="o58343" width="220" height="324" border="0" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=44&color=b#pennlake.us"></iframe><p><a href="http://www.onthesnow.com/pennsylvania/big-boulder/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p></div>
<div class="ots-widget"><iframe id="o58490" width="220" height="345" border="0" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=62&color=b#pennlake.us"></iframe><p><a href="http://www.onthesnow.com/pennsylvania/blue-mountain-ski-area/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p></div>
<div class="ots-widget"><iframe id="o58400" width="220" height="345" border="0" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=97&color=b#pennlake.us"></iframe><p><a href="http://www.onthesnow.com/pennsylvania/camelback-mountain-resort/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p></div>
<div class="ots-widget"><iframe id="o58579" width="220" height="345" border="0" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=145&color=b#pennlake.us"></iframe><p><a href="http://www.onthesnow.com/pennsylvania/elk-mountain-ski-resort/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p></div>
<div class="ots-widget"><iframe id="o58279" width="220" height="324" border="0" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=190&color=b#pennlake.us"></iframe><p><a href="http://www.onthesnow.com/pennsylvania/jack-frost/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p></div>
<div class="ots-widget"><iframe id="o58141" width="220" height="345" border="0" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=246&color=b#pennlake.us"></iframe><p><a href="http://www.onthesnow.com/pennsylvania/sno-mountain/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p></div>
<div class="ots-widget"><iframe id="o58536" width="220" height="345" border="0" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=356&color=b#pennlake.us"></iframe><p><a href="http://www.onthesnow.com/pennsylvania/shawnee-mountain-ski-area/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p>
</div>

With this:
Code: [Select]
<div class="ots-widget" align="center">
<table width="90%">
<tr>
<td><iframe id="o58343" width="220" height="324" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=44&amp;color=b#pennlake.us"></iframe>
<p><a href="http://www.onthesnow.com/pennsylvania/big-boulder/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p>
</td>
<td><iframe id="o58490" width="220" height="345" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=62&amp;color=b#pennlake.us"></iframe>
<p><a href="http://www.onthesnow.com/pennsylvania/blue-mountain-ski-area/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p>
</td>
</tr>
<tr>
<td><iframe id="o58400" width="220" height="345" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=97&amp;color=b#pennlake.us"></iframe>
<p><a href="http://www.onthesnow.com/pennsylvania/camelback-mountain-resort/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p>
</td>
<td><iframe id="o58579" width="220" height="345" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=145&amp;color=b#pennlake.us"></iframe>
<p><a href="http://www.onthesnow.com/pennsylvania/elk-mountain-ski-resort/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p>
</td>
</tr>
<tr>
<td><iframe id="o58279" width="220" height="324" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=190&amp;color=b#pennlake.us"></iframe>
<p><a href="http://www.onthesnow.com/pennsylvania/jack-frost/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p>
</td>
<td><iframe id="o58141" width="220" height="345" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=246&amp;color=b#pennlake.us"></iframe>
<p><a href="http://www.onthesnow.com/pennsylvania/sno-mountain/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p>
</td>
</tr>
<tr>
<td><iframe id="o58536" width="220" height="345" frameborder="0" scrolling="no" src="http://www.onthesnow.com/widget/snow?resort=356&amp;color=b#pennlake.us"></iframe>
<p><a href="http://www.onthesnow.com/pennsylvania/shawnee-mountain-ski-area/skireport.html" target="_blank">Powered by OnTheSnow.com</a></p>
</td>
<td></td>
</tr>
</table>
</div>
« Last Edit: December 01, 2014, 09:12:36 PM by Dr Obbins »

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 151
    • MikeyM's Thornhurst PA Weather
Re: Making Columns
« Reply #2 on: December 02, 2014, 09:41:07 AM »
Frank - great idea! I "borrowed" your idea and added it to my site, but not to the menu yet. Thanks    \:D/

http://mikeymsweather.com/wxskireport.php

Thanks Dr Obbins, your code worked GREAT!   =D&gt;

Cheers

 :grin:

MikeyM

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3353
    • Emmett Weather
Re: Making Columns
« Reply #3 on: December 02, 2014, 11:42:38 AM »
yamiacaveman,

Where can one find the resort #'s used in the code? I see what you have done but am looking for a cross-reference that tells me the many resort #'s for a given area. Would like to adapt this for my area here in Lake Tahoe and northern Nevada but trying to find the id's for each resort is pretty time-consuming. Perhaps they are listed somewhere and I just haven't found them yet.

Thanks for the help!
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s147,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam
--- RIPE Atlas Probe - 32849

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 151
    • MikeyM's Thornhurst PA Weather
Re: Making Columns
« Reply #4 on: December 02, 2014, 01:48:54 PM »
The link should help you. If you click on each resort it will give you the code.

http://www.onthesnow.com/lake-tahoe/skireport.html

Good luck

Cheers

 :grin:

MikeyM

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3353
    • Emmett Weather
Re: Making Columns
« Reply #5 on: December 02, 2014, 02:16:32 PM »
Got it - THANKS!

Took a while to get the code for all of the resorts around here but worth the effort in the long run...

Here is what mine looks like (I added the Lake Tahoe Area report along with the individual reports for each resort in the area).
And, it's perfect timing as we are now getting a new batch of snow in the SIERRA...  \:D/ \:D/ \:D/
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s147,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam
--- RIPE Atlas Probe - 32849

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 151
    • MikeyM's Thornhurst PA Weather
Re: Making Columns
« Reply #6 on: December 02, 2014, 03:43:33 PM »
Looks good. Glad it worked out for you. Thanks for Frank for getting us thinking about this nice addition.

Cheers

 :grin:

MikeyM

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3353
    • Emmett Weather
Re: Making Columns
« Reply #7 on: December 02, 2014, 03:50:23 PM »
Looks good. Glad it worked out for you. Thanks for Frank for getting us thinking about this nice addition.

Cheers

 :grin:

MikeyM

How did you add the "new" icon to the Local Ski Reports menu item? I've tried but, so far, haven't been successful. Do you change the flyoutmenu.xml, menubar.php or some other file to get this to work? I've done it before but can't remember how I did it.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s147,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam
--- RIPE Atlas Probe - 32849

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 151
    • MikeyM's Thornhurst PA Weather
Re: Making Columns
« Reply #8 on: December 02, 2014, 04:14:33 PM »
I make the changes in the "flyout-menu.xml".

<item caption="Snow Graphs" link="wxsnowgraph.php"/>
  <item caption="Local Ski Reports" link="wxskireport.php" img="/ajax-images/newspin2_e0.gif"/>
  <item caption="Tropical / NHC" link="wxtropics.php" /> 

Hope that helps

MikeyM 

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3353
    • Emmett Weather
Re: Making Columns
« Reply #9 on: December 02, 2014, 04:18:05 PM »
I make the changes in the "flyout-menu.xml".

<item caption="Snow Graphs" link="wxsnowgraph.php"/>
  <item caption="Local Ski Reports" link="wxskireport.php" img="/ajax-images/newspin2_e0.gif"/>
  <item caption="Tropical / NHC" link="wxtropics.php" /> 

Hope that helps

MikeyM

Aha! I was using img-src which wasn't working - THANKS for the tip!
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s147,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam
--- RIPE Atlas Probe - 32849

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 412
    • Penn Lake Weather
Re: Making Columns
« Reply #10 on: December 02, 2014, 05:11:24 PM »
First I must say thanks to DR Obbins Just What I have been looking for!!!!!!!

2nd Glad everyone enjoys it, but it's not mine, I'm just a copy cat, lol.

For my area, I had to use individual places, for some reason when I put all seven of those resorts only 3 would display. so hence the need to display in tables, again thanks Dr Obbins

That same place -On the Snow use to have a better script and if I can dig it up I will put it up and leave a link to it -- the only problem is that it doesn't seem to update.

yamiacaveman


Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3353
    • Emmett Weather
Re: Making Columns
« Reply #11 on: December 02, 2014, 05:26:12 PM »
Just one more comment on this item. I modified the height for the iframe to be 345. The website generates the code for you but the height they use (649) is way too large for a decent looking table of sites referenced. I selected a width of 220.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s147,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam
--- RIPE Atlas Probe - 32849

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 412
    • Penn Lake Weather
Re: Making Columns
« Reply #12 on: December 02, 2014, 05:48:54 PM »
This is the script that I use to use - I think up until last year. This year it does not seem to be working>.

http://www.pennlake.us/ski%20report.php

Anyway -- if you go to the Gear in the upper right, click on it, then look at the embed - I believe that is the code that is running in the page.

Maybe I'm missing something but it doesn't seem to work, maybe the Southern Hemisphere(?)


yamiacaveman


 

anything