Author Topic: Add banner to simple pages  (Read 9267 times)

busch

  • Calm
  • *
  • Posts: 1
    • www.buschheuer.de/wetter
Add banner to simple pages
« on: September 14, 2013, 10:12:20 AM »
As an user that doesn't spend too much time in building web pages I would appreciate have the banner on my simple web page. Also it would be nice to have more web pages to choose.

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2911
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: Add banner to simple pages
« Reply #1 on: September 14, 2013, 10:44:47 PM »
Thanks for the suggestion, I'll add it to the feature request list.

Cheers,
Stu.

idunn

  • Strong Breeze
  • ***
  • Posts: 158
  • name: idunn
    • icantono2
    • Magpie Hill
  • Station Details: WS1080, iMac 10.9.5, Canon Powershot A510 zoomed with gphoto2, located at 950m in Gross Switzerland, Webcam view SE to Alps on magpie-hill.com on WeatherCloud (MagpieHill) and Wunderground (ID icantono2)
Re: Add banner to simple pages
« Reply #2 on: September 13, 2016, 02:25:20 PM »
Yes me too. I want the banner possibility on the Simple Web page.
Irving

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2911
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: Add banner to simple pages
« Reply #3 on: September 13, 2016, 09:36:45 PM »
You can probably work around this by simply setting the custom web FTP settings to exactly the same as your simple web settings.

I haven't actually tried this, but in theory it would mean the banner generator uploads your banner to your simple web-site.

idunn

  • Strong Breeze
  • ***
  • Posts: 158
  • name: idunn
    • icantono2
    • Magpie Hill
  • Station Details: WS1080, iMac 10.9.5, Canon Powershot A510 zoomed with gphoto2, located at 950m in Gross Switzerland, Webcam view SE to Alps on magpie-hill.com on WeatherCloud (MagpieHill) and Wunderground (ID icantono2)
Re: Add banner to simple pages
« Reply #4 on: September 15, 2016, 09:18:54 AM »
Somebody please try this suggested method of getting the banner from the custom web to the simple web, and if it works tell me how to do it.
Regards, Irving

xairbusdriver

  • Storm
  • *****
  • Posts: 3126
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
Re: Add banner to simple pages
« Reply #5 on: September 15, 2016, 04:30:42 PM »
I believe you said you are using the "Simple Web" function. Is that correct?
You are now also having WC create/update a 'banner', correct?

If the above are both true, it should then be simple to add a small bit of text in the cleverly labeled "Text" tab of the WC "Simple Web" Prefs that will display the image on that Simple Web page. All that is required is the use of the html image tag "<img>".

Unfortunately, the above was based on not understanding that the banner is currently only installed in and uploaded from the Custom Web output folder. (see page 87 of The Manual) Therefore, it appears you need to create a 'dummy' Custom Web site to actually get your banner uploaded. That 'dummy' site can be something that doesn't actually even get seen in any browser. It will be used to simply instruct WC to upload your banner. this is not really difficult, but will require you to create a simple ".txt" file which is a bit more than detailed than is suitable for this thread. In actuality, html is not much different than using the 'styling' buttons here, in the 'full editor' window. However, once this is done, you can use the text below to get your banner displayed in your current web site.

You already know the url to your web page (http://www.magpie-hill.com). The following 'code' should display your banner somewhere on your page.
Code: [Select]
<img src="WeatherCatBanner.jpg">BTW, I'm assuming WC places the banner image in the root level of your site.

Right now, I don't think you are able to effectively position anything to precisely. However, the Manual illustrates using the h4 header tag, so WC may be able to 'read the text and put 'header' info nearer the top of its generated html. Perhaps anyone already using the "Simple Web" facility can further explain its capabilities.

BTW, you can view your own web page by using many apps, the easiest would be Safari with its "Develop" menu enabled. Just select "Show Page Source" in that menu. To enable that menu, open Safari Prefs, click the Advanced tab and tick the box at the very bottom of that window ("Show Develop menu in menu bar").
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system


WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2911
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: Add banner to simple pages
« Reply #6 on: September 18, 2016, 11:32:18 AM »
All you should need to do is:
1. Go to the custom web pane of the preferences. Even with custom web disabled you'll note you can still edit the FTP details.
2. Enter these FTP details exactly as per your simple web ftp settings.

Then enable FTP in the banner generator - it should now be ftp'd to your simple pages directory on your server on a regular basis (from where you can link to it etc).

idunn

  • Strong Breeze
  • ***
  • Posts: 158
  • name: idunn
    • icantono2
    • Magpie Hill
  • Station Details: WS1080, iMac 10.9.5, Canon Powershot A510 zoomed with gphoto2, located at 950m in Gross Switzerland, Webcam view SE to Alps on magpie-hill.com on WeatherCloud (MagpieHill) and Wunderground (ID icantono2)
Re: Add banner to simple pages
« Reply #7 on: September 18, 2016, 09:24:20 PM »
Hi Stu,
I was able to follow your instructions and can now link to my banner with www.magpie-hill.com/weathercatbanner.jpg Now I am wondering how I can effectively use it for something cool. I guess there is no way to put it on my Simple Web. But maybe for something else sufficiently simple.
Thanks, Irving

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Add it to forum signature? (Re: Add banner to simple pages)
« Reply #8 on: September 18, 2016, 11:42:29 PM »
Hi Irving and WeatherCat cool-cats . . . . .  8)

I was able to follow your instructions and can now link to my banner with www.magpie-hill.com/weathercatbanner.jpg

I just tired to look at your banner, but I get a page not found error.  Is your banner a jpg or perhaps another format?

Now I am wondering how I can effectively use it for something cool.

One cool use of your banner is to include it in your signature of your forum.  I gave you rough instructions here:

http://athena.trixology.com/index.php?topic=2267.msg21727#msg21727

Let us know if you need more information to make it work.

Cheers, Edouard  [cheers1]

xairbusdriver

  • Storm
  • *****
  • Posts: 3126
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
Re: Add banner to simple pages
« Reply #9 on: September 18, 2016, 11:56:01 PM »
Now that you have WC uploading your banner, just add the code I posted <above> to whatever you have in the "Notes:" section of the WC Prefs->Simple Web->Text. If the sample in the Manual is any guide, WC constrains its iframes so that they appear after/under anything you enter in the "Notes:" area. You don't have a lot of control over where it goes on the page, of course. This might help you center the banner on whatever 'line' in ends up on.
Code: [Select]
<img style="margin: 0 auto;" src="WeatherCatBanner.jpg">Just copy this text and paste it into the "Notes:" area of the WC Prefs->Simple Web->Text. [removed link to the now castly photobucket.com site]
« Last Edit: December 30, 2017, 05:49:33 PM by xairbusdriver »
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system


TechnoMonkey

  • Strong Breeze
  • ***
  • Posts: 127
    • EW9323
    • KTXARANS6
    • TechnoMonkeys Weather
  • Station Details: La Crosse WS-2315 / High Sierra Server / Mac Mini 2.3 GHz Intel Core i5/ 8GB Ram / OS 120GB SSD / Home Folder 500GB FireWire / DATA 8TB RAID 5 / 1TB TIME CAPSULE
Re: Add banner to simple pages
« Reply #10 on: September 19, 2016, 12:20:16 AM »
It seems to me that it would be a whole lot simpler to just use the custom pages, but if your preference is to redesign the wheel then with a COPY of the weather cat program, just right click and open package.  Go the to resources in the contents and the simple web pages are there.  Just add the WC banner command to one of the pages where you want it and try that.

Again, it would be so much simpler to use the custom pages.  You could just copy the resource html pages to your WCHTML folder and run the custom pages and they will be exactly the same as simple pages.

I have not tried this, but 5 minutes of checking it out shows that it should work just fine.

idunn

  • Strong Breeze
  • ***
  • Posts: 158
  • name: idunn
    • icantono2
    • Magpie Hill
  • Station Details: WS1080, iMac 10.9.5, Canon Powershot A510 zoomed with gphoto2, located at 950m in Gross Switzerland, Webcam view SE to Alps on magpie-hill.com on WeatherCloud (MagpieHill) and Wunderground (ID icantono2)
Re: Add banner to simple pages
« Reply #11 on: September 19, 2016, 08:56:43 AM »
Hi Xair and Techno,

Tried adding the line from Xair to my text below, but it gave only a little blue square.

<H1>Data for Magpie Hill PWS  Location: Gross, Einsiedeln, Switzerland, Altitude: 908m, Location: 47.119 N, 8.772 E.  Webcam faces SE toward Sihlsee (889m) and Schwyzer Alps (2092m). Weather Instrument WS1080, Software on Mac: Weathercat 2.31, Camera Canon A510, Software gphoto2,  Wunderground PWS ID icantono2, WeatherCloud</H1>
<img style=?margin: 0 auto;? src=?WeatherCatBanner.jpg?>

Techno, where would I get such a copy of the program? Maybe not available to me.

Have yet to try the suggestions from the car guy in Orinda. But found that the caps in WeatherCatBanner are necessary. Try http://www.magpie-hill.com/WeatherCatBanner.jpg

Thanks for all the help.  Irving

wurzelmac

  • Storm
  • *****
  • Posts: 1361
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Add banner to simple pages
« Reply #12 on: September 19, 2016, 12:07:49 PM »
<img style=?margin: 0 auto;? src=?WeatherCatBanner.jpg?>

Try
Code: [Select]
<img src="http://www.magpie-hill.com/WeatherCatBanner.jpg">instead.

Good Luck!
Reinhard


xairbusdriver

  • Storm
  • *****
  • Posts: 3126
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
Re: Add banner to simple pages
« Reply #13 on: September 19, 2016, 02:29:05 PM »
Thanks Reinhard, a full URL is always better. [tup] [blush]
Irving, that "little blue square" is your browsers way of saying, "I can't find that image!". ;) Reinhard's code should fix that.
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system


TechnoMonkey

  • Strong Breeze
  • ***
  • Posts: 127
    • EW9323
    • KTXARANS6
    • TechnoMonkeys Weather
  • Station Details: La Crosse WS-2315 / High Sierra Server / Mac Mini 2.3 GHz Intel Core i5/ 8GB Ram / OS 120GB SSD / Home Folder 500GB FireWire / DATA 8TB RAID 5 / 1TB TIME CAPSULE
Re: Add banner to simple pages
« Reply #14 on: September 19, 2016, 04:16:38 PM »
Hi Xair and Techno,
Techno, where would I get such a copy of the program? Maybe not available to me.

What program are you speaking of?  I only spoke of the WC program.  If you have any Mac running WC, then you have everything you need.