Installation : STEP 4 : Set Up Give Away Templates

NOTE: This step is only for users who want to allow other web sites to easily add your HWimage images to their web site.

HWimage has a method to allow you to allow others to easily add the HWimage images to their web sites. To set this up:

Goto the HAMweather web based admin and clcik the "Special templates" link. Next click the "Pass Templates" link.  On this page you will need to set up the three pass templates used by HWimage. You will need to add the pass templates hwi_zone, hwi_zandh and hwi_current. (NOTE: there is a very good chance they may already be entered into the pass template settings)

If the hwi_xxxx pass templates are not in the table then click on the "Add new" link. Here you can now add a new .the pass template. Enter in "hwi_zone" into the Nick field and then hwi_zone.html into the template field. Press the submit button. The repeast this forl "hwi_zandh" and "hwi_current".

Now once this is done you will need to add a link to these new pass templates to   your normla HAMweather  zone.html, zandh.html and metar.html templates.

Add the following link to the zone.html template:

<a href="%%scripturl%%?user=%%user%%&theme=%%theme%%&forecast=pass&pass=hwi_zone&place=%%lplace%%
&state=%%lstate%%&country=%%lcountry%%&zipcode=%%zipcode%%&icao=%%icao%%&metric=%%metric%%">
Click here to add this forecast to your web site</a>

Add the following link to your zandh.html template:

<a href="%%scripturl%%?user=%%user%%&theme=%%theme%%&forecast=pass&pass=hwi_zandh&place=%%lplace%%
&state=%%lstate%%&country=%%lcountry%%&zipcode=%%zipcode%%&icao=%%icao%%&metric=%%metric%%">
Click here to add this forecast to your web site</a>

And Finally add the following to your metar.html template:

<a href="%%scripturl%%?user=%%user%%&theme=%%theme%%&forecast=pass&pass=hwi_current&place=%%lplace%%
&state=%%lstate%%&country=%%lcountry%%&zipcode=%%zipcode%%&icao=%%icao%%&metric=%%metric%%">
Click here to add this forecast to your web site</a>

Now when a user requests a forecast they will see the link which takes them to the appropriate hwi_xxx template that allows them to add the wetaher icon to their website.