• English
  • Nederlands

User Tools

Site Tools


Install the Leuven-Template step 7

There are seven steps to follow described in this “How to”

  1. Upload the needed scripts to the root of your website
  2. Set the permissions of the folders
  3. Test the webserver first
  4. Manually change the settings files
  5. Configure the upload of weather-data
  6. The menu system
  7. You are here

Almost finished

Remove the yellow box or not

You can now remove the yellow box as the site is runnig correctly as is and own your weather-data is uploaded.

The settings for this

# STANDARD      your own yellow message box. This extra box can be used for messages about maintenance etc. 
#               When you first start implementing the template a message about building a new website is displayed				
$SITE['maintenanceShow']	= true; 	//#####  display this file always (true) when it exists
$SITE['maintenanceTxt']		= './_my_texts/maintenance.txt';   //  you can modify this text as you want or link to another file

There are tho different ways to do this:

  1. Set $SITE['maintenanceShow'] to false
  2. Change the contents of weather27/_my_texts/maintenance.txt

The second possibillity is accomplished leaving the $SITE['maintenanceShow'] set to true, while by adding the word none as the first word in the file weather27/_my_texts/maintenance.txt.

You could, as I do, use this yellow box for information about new pages added or by a warning that certain pages are not present because of problems with a forecast-organization. So I add the word none when the information is not needed. And remove the none text after adapting the remainder of the text to the new situation. I have only to remotely change one file (maintenance.txt) and not the settings file.

Sounds more difficult than it realy is and it makes the sytem more reliable. A typing error in the settings can sometimes bring down the whole website. A typing error in maintenance.txt is not noticed by yhe visitors.

Direct visitors to the template scripts

If you want your visitors of www.your-website-.com to go directly to the startpage of your new web-ste www.your-website-.com/weather27/index.php you can accomplish that in different ways. The more technical way is changing the .htaccess or DNS settings of your web-site. Not all providers let you do that.

The simple way is the one the template uses. In weather27/_my_scripts/ you find a one-line script zz_index.php

<META HTTP-EQUIV="refresh" CONTENT="1; url=weather27/index.php">

You should now

  • Check that file if it has these contents only
  • Optional: if you changed the install folder, adapt the one line to point to your new folder and not to weather27/
  • rename that file to index.php

If you now copy that fiel to the root of your website, your visitors will be redirected automatically to the weather27/index.php which starts your template website.

All well with YoWindow ?

If yowindow is not displaying current weather values and is showing an error message “no weather data” you have to rename the zz_crossdomain.xml file you will find also in weather27/_my_scripts and move / copy it in the root of your website.

See this YoWindow topic for more information


What is “debug mode”? It displays a lot of extra information as comments in the page html which is send from your website to the browser of your visitor. This comes in very handy when you are trying to find an error in a setting a.s.o.

Set debug off

If you are finished adapting the template to your liking and are running in a production environment it is better to switch debug mode off. This is done in the _my_texts/wsUserSettings.php script at line 17/18 by removing the comment mark

$SITE['wsDebug']  = true;  // ##### 
#$SITE['wsDebug'] = false; // remove comment mark at position 1 when you are fully satisfied with your site.

Now far less debug information is sent to the browser which improves response times.

Set debug on the fast way

If you later on run into a problem for which you want all debug information, you can switch debug on for one session by adding &debug at the end of your url. So http://www.weerstation-wilsele.be/index.php?p=10&debug will send the extra inforation you need at that moment.

en/how_to_install7.txt · Last modified: 2015/06/17 10:50 by wvdkuil