Hi,
based on the emails I get, there are several things I would just like to make a bit more clear to prevent confusion or to help you customize the template.
1. Lang functionWhen customizing anything in the script,
do not use the lang() function. I appologize, it did not occur to me, I should have explained this earlier.
Let me explain how this function works, what it does and why it causes problems to many of you (judging on the number of emails I get).
Basically, in almost all pages of the template, you will often see the lang function and the actual command will look something like this:
<?php echo lang("temperature", "c")?>
The lang function is a function, which instead of hard-coding some text, looks up the particular expression passed to it as the first parameter in the language files for the particular languages. In the above case, the lang function would look for the word "temperature" in the language strings inside the language files. The other parameter ("c") just tells it to capitalize this word (the other possibilities are "l" for lowercase, "u" for uppercase and "w" for capitalizing all words in a phrase). The point of this function is to make sure that the template shows in the language specified by either you (default) or the one chosen by the user.
The above code will therefore sometimes result in "temperature", sometimes in "Temperatur", sometimes in "Teplota" etc. etc.
However! Obviously you cannot use this function for your custom words and pages - only in case it uses words that are already used by the template - i.e. for example temperature, humidity etc. But, lets say you want to add a page in the menu, or anywhere else and call it "extreme weather". Then, if you write:
<?php echo lang("extreme weather","c")?>
you are telling the script - look up extreme weather in the whatever language file that is set and display it. But the problem obviously is that this phrase does not exist in these files, so the result is, it just doesnt produce anything and you get a blank button/heading etc. Theoretically, you could add this new string in the language file, but remember, that you would then have to add it in the other languages as well, which I guess would be problematic, so even if you add this to the gb.php (the English language file), it will show up correctly, but as soon as someone accesses your page and chooses a different language, they would again see nothing.
So the solution is simple - do not use this code and instead of the above examples, do not use PHP at all and just write "Extreme weather". The only disadvantage will be that this will show regardless of the user language setting - in English. However, there is really no other way, unless you want to translate it to each language currently available in the template.
I hope it makes sense and I once again appologize for not specifying this earlier.
2. Plugin compatibility I noticed that there is one little problem with compatibility. The newly published plugins were already designed for version 2.0. I said they are still compatible with version 1.2. That still holds, I have only discovered one issue and so, if you are still running 1.2, I would recommend upgrading, but even if you do not want to, the actual problem is that one of the plugins uses a styling that is only specified in the style sheet of version 2.0. In order for this to work properly in 2.0, just add the following lines into the main.css file in the "css" directory:
.tableDiv{
display: table;
}
.rowDiv{
display: table-row;
}
.cellDiv{
display: table-cell;
vertical-align: middle;
}
3. Version codenamesI was asked if there will be a version codenamed "Apple". So just to prevent any sort of confusion with regards to compatibility or people thinking this is a special version for particular devices, for obvious reasons I decided there will not be any version called "Apple". Currently there are no major updates planned, there might be some minor updates (2.1, 2.2,...) but those will be very simple to implement and so dont worry you will have to change everything again. I havent decided about the next name
Maybe... I dont know Blackberry?
4. LicensingI have also been asked what are the licensing details of this template. I will include this information in the next update, but for now, I will just try to make it simple, so the basic rules are: The whole template, including plugins, support etc. is offered for free as a freeware (with an optional donation). The template MAY be modified in any way to suit your likings/needs, please do not delete the little link in the footer backlinking to meteotemplate.com. This is purely because I would be happy if more people used it (I dont have any ads on my site, so this is really just to help people, I personally dont have anything from higher traffic). As mentioned above, you can contact me anytime and I will try to help you with either setting it up or even custom pages, create custom icons etc. However, I would rather you do not redistribute the template yourself. If you wish to recommend this to someone or someone asks you about it, please refer them to meteotemplate.com. And there is one last important thing though. The template may not be used for any sort of commercial purposes, unless you discuss the details about this with me.
Thanks and I hope you enjoy it.
Btw. there is a new plugin coming very soon, which Im sure you will love, I personally must say it surpassed my expectations and Im extremely happy with the result. There might also be a little surprise for you very soon, but I will keep that as a surprise