Author Topic: Smal problem with Weather sunset template  (Read 21429 times)

Offline Toremann

  • Jr. Member
  • **
  • Posts: 16
    • Jensskogan vær
Smal problem with Weather sunset template
« on: June 16, 2013, 05:11:37 AM »
Hello Everyone

Have have a brand new site upp running at http://jensskogan.com but i have a minor problem, my site is in Norwegian, and i want the record data to be presented like:
"Kl: 20:27 Den 13 juni" not " at 20:27 on 13 juni 2013"
I have edited wt_month_inc and wt_data_inc, it looks correct until i get legal data from cumulus then it change over to from "Kl: 20:27 Den 13 juni" to " at 20:27 on 13 juni 2013"

Could anyone hlep me out whit this problem

Best Regards
Tore

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Smal problem with Weather sunset template
« Reply #1 on: June 16, 2013, 06:08:11 AM »
Hi Tore,

In file begin, you'll find these lines:

// Date formatted
$to = "to ";  // Ex: to 20 may
$pre_time = "at ";  // Ex: at 10:45
$pre_date = " on ";  // Ex:  on 25 may
$only_date = "On ";  // Ex: On 25 may

Simply change strings between "...", so:
$to = "KI ";  // Ex: to 20 may

Regards,
Jacques
Please, consider supporting this site 

Offline Toremann

  • Jr. Member
  • **
  • Posts: 16
    • Jensskogan vær
Re: Smal problem with Weather sunset template
« Reply #2 on: June 16, 2013, 06:37:20 AM »
Hello Jacques

This is how my setup is:

// Date formatted
$to = utf8_encode("Kl: ");  // Ex: to 20 may
$pre_time = utf8_encode("Kl: ");  // Ex: at 10:45
$pre_date = utf8_encode(" Den ");  // Ex:  on 25 may
$only_date = utf8_encode("Den ");  // Ex: On 25 may

I have try to change it to:
// Date formatted
$to = "Kl: ";  // Ex: to 20 may
$pre_time = "kl: ";  // Ex: at 10:45
$pre_date = " , den ";  // Ex:  on 25 may
$only_date = ", den ";  // Ex: On 25 may
 but its the same, you will see it at: http://jenskogan.com

BTW: forgott to say its only on the "records" tab it get messed up

As you may see the readings are correct in emty months ( before my station got online in may)
But after that its seems to be wrong

Best regards
Tore
« Last Edit: June 16, 2013, 06:44:59 AM by Toremann »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Smal problem with Weather sunset template
« Reply #3 on: June 16, 2013, 09:30:33 AM »
Hi Tore,

I saw your site and wt_data_inc.php file is ok!
Your problem is with wt_month_inc.php

Compare options on this 2 files, something is different!

Regards,
Jacques
Please, consider supporting this site 

Offline Toremann

  • Jr. Member
  • **
  • Posts: 16
    • Jensskogan vær
Re: Smal problem with Weather sunset template
« Reply #4 on: June 16, 2013, 01:47:06 PM »
Hello again

I have now compared the two files and they are the same

Please se attached files

Maby you can se whats wrong

Regards
Tore
« Last Edit: June 17, 2013, 04:01:23 AM by Toremann »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Smal problem with Weather sunset template
« Reply #5 on: June 17, 2013, 05:48:38 PM »
Hi Tore,

a new version 1.1 of that file is available in your manage.php page.
(Template Manager Module). See if that solve your problem.

Regards,
Jacques
Please, consider supporting this site 

Offline Toremann

  • Jr. Member
  • **
  • Posts: 16
    • Jensskogan vær
Re: Smal problem with Weather sunset template
« Reply #6 on: June 18, 2013, 01:10:26 AM »
Hello Again

I have updatet the file whit no luck, but i see i get som error in the manage.php page
Could you have a look, no changed pass..

Best regards
Tore
« Last Edit: June 18, 2013, 01:12:00 AM by Toremann »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Smal problem with Weather sunset template
« Reply #7 on: June 18, 2013, 11:10:15 AM »
Hi Tore,

It is normal that you have some errors in manage.php.

The data files are not processed, so Php see strange characters
(Cumulus webtags) and count them for errors. Then, remove files
that you aren't using you'll see a better management without them

These "false errors" are there from the beginning since I have no time
to look at it... but this summer a major update will solve it.

Regards,
Jacques
Please, consider supporting this site 

Offline Toremann

  • Jr. Member
  • **
  • Posts: 16
    • Jensskogan vær
Re: Smal problem with Weather sunset template
« Reply #8 on: June 19, 2013, 06:21:12 AM »
Hello Jacques

Could upgrading to Cumuls 1.9.4 be a solution to get the tags displayed correctly on the Record tab?

Regards

Tore
« Last Edit: June 19, 2013, 02:26:12 PM by Toremann »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Smal problem with Weather sunset template
« Reply #9 on: June 19, 2013, 04:22:13 PM »
Hi Tore,

I don't think that the version 1.9.4 could do something good for it!
Double check that your using the good file.. maybe a mix in files?

Regards,
Jacques
Please, consider supporting this site 

Offline Toremann

  • Jr. Member
  • **
  • Posts: 16
    • Jensskogan vær
Re: Smal problem with Weather sunset template
« Reply #10 on: June 23, 2013, 04:24:42 AM »
Hello Jacques

Somthing strange is going on here.

All of a sudden the timstamp have disapereed on today and yesterdays tab

Now it shows:                              Lavest trykk   1000,3 hPa   14:21

I am almoust shure it was:          Lavest trykk   1000,3 hPa   at 14:21

And!!! i have not changed anything

Any explanation why?????
Regards
Tore
« Last Edit: June 23, 2013, 04:44:41 AM by Toremann »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Smal problem with Weather sunset template
« Reply #11 on: June 23, 2013, 05:42:46 AM »
Hi Tore,

Your file wt_months_inc.php display date ok. So, only wt_data_inc.php
need verification, see if you see these lines at file begin:

// Date formatted
$to = "to ";  // Ex: to 20 may
$pre_time = "at ";  // Ex: at 10:45
$pre_date = " on ";  // Ex:  on 25 may
$only_date = "On ";  // Ex: On 25 may

These are the date formatting lines.

Regards,
Jacques
Please, consider supporting this site 

Offline Toremann

  • Jr. Member
  • **
  • Posts: 16
    • Jensskogan vær
Re: Smal problem with Weather sunset template
« Reply #12 on: June 24, 2013, 12:56:52 PM »
Hello again

I dont know what i have done but then i try to change language on my site i get a looooot of
php error

Like this: Notice: Undefined variable: Tr_monthnames in C:\xampp\htdocs\vaer\wt_data_inc.php on line 492
and so on,, i have try to replase wt_data_inc.php but i still get this error
The only language who dont give this error is Norwegain who is set as default language

I dont know what to do??? :-X

Regards
Tore

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Smal problem with Weather sunset template
« Reply #13 on: June 25, 2013, 07:04:26 AM »
Hi Tore,

You need to update all your language files to the newest version.
Keep your Template updated, by using your Template Manager Module (manage.php)
(update on data files wt_..._inc.php, need to be remove from web as they are local files)

Best regards,
Jacques
Please, consider supporting this site 

Offline Toremann

  • Jr. Member
  • **
  • Posts: 16
    • Jensskogan vær
Re: Smal problem with Weather sunset template
« Reply #14 on: July 03, 2013, 04:03:42 AM »
Hello Jacques
A little question

The weather forcast on the front of my page show a strange letter for spesial scandinavian ÆØÅ

What file should i edit to get this correct,, i know i need to set in the htmls code for this letters to get this correct, but i am not able to finde the correct  file

Regards
Tore