Author Topic: Weather module  (Read 6989 times)

Offline Societatea

  • Full Member
  • *****
  • Posts: 32
  • Karma: +0/-0
Weather module
« on: August 15, 2013, 03:34:03 PM »
phpEnter Web Hosting
Hi all

I m using the bluestyle theme!
Does anyone know how can I make it showing up the weather module  in romanian language? / ex. bucharest and in celsius instead of Fahrenheit ?

Thank you very much!

Offline Jeremy

  • Full Member
  • *****
  • Posts: 238
  • Karma: +1/-0
Re: Weather module
« Reply #1 on: August 15, 2013, 05:39:21 PM »
index.php

replace this code:

Quote
USNY0996

with this:

Quote
ROXX0003
Social Bookmarking Script markerpaper.com

Offline Societatea

  • Full Member
  • *****
  • Posts: 32
  • Karma: +0/-0
Re: Weather module
« Reply #2 on: August 15, 2013, 06:45:41 PM »
Hi Jeremy
I have this code already , but it doesn t convert fahreinheit to celsius and is not translating into romanian....
anyway the translation is not so important, but convert fahrenheit to celsius is very important for me.

Can you help me with this?
thanks

Offline johnsmith

  • Jr. Member
  • *****
  • Posts: 14
  • Karma: +0/-0
Re: Weather module
« Reply #3 on: August 15, 2013, 09:32:37 PM »
Hello,


1.
Code: [Select]
new weather("USNY0996", 3600, "F", $cachedir);
replace with

Code: [Select]
new weather("USNY0996", 3600, "C", $cachedir);
2. 
Code: [Select]
print "Low F:
replace with:

Code: [Select]
print "Low C:
3. 
Code: [Select]
print "High F:
replace with:

Code: [Select]
print "High C:

4.
Code: [Select]
$weather_chile->forecast['CURRENT']['TEMP']." F

replace with


Code: [Select]
$weather_chile->forecast['CURRENT']['TEMP']." C

Offline Societatea

  • Full Member
  • *****
  • Posts: 32
  • Karma: +0/-0
Re: Weather module
« Reply #4 on: August 16, 2013, 12:14:43 AM »
Hi there

I  made all the changes but is not converting fahrenheit to celsius , all is hapening is just replacing F with C, ...and that s it.

Any others ideas guys, please :(... ?! ...anyone?!...

Offline pedja

  • Jr. Member
  • *****
  • Posts: 8
  • Karma: +0/-0
Re: Weather module
« Reply #5 on: August 16, 2013, 02:35:31 AM »
Done  :)

Offline Societatea

  • Full Member
  • *****
  • Posts: 32
  • Karma: +0/-0
Re: Weather module
« Reply #6 on: August 16, 2013, 08:47:27 AM »
Hi Pedja :)

Thank you very much !

Offline macchia

  • Newbie
  • *****
  • Posts: 1
  • Karma: +0/-0
Re: Weather module
« Reply #7 on: December 03, 2014, 03:46:07 PM »
i cant change F to C

Offline aleks

  • Administrator
  • Full Member
  • *****
  • Posts: 264
  • Karma: +0/-0
Re: Weather module
« Reply #8 on: December 03, 2014, 05:28:53 PM »
i cant change F to C

Please check your inbox.