phpFox Inc. © 2010
|
|||||||
| Register | Feedbacks | Blog | Members | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Weather channel is a mod for show the current weather and the X days Forecast for any location in the world. The script is from xoapweather.com famus script but now dont exist. The weather infos are from Weather.com
Features: 1. Current weather (temp, feel like, Humidity, Wind Speed, Barometer, Dewpoint, Visibility, UV Index, Sunrise, Sunset) 2. 1 to 10 days forecast 3. forecast per day and night for all days 4. Easy translate (by default I have 4 languages: English, German, Catalan and Greek ofcource )Demo: HERE Price: 1.000.000$ Installation: 1. Download the weamod.zip in your pc and unzip. 2. For have access to weather.com infos you must signup in this site: http://www.weather.com/services/oap.html 3. After signup, you see a script who give this site and in the script you find a Key and a Partner ID. Keep these infos and use to next step. 4. Open file weather/xoapweather.php (in your weamod) and start give your infos in there (the key, ID, paths etc) DONT edit the fields for database (mysql) we dont use them! 5. Open file /inc/template/new/weatherindex.tpl. Edit the $_GET['lang'] = "en"; for your language: en=English, de=German, ca=Catalan and gr=Greek Next you see this: $weather->loadXoap(GRXX0004,$_GET['display'],1,$_GET['lang']); GRXX0004 is the zip code who give the weather.com for a location (GRXX0004 is for Athens, Greece). You must go to weather com and find the location who you want show by deafult the weather mod. E.x. for New York the url is this: http://www.weather.com/outlook/trave...raveler/local/USNY0996?from=search and the zip code is: USNY0996 Replace GRXX0004 with your zip code. Upload all files who are in weamod (not the folder weamod) on your phpfox root. Give CHMOD = 777 to folder /weather/wxCache Open /inc/template/new/main_header.tpl and add this source somewere in your menu bar: Code:
Content visible to registered users only. the mod is ready.. Menus: In /inc/template/new/weatherindex.tpl are 3 drop down menus.. These are for example.. you can make your own as your wish (e.x. a menu for the cities and towns of your state, a menu for the cities of your country and a menu for biggest cities of the world). You must find in weather com the zip code for any city do you like to add: <option value="index.php?display=cd&inst=1&zip=GRXX0004">A thens</option> Just add the name of city (e.x. Athens) and the zip code (ex GRXX0004) Have fun ![]() Last edited by fafos : 02-12-2007 at 09:29 PM.
|
|
#2
|
|||
|
|||
|
cool!!!!!! thanks!!!!!
|
|
#3
|
|||
|
|||
|
please help. i don't know but my weather page shows like this:
Code:
Content visible to registered users only.
__________________
|
|
#4
|
||||
|
||||
|
Code:
Content visible to registered users only. var $sitePath = '/var/www/weather'; //set this to the location of xoapWeather i.e. /var/www/weather this is must be path NOT url...
|
|
#5
|
|||
|
|||
|
i changed it and its still the same. is there anything else i could be doing wrong? thank you.
__________________
|
|
#6
|
||||
|
||||
|
Code:
Content visible to registered users only.
|
|
#7
|
|||
|
|||
|
yes i got from there and i inserted in the file.
__________________
|
|
#8
|
||||
|
||||
|
Code:
Content visible to registered users only.
|
|
#9
|
|||
|
|||
|
It looks awesome now. Thank you.
Code:
Content visible to registered users only.
__________________
|
|
#10
|
|||
|
|||
|
Good mod mate,, Going to take a look at this...
Code:
Content visible to registered users only.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|