#1  
Old 02-12-2007, 12:01 AM
fafos's Avatar
fafos fafos is offline
phpFoX Fanatic
 
Join Date: Aug 2006
Posts: 1,307
Thanks: 0
Thanked 64 Times in 46 Posts
Feedback Score: (7)
fafos is on a distinguished road
Default Weather Channel for 1.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.
Change mysite.com with your website's name and GRXX0004 with your zip code.

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
Attached Files
File Type: zip weamod.zip (2.21 MB, 67 views)
__________________
MY FREE MODS

I DON'T make custom works for phpfox!!

Last edited by fafos : 02-12-2007 at 09:29 PM.
  #2  
Old 02-12-2007, 02:39 AM
bobby420 bobby420 is offline
phpFox Fanatic
 
Join Date: Jan 2006
Posts: 510
Thanks: 7
Thanked 17 Times in 14 Posts
Feedback Score: (0)
bobby420 is an unknown quantity at this point
Default

cool!!!!!! thanks!!!!!
  #3  
Old 02-12-2007, 07:45 PM
sweetnector sweetnector is offline
phpFox Guru
 
Join Date: Dec 2006
Posts: 170
Thanks: 0
Thanked 0 Times in 0 Posts
Feedback Score: (0)
sweetnector is infamous around these parts
Default

please help. i don't know but my weather page shows like this:

Code:
Content visible to registered users only.
__________________
  #4  
Old 02-12-2007, 07:50 PM
fafos's Avatar
fafos fafos is offline
phpFoX Fanatic
 
Join Date: Aug 2006
Posts: 1,307
Thanks: 0
Thanked 64 Times in 46 Posts
Feedback Score: (7)
fafos is on a distinguished road
Default

Code:
Content visible to registered users only.
in xoapweather.php give the right path:

var $sitePath = '/var/www/weather'; //set this to the location of xoapWeather i.e. /var/www/weather

this is must be path NOT url...
__________________
MY FREE MODS

I DON'T make custom works for phpfox!!
  #5  
Old 02-12-2007, 08:21 PM
sweetnector sweetnector is offline
phpFox Guru
 
Join Date: Dec 2006
Posts: 170
Thanks: 0
Thanked 0 Times in 0 Posts
Feedback Score: (0)
sweetnector is infamous around these parts
Default

i changed it and its still the same. is there anything else i could be doing wrong? thank you.
__________________
  #6  
Old 02-12-2007, 08:23 PM
fafos's Avatar
fafos fafos is offline
phpFoX Fanatic
 
Join Date: Aug 2006
Posts: 1,307
Thanks: 0
Thanked 64 Times in 46 Posts
Feedback Score: (7)
fafos is on a distinguished road
Default

Code:
Content visible to registered users only.
Do you have take id and key from weather.com?
__________________
MY FREE MODS

I DON'T make custom works for phpfox!!
  #7  
Old 02-12-2007, 08:24 PM
sweetnector sweetnector is offline
phpFox Guru
 
Join Date: Dec 2006
Posts: 170
Thanks: 0
Thanked 0 Times in 0 Posts
Feedback Score: (0)
sweetnector is infamous around these parts
Default

yes i got from there and i inserted in the file.
__________________
  #8  
Old 02-12-2007, 08:29 PM
fafos's Avatar
fafos fafos is offline
phpFoX Fanatic
 
Join Date: Aug 2006
Posts: 1,307
Thanks: 0
Thanked 64 Times in 46 Posts
Feedback Score: (7)
fafos is on a distinguished road
Default

Code:
Content visible to registered users only.
Send me in pm the settings of xoapweather.php
__________________
MY FREE MODS

I DON'T make custom works for phpfox!!
  #9  
Old 02-12-2007, 09:33 PM
sweetnector sweetnector is offline
phpFox Guru
 
Join Date: Dec 2006
Posts: 170
Thanks: 0
Thanked 0 Times in 0 Posts
Feedback Score: (0)
sweetnector is infamous around these parts
Default

It looks awesome now. Thank you.

Code:
Content visible to registered users only.
__________________
  #10  
Old 02-12-2007, 09:35 PM
digital_sc4rz digital_sc4rz is offline
phpFoX Fanatic
 
Join Date: May 2006
Location: Perthshire (Scotland)
Posts: 1,056
Thanks: 0
Thanked 0 Times in 0 Posts
Feedback Score: (5)
digital_sc4rz is on a distinguished road
Default

Good mod mate,, Going to take a look at this...
Code:
Content visible to registered users only.
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:01 PM.