Advertisement:

Navigation

SMF Mod Site

Mod Name:
Weather In Posts v.1
Created By:
Mick.
Type:
New Feature
First Created:
March 18, 2010, 04:23:15 PM
Last Modified:
August 04, 2016, 04:20:15 PM
Latest Version:
1.0
Compatible With:
2.0.4
Total Downloads:
1658

Download this mod

WeatherInPosts v.1.zip (2kB) [1641]
Manual Install Instructions for SMF

Description:

Adds Weather Sticker On Users Posts under their avatars in post view if Location is filled out with city,state or just the zip code.

It uses SMF's integrated "location" field in the profile edit area. 

Note** It only works in 50 USA states.

Note:  Weather Updates are each hour.

How to Use:   Type your location in "modify profile".  ie. Las Vegas,NV

To change text color open:
Themes/default/Display.template.php

Find:

Code: [Select]
   echo'
   <img src="http://www.observingstars.com/weather/hw3.php?forecast=hourly&pands=', $message['member']['location'],  '&config=png&alt=hwicc&hwvttf=&daysonly=1&hwvbg=transparent&hwvtc=black&hwvusettf=0" border=0 width=166 height=77></img> <br />';

Replace:
Code: [Select]
blackwith your desired color. ie. blue, red, yellow.   Hex code also supported.  Do not use the # sign.  Just ie. 224466 is fine.