Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2496)
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:
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:
black
with your desired color. ie. blue, red, yellow. Hex code also supported. Do not use the # sign. Just ie. 224466 is fine.
Is there anyway this could be adapted for use in the UK?
Quote from: welshbikers on April 18, 2010, 10:44:10 AM
Is there anyway this could be adapted for use in the UK?
I dont see why not.. the problem would be finding a UK based website that offers "weather stickers".
I could google that to see if its available.
Quote from: welshbikers on April 18, 2010, 10:44:10 AM
Is there anyway this could be adapted for use in the UK?
I found a provider.... let me put it together and load it here.
What about the Netherlands?
Great add on Bluedevil, thanks for putting this together! 8)
Works great!
Cutter
For testing purposes..... i need a UK / Netherlands city and country.
UK city: London, Edinburgh, Cardiff, Birmingham
Country... well, it's made up of England, Wales, Scotland, Northern Ireland. If you're after "states", they're called counties, and some examples are West Sussex, Devon, Somerset, Cornwall.
I updated the ZIP for a better image look. Now it uses a different provider and a transparent background. See post #1.
Uninstall previous ZIP and delete from the mod list in admin. Install new ZIP.
......im still working on a international weather sticker.
Quote from: bluedevil on April 18, 2010, 10:50:45 AM
Quote from: welshbikers on April 18, 2010, 10:44:10 AM
Is there anyway this could be adapted for use in the UK?
I found a provider.... let me put it together and load it here.
Fair play now thats what i call support ;D
Well done that man!
Would love this for an aussie forum if possible.
What about Canadian weather?
Looks like you're going to get requests for alot of countries mate. lol
Good job with this mod, those which 'were' using the old version will be happy to see this. :)
Quote from: Sabre™ on April 22, 2010, 04:17:47 AM
Looks like you're going to get requests for alot of countries mate. lol
Good job with this mod, those which 'were' using the old version will be happy to see this. :)
Thanx Sabre.
Im still working on locating a website that offers international weather stickers. The problem i found is, these international weather stickers have the website's logo on them. Im not liking that. ...and others parse different than the US ones.
Ive been thinking of adding my own images in a separate folder and call them from there but at the same time call the forecast from whatever website.
Im still diggin' on it ;)
Thanks so much for redesigning the format of this! :) I remember you showed me in my mod request topic how you were able to fix and bring to life that old weather mod. I am glad you were able to customize it more. That was my biggest gripe! FANTASTIC job!
Quote from: Martin12 on April 24, 2010, 06:49:04 PM
Thanks so much for redesigning the format of this! :) I remember you showed me in my mod request topic how you were able to fix and bring to life that old weather mod. I am glad you were able to customize it more. That was my biggest gripe! FANTASTIC job!
Looks much better dont it? ;)
Oh wow. I just realized that this data came from a HAMweather script! Now I can host the weather images and data on my own site. Perfect in case the other source go down. Why on earth did I not see that!
Good work
Sometimes people will put random sayings in the Location box such as "Right Here", or "On the Best Forum Ever", etc. Is there a way to set it so that if they do not type in a City, State that it wont show anything there at all?
This is what it shows now:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2Fwbbhas.png&hash=37471483e7158f9514c14fee1d146701b24d0237)
Quote from: Kimmie on May 04, 2010, 01:22:59 AM
Sometimes people will put random sayings in the Location box such as "Right Here", or "On the Best Forum Ever", etc. Is there a way to set it so that if they do not type in a City, State that it wont show anything there at all?
This is what it shows now:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2Fwbbhas.png&hash=37471483e7158f9514c14fee1d146701b24d0237)
If its empty, then nothing shows. If your users want to add garble, then obviously it would look for the gabled city. Tell your users to use the location for whats intended.
Quote from: bluedevil on May 04, 2010, 10:04:44 AM
Quote from: Kimmie on May 04, 2010, 01:22:59 AM
Sometimes people will put random sayings in the Location box such as "Right Here", or "On the Best Forum Ever", etc. Is there a way to set it so that if they do not type in a City, State that it wont show anything there at all?
This is what it shows now:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2Fwbbhas.png&hash=37471483e7158f9514c14fee1d146701b24d0237)
If its empty, then nothing shows. If your users want to add garble, then obviously it would look for the gabled city. Tell your users to use the location for whats intended.
I have 7,000+ members do you know how difficult it will be to get everyone to do that? lol. I just wont use this mod, it messes up all the icons right there anyways (splits them up, puts 2 above the weather image, and 4 below it)..lol.
Now i know how NAO feels.
And so another mod author gets disheartened because the community fails to understand what goes into modding.
I liked the mod. :)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.woolywonder.com%2Fforums%2Fimages%2Fsmilies%2Fviolin.gif&hash=9275671e587990d1087d2c6a999bda702821daad)
Quote from: Kimmie on May 04, 2010, 03:45:32 PM
I have 7,000+ members do you know how difficult it will be to get everyone to do that? lol. I just wont use this mod, it messes up all the icons right there anyways (splits them up, puts 2 above the weather image, and 4 below it)..lol.
BD your doing a great job keep up the good work
Kimmie your not born with manners it's something your taught
Seems maybe you were playing kick about with your friends on that day
You can't please all of the people all of the time
Quote from: Arantor on May 04, 2010, 04:05:46 PM
And so another mod author gets disheartened because the community fails to understand what goes into modding.
I liked the mod. :)
Quote from: welshbikers on May 05, 2010, 08:58:09 AM
Quote from: Kimmie on May 04, 2010, 03:45:32 PM
I have 7,000+ members do you know how difficult it will be to get everyone to do that? lol. I just wont use this mod, it messes up all the icons right there anyways (splits them up, puts 2 above the weather image, and 4 below it)..lol.
BD your doing a great job keep up the good work
Kimmie your not born with manners it's something your taught
Seems maybe you were playing kick about with your friends on that day
You can't please all of the people all of the time
To both of you, ALL I did was ask a simple question and got a sarcastic answer. I HAVE manners until someone disrespects my intelligence. Dont even know what "kick about" even means (must be a welsh thing) lol, but okie dokie. Its NOT that I didnt like the mod, I asked to see if a simple change could be made because I DID like the mod, thats it, nothing more, just wanted to see if there was a work around so folks wouldnt have to look at all that garbled mess..lol. If the mod auths dont want to support their mods and answer questions pertaining to them, then perhaps they shouldnt make them? I see all the time on here, people making requests with mods, why is mine any different? lol
The sheer thought of asking 7000+ people to not put anything in that box other than a city and a state is proposterous because its not gonna happen..lol.
The attitude was what was different. You asked a question, got an answer that didn't quite work for you, then simply said what amounts to, "Fine, I won't use the mod, it looks rubbish anyway"
Speaking from experience, that kind of thing feels insensitive when you receive it, and it can hurt. It's why Nao isn't supporting Aeva here, it's why I'm no longer writing mods freely (I have written a grand total of 4 mods since the turn of the year, only 1 of them published under my own name)
Quote from: Kimmie on May 05, 2010, 04:53:29 PM
The sheer thought of asking 7000+ people to not put anything in that box other than a city and a state is proposterous because its not gonna happen..lol.
You dont have forum rules? Is the global newsletter broke in your forum?
How about emptying the field out in the database?
Kimmie, You could also alter the mod to have its own field named 'weather' which wont have an effect on the location field ;)
Obviously a little more work than adding another field, but doable :)
just fyi, trying to d/l using package manager gives empty file error. manual d/l then upload works fine though and installed on default theme fine.
I look fwd to using it, thank you.
I went ahead and played around with HW3 and tweaked it so the badges would show if there was a weather alert. I also added some nice icons and removed the time. If anyone wants to use them they are welcome to. Just change out the http://www.observingstars.com in the code of this mod with http://www.twctoday.com (Make sure you leave the /weather/ and everything after it)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg37.imageshack.us%2Fimg37%2F6397%2Ftestnp.png&hash=d284108a5b60982563337c6bc8d97f35f1487df7)
Quote from: Martin12 on May 16, 2010, 01:38:36 PM
I went ahead and played around with HW3 and tweaked it so the badges would show if there was a weather alert. I also added some nice icons and removed the time. If anyone wants to use them they are welcome to. Just change out the http://www.observingstars.com in the code of this mod with http://www.twctoday.com (Make sure you leave the /weather/ and everything after it)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg37.imageshack.us%2Fimg37%2F6397%2Ftestnp.png&hash=d284108a5b60982563337c6bc8d97f35f1487df7)
Very cool martin. I wonder how much stress users will put in your servers.?
Quote from: bluedevil on May 16, 2010, 01:40:40 PM
Quote from: Martin12 on May 16, 2010, 01:38:36 PM
I went ahead and played around with HW3 and tweaked it so the badges would show if there was a weather alert. I also added some nice icons and removed the time. If anyone wants to use them they are welcome to. Just change out the http://www.observingstars.com in the code of this mod with http://www.twctoday.com (Make sure you leave the /weather/ and everything after it)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg37.imageshack.us%2Fimg37%2F6397%2Ftestnp.png&hash=d284108a5b60982563337c6bc8d97f35f1487df7)
Very cool martin. I wonder how much stress users will put in your servers.?
Actually I was surprised at how light this is! I created a few hundred in just a few seconds. I am glad its so efficient! The beauty of HW3 is the fact there are so many people using this as well so if you do loose a source its easy to just replace the url and having it working again. I wish I found out about this years ago. Haha 8)
Nao, bluedevil: Who votes we start a fan club for mod authors who... y'know...
Oh wait, I'm already doing that at the moment ;D
Quote from: Arantor on May 16, 2010, 03:19:24 PM
Nao, bluedevil: Who votes we start a fan club for mod authors who... y'know...
Oh wait, I'm already doing that at the moment ;D
fan club? lol
Fan club was the wrong word, but a club for people who dislike mod users who don't care about the effort and time...
Quote from: Arantor on May 16, 2010, 03:23:00 PM
Fan club was the wrong word, but a club for people who dislike mod users who don't care about the effort and time...
lol..... that'd be too much to handle. Between you two, i bet y'all have a great membership.
I'll be selling my mods there, and I'm hopeful others will too :)
Quote from: Arantor on May 16, 2010, 04:01:25 PM
I'll be selling my mods there, and I'm hopeful others will too :)
And I will be buying.
Hi guys
If I have a source for my countries weather, where do I change things so they will work for my forum?
Thhanks in advance.
Todd
is this thread no longer supported??
is there a way to have this work globally for every user not just a particular country
Quote from: CrazieGrafix on March 15, 2011, 08:34:39 PM
is there a way to have this work globally for every user not just a particular country
Not that im aware of.
ok thank you for answering
bluedevil,
Any chance on getting the coding that would work in a portal block (specifically simpleportal)? I already have a bunch of crap (not really crap but mods) in the posts but would love to have this in a block that would come up per user.
I have one minor problem with this mod installed on SMF 2.0 curve theme, it works great for all other groups and members but always says " The current conditions are currently unavailable" for admin only.
What could be causing this?
Thanks for such a great mod!
now using smf 2.0.6 and this mod still works great for me.. thanks!