News:

Wondering if this will always be free?  See why free is better.

Main Menu

Weather In Posts v.1

Started by Mick., April 17, 2010, 12:00:47 PM

Previous topic - Next topic

Mick.

Link to Mod

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.


More-to-life

Is there anyway this could be adapted for use in the UK?
UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

Mick.

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.

Mick.

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.

rd

What about the Netherlands?

Cutter65

Great add on Bluedevil, thanks for putting this together!  8)

Works great!

Cutter

Mick.

For testing purposes..... i need a UK / Netherlands city and country.

Arantor

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.

Mick.

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.

More-to-life

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!
UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

aussieherps

Would love this for an aussie forum if possible.
http://aussieherps.com">snakes lizards spiders turtles and much more

MATTEK

What about Canadian weather?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Sabre™

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. :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Mick.

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 ;)

Martin12

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!

Mick.

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?  ;)

Martin12

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

Kimmie

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:


Mick.

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:



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.   

Kimmie

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:



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.

Mick.

Now i know how NAO feels.

Arantor

And so another mod author gets disheartened because the community fails to understand what goes into modding.

I liked the mod. :)

Sabre™

Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


More-to-life

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
UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

Kimmie

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.

Arantor

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)

Mick.

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?

Arantor

How about emptying the field out in the database?

Sabre™

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 :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


dmacleo

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.

Martin12

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)

Mick.

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)


Very cool martin.   I wonder how much stress users will put in your servers.?

Martin12

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)


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 尚

I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Arantor

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

Mick.

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

Arantor

Fan club was the wrong word, but a club for people who dislike mod users who don't care about the effort and time...

Mick.

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.

Arantor

I'll be selling my mods there, and I'm hopeful others will too :)

rd

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.

aussieherps

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
http://aussieherps.com">snakes lizards spiders turtles and much more

aussieherps

is this thread no longer supported??
http://aussieherps.com">snakes lizards spiders turtles and much more

AllanD

is there a way to have this work globally for every user not just a particular country
Check out this great sites.
KnD Hosting

Mick.

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.

AllanD

ok thank you for answering
Check out this great sites.
KnD Hosting

dry3210

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.

mxcape21

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!
The only thing I can presume, since I know I'm not crazy (certifiably at least), is that everybody else is until they prove otherwise! 8)
http://techraffle.com/forum/index.php

K4EEO

now using smf 2.0.6 and this mod still works great for me.. thanks!

Advertisement: