Log in

View Full Version : Profile Enhancements - Accuweather - Local Weather Information on Profile Page


PureTalkForum
08-10-2009, 10:00 PM
vBulletin Accuweather Modification
Brought to you by: PureTalkForum.com / kovichm@puretalkforum.com

This Template Modification is a simple vBulletin Profile Enhancement Feature. While it was initially planned to use this mod to affect a member's postbit, it was ultimately decided it would be more efficient and professional to add a tab to the member's profile page. However, I have added the ability to add it to your postbit as well. It's your choice.

This mod pulls information from a profile field where the user inputs his zipcode and it gathers data from the Accuweather Database. It displays some general information regarding the member's weather conditions.

Complete Installation Instructions are included and even the most inexperienced Administrator would be able to install this. There is nothing to upload. All you need to do is make a few simple template changes. The modification is extremely simplistic but it gets the job done. I will be creating some more advanced features in the near future.

If you require support, you may post here or e-mail me directly.

Please click 'Installed' - thank you!

1320Nation
08-11-2009, 10:49 AM
I've been waiting for this mod. Can't wait to install it!

Thanks!

Edit: Can you give more detail on what you are referring to in the instructions about "field6"?

PureTalkForum
08-11-2009, 11:00 AM
Absolutely! I'm here to help.

When you create a new ProfileField it is assigned an ID by vBulletin. By default it will be field# where # is... well, a number. So in the template modifications where you see "field6" just make it "field<WhateverNumberYourProfileFieldIs>"

https://vborg.vbsupport.ru/external/2009/08/71.jpg

zelnik
08-11-2009, 11:28 AM
Absolutely! I'm here to help.

When you create a new ProfileField it is assigned an ID by vBulletin. By default it will be field# where # is... well, a number. So in the template modifications where you see "field6" just make it "field<WhateverNumberYourProfileFieldIs>"

https://vborg.vbsupport.ru/external/2009/08/71.jpg

Looks great is there any chance to have small edition to postbit with a users weather?

PureTalkForum
08-11-2009, 11:30 AM
Yes, Zelnik. That's the next task on my to-do list. :)

1320Nation
08-11-2009, 11:31 AM
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/vhosts/********.com/httpdocs/forums/includes/adminfunctions_template.php(3729) : eval()'d code on line 28

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

1320Nation
08-11-2009, 11:55 AM
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/vhosts/********.com/httpdocs/forums/includes/adminfunctions_template.php(3729) : eval()'d code on line 28

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Any idea how to possibly cure this error?

Edit: Hang on I think I found the problem on my end.

1320Nation
08-11-2009, 12:09 PM
Ok in my member.php file there is no "memberinfo_block_profilepicture".

Where should I add the "memberinfo_block_weatherinfo" in my list below:

'memberinfo_block',
'memberinfo_block_aboutme',
'memberinfo_block_albums',
'memberinfo_block_contactinfo',
'memberinfo_block_friends',
'memberinfo_block_friends_mini',
'memberinfo_block_groups',
'memberinfo_block_infractions',
'memberinfo_block_ministats',
'memberinfo_block_profilefield',
'memberinfo_block_visitormessaging',
'memberinfo_block_recentvisitors',
'memberinfo_block_statistics',

jo8jo
08-11-2009, 12:17 PM
Yes, Zelnik. That's the next task on my to-do list. :)

Yeah, let us know when it's online for postbit! Great Mod!
:D

PureTalkForum
08-11-2009, 01:08 PM
Sorry for the delay, I was away from the computer. :)

You may put it anywhere in the same array on line number 74 like that. It's in the $globaltemplates array, you can just put it anywhere in that array.

1320Nation
08-11-2009, 01:28 PM
Sorry for the delay, I was away from the computer. :)

You may put it anywhere in the same array on line number 74 like that. It's in the $globaltemplates array, you can just put it anywhere in that array.

Ok everything appears to be working. However, it is not displaying the right zipcode. For some reason it is showing the weather for New York, NY. And I do not live in that state.

Edit: OOPS! I missed one of the field edits. It is working great now. Thanks!

PureTalkForum
08-11-2009, 01:38 PM
Haha, no worries, psychobike. Glad you got it going! =P

I'll have the postbit option ready later today.

kruzzen
08-11-2009, 05:06 PM
YOU RULE!!!!!!!!

Thanks (im Shawn Gossman from taz :p)

PureTalkForum
08-11-2009, 05:16 PM
Glad it's what you were looking for, Kruzzen. :)

On a separate note, I love how the rating for this mod is going down - but the people voting haven't installed the modification. How does that work? -.-

M@tthew
08-12-2009, 03:53 AM
Hi there,

This looks great, thank you - can it be adapted for UK users for UK weather and UK postcodes?

Thanks. :)

PureTalkForum
08-12-2009, 05:39 AM
Absolutely!

I'll need someone to find me a UK weather site that offers a feature like the information displayed by Accuweather in this modification. Once I have this information I'll be able to make a version of this mod for international users. :)

zelnik
08-12-2009, 08:00 AM
Absolutely!

I'll need someone to find me a UK weather site that offers a feature like the information displayed by Accuweather in this modification. Once I have this information I'll be able to make a version of this mod for international users. :)

Don't forget Spanish weather too :)

Accuweather does have UK weather somewhere as I use the accuweather plugin for firefox!

M@tthew
08-12-2009, 09:00 AM
Absolutely!

I'll need someone to find me a UK weather site that offers a feature like the information displayed by Accuweather in this modification. Once I have this information I'll be able to make a version of this mod for international users. :)

Great, thanks! :)

Is the BBC (http://news.bbc.co.uk/weather/) any good?

AccuWeather (UK) (http://www.accuweather.com/ukie/index.asp) Section also.

Weather.com (http://uk.weather.com/)

Any good with these?

Thank you. :cool:

PureTalkForum
08-12-2009, 03:15 PM
I have added the ability for everyone to allow the Accuweather Modification to be displayed in Postbit. If you were waiting for this feature you may download the Postbit Installation Instructions text file and get it up and running in no time. Enjoy!

1320Nation
08-12-2009, 04:27 PM
I have added the ability for everyone to allow the Accuweather Modification to be displayed in Postbit. If you were waiting for this feature you may download the Postbit Installation Instructions text file and get it up and running in no time. Enjoy!

Your instructions say to just put the code in the postbit templete. Does this mean anywhere in the postbit, or does it matter?

PureTalkForum
08-12-2009, 05:10 PM
The instructions say to place it just above the:

</td>

</tr>

</table>

<!-- / user info -->

1320Nation
08-12-2009, 05:30 PM
The instructions say to place it just above the:

</td>

</tr>

</table>

<!-- / user info -->

I use postbit legacy on my board and does not contain this code:

</td>

</tr>

</table>

<!-- / user info -->

PureTalkForum
08-12-2009, 06:16 PM
Try adding it after:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>

1320Nation
08-12-2009, 07:44 PM
Try adding it after:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>

It shows up somewhat, but it is just too wide for postbit legacy. I tried changing the height and width some but just couldn't come up with anything that would allow it to display properly. I'm sure sure if you can create something that will display in postbit legacy or not? If not, then you might consider making something that will display it in the signatures. I will gladly pay to have this done as well as adding a members group preference. I would like for only certian members groups the privilege to display the weather.

Chimpie
08-12-2009, 09:55 PM
I concur. This is a mod that many of us could use. Attached is what mine looks like.

Is there a way just to get (take the attached pic for example) the sun, Sunny and 87? And then maybe have it as a third column, maybe either before or after the member's stats.

LordDB
08-20-2009, 12:02 AM
@ PureTalkForum, how do we get this working for the UK? Thanks for this! :)

multiplex
08-25-2009, 05:43 PM
this is cool but please add Canada and Mexico to that list. gonna tag this one until their added. pretty much all north america. you can get weather from around the world from

http://www.theweathernetwork.com

DynaMow
09-02-2009, 10:46 PM
why are some of my members having trouble entering their zip code?

1320Nation
09-03-2009, 07:06 AM
Any luck getting this mod to work in postbit legacy yet?

DynaMow
09-03-2009, 11:44 AM
why are some of my members having trouble entering their zip code?
I got this problem.

But I am having another one.

I as administrator can see every bodies weather (postbit) but as registered members they see everybody as NY still. I am thinking it is a user group permission problem. But I do not see where it is, I am sure I am missing something, please help.

Kelmar
09-03-2009, 03:03 PM
I've done everything right down to a tee, and checked and rechecked yet the tab is still not appearing in the profile.

I have vplasa installed and that tab is there, could this be causing the problem? I'm using vb3.8.4.

SwollenCranium
09-03-2009, 09:36 PM
EU and Asian support would be nice, otherwise I'll have a xenophobic riot if I install it... thanks.

1320Nation
09-22-2009, 04:27 PM
Has anyone got this mod to work in postbit legacy?

Gav-n-Tn
10-26-2009, 10:46 PM
Everything was done per instructions. I get nothing. Not even the new tab

MrRem
01-06-2010, 09:53 AM
Bumping for a UK version x

Butzel
01-07-2010, 07:26 AM
Great Mod, Thank you

can I use the Zipcode from the vBMembermap ?

################################

Super Mod, Danke sehr

es wäre schön, wenn man den Zipcode aus der vBMembermap nutzen könnte, da dort bereits eine Eingabe erfolgt ist.

Rideharder
02-10-2010, 03:56 AM
Ok everything appears to be working. However, it is not displaying the right zipcode. For some reason it is showing the weather for New York, NY. And I do not live in that state.

Edit: OOPS! I missed one of the field edits. It is working great now. Thanks!

lol too..

Thanks for this bod!

kruzzen
02-24-2010, 05:17 AM
How could I make this where it shows in the signature of members instead of the postbit part it currently shows in? I use legacy and I think signature views of this would look better...

Bubble #5
08-18-2013, 11:44 PM
Very nice mod. Any plans to upgrade to 4.2.1?

ckgb
12-25-2013, 10:11 AM
Very nice mod. Any plans to upgrade to 4.2.1?

I second that ))

ozzy47
12-25-2013, 10:17 AM
I doubt the author will, has not been online in four years. I might look into it at some point though.