vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - Accuweather - Local Weather Information on Profile Page (https://vborg.vbsupport.ru/showthread.php?t=220639)

PureTalkForum 08-10-2009 09:00 PM

Accuweather - Local Weather Information on Profile Page
 
1 Attachment(s)
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 09: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 10: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 10:28 AM

Quote:

Originally Posted by PureTalkForum (Post 1865045)
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 10:30 AM

Yes, Zelnik. That's the next task on my to-do list. :)

1320Nation 08-11-2009 10: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 10:55 AM

Quote:

Originally Posted by psychobike (Post 1865061)
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 11:09 AM

Ok in my member.php file there is no "memberinfo_block_profilepicture".

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

PHP Code:

'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 11:17 AM

Quote:

Originally Posted by PureTalkForum (Post 1865060)
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 12: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 12:28 PM

Quote:

Originally Posted by PureTalkForum (Post 1865104)
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 12: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 04:06 PM

YOU RULE!!!!!!!!

Thanks (im Shawn Gossman from taz :p)

PureTalkForum 08-11-2009 04: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 02: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 04: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 07:00 AM

Quote:

Originally Posted by PureTalkForum (Post 1865651)
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 08:00 AM

Quote:

Originally Posted by PureTalkForum (Post 1865651)
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 any good?

AccuWeather (UK) Section also.

Weather.com

Any good with these?

Thank you. :cool:

PureTalkForum 08-12-2009 02: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 03:27 PM

Quote:

Originally Posted by PureTalkForum (Post 1865928)
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 04:10 PM

The instructions say to place it just above the:

</td>

</tr>

</table>

<!-- / user info -->

1320Nation 08-12-2009 04:30 PM

Quote:

Originally Posted by PureTalkForum (Post 1865987)
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:

PHP Code:

</td>

</
tr>

</
table>

<!-- / 
user info --> 


PureTalkForum 08-12-2009 05:16 PM

Try adding it after:

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

1320Nation 08-12-2009 06:44 PM

Quote:

Originally Posted by PureTalkForum (Post 1866032)
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 08: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-19-2009 11:02 PM

@ PureTalkForum, how do we get this working for the UK? Thanks for this! :)

multiplex 08-25-2009 04: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

Code:

http://www.theweathernetwork.com

DynaMow 09-02-2009 09:46 PM

why are some of my members having trouble entering their zip code?

1320Nation 09-03-2009 06:06 AM

Any luck getting this mod to work in postbit legacy yet?

DynaMow 09-03-2009 10:44 AM

Quote:

Originally Posted by DynaMow (Post 1878714)
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 02: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 08: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 03: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

Quote:

Originally Posted by psychobike (Post 1865110)
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 10:44 PM

Very nice mod. Any plans to upgrade to 4.2.1?

ckgb 12-25-2013 09:11 AM

Quote:

Originally Posted by Bubble #5 (Post 2439634)
Very nice mod. Any plans to upgrade to 4.2.1?

I second that ))


All times are GMT. The time now is 09:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02819 seconds
  • Memory Usage 1,827KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete