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.


All times are GMT. The time now is 04:45 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.02544 seconds
  • Memory Usage 1,742KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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