vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Weather Channel widget that uses members zip code (https://vborg.vbsupport.ru/showthread.php?t=244605)

benstillman 08-05-2010 04:43 PM

Quote:

Originally Posted by mimi123 (Post 2077772)
tell me whats the point in creating a profile field for zip code when it doesn't even work? weather.com will give the html code to put in your weather configuration after you enter "your own" city. which will appear to all members in my site, if they wanna know their weather they have to enter their zip code in that "go" box. so whats the point for the profile field tell me

No idea what you're talking about.

This passes your zip code to the url, so users with their zip code entered in the profile field will just see their weather without having to type in their zip code each time.

Try it, you'll see what I mean.

8thos 09-28-2010 04:09 AM

*subs*

aenable 11-12-2010 05:38 PM

FWIW, I had to change this line:
Code:

Add your <A HREF="{vb:raw vboptions.bburl}">$/profile.php?do=editprofile">Zip Code</A> to show weather forcast.
to this:
Code:

Add your <A HREF="{vb:raw vboptions.bburl}/profile.php?do=editprofile">Zip Code</A> to show weather forecast.
to fix the link in the widget when there is no zip code showing.

(VB4.0.7)

Thanks!

8thos 12-11-2010 11:06 PM

Works great! Dude gave bad directions though.

OldSchoolDSL 12-12-2010 06:57 AM

Quote:

Originally Posted by Octavius. (Post 2132615)
Works great! Dude gave bad directions though.

Found it a little hard to understand also.

Would you please be so kind as to maybe clear up the details?

8thos 12-12-2010 08:13 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2132736)
Found it a little hard to understand also.

Would you please be so kind as to maybe clear up the details?

In that code he posted you will see fieldXX and if you look a little further you'll see field8

Replace both fieldXX and field8 with the profile field number that you created for the zip code.

That's the fist part.

Second part, do what aenable did in his post.

3rd part, Take that whole code and put it inside the new vbcms_widget_weather template

Then create your static html widget and copy that same code into Configure.

If you have more than one forum skin, you'll have to create a vbcms_widget_weather for each template.

For instance, I have 11 skins so I had to make 11 new templates but configure the widget only one time.

Richard Evans 12-15-2010 06:23 PM

How to you add the profile field (Zip Code). I am unfamiliar with where that is.
thanks in advance

paulvev 12-15-2010 06:53 PM

Agreed. I'm no newb, but this thread needs some serious step by step instructions or guidance.

nick_n_ii 12-24-2010 12:52 AM

Installed setup but not working at all..

benstillman 01-05-2011 02:03 PM

Quote:

Originally Posted by paulvev (Post 2134392)
Agreed. I'm no newb, but this thread needs some serious step by step instructions or guidance.

The first post is nothing but step by step instructions. I'm not sure how to make it any clearer than that. Not trying to sound rude, but I really don't know what else to say.


All times are GMT. The time now is 08:02 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.02447 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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