vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Dynamic Widgets (https://vborg.vbsupport.ru/showthread.php?t=212543)

Biker_GA 04-30-2009 04:00 PM

Dynamic Widgets
 
We all know that widgets are pretty slick and can jazz up our portal pages with some rich content. However, I'm looking for something that's a little more dynamic for my users.

Has anyone found or developed a widget that allows a user to input information (such as a zip code) and then the widget is customized for just that user? The more I think about it, the more I wonder if it's even possible to do. Obviously, it would most likely be cookie based where the widget pulls the information from the cookie to display properly.

Specifically, I'm looking for a weather widget that allows a user to enter their zip code, and then displays the information on the portal page in the box assigned for that widget. Not sure it can even be done, but I think it would be a slick idea and great for my users.

Biker_GA 05-31-2009 03:13 AM

OK. I've been playing with this a bit, and I'm trying to parse the zip code from a field in UserCP to the code on the portal page. Unfortunately, it isn't working. This is what I have:

Code:

<if condition="$bbuserinfo[field13]">
<script type="text/javascript" language="javascript1.2" src="http://weatherreports.com/jscript.html?width=300&height=250&theme=brand&location=$bbuserinfo[field13]&units=LOCAL">
</script>
</if>

It isn't working. Any ideas as to why?

--------------- Added [DATE]1243789225[/DATE] at [TIME]1243789225[/TIME] ---------------

Anyone? :( Would really like to get this working for my users.

Biker_GA 06-03-2009 08:36 PM

I hate auto merge. :D Anyone care to take a peek at this and see where I went wrong? Danke!


All times are GMT. The time now is 11:18 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.00900 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete