Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Vbadvanced - Weather Channel Module Details »»
Vbadvanced - Weather Channel Module
Version: 1.00, by boo.3 boo.3 is offline
Developer Last Online: Nov 2005 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-18-2005 Last Update: Never Installs: 19
 
No support by the author.

thanks to dsboyce8624 to fixing this code

This code is based around cLord's weather module

All i did was some simple changes to his code and added the weather channels code



What Does It do?

This gives users a field to add the ZIP CODE once added they will see there local weather on your main Vba


1. In your Admincp - User Profile Fields - Goto "Add New User Profile Field" - Choose single line text box - Create new field titled "Zip Code".

2. Admincp - User Profile Fields - Click "User Profile Field Manager" and look for the Zip Code field number - In my forums its 6.

3. Admin CP - Styles & Templates - Style Manager - Add a new template called "adv_portal_weather".

Now put this code into the template:

Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> 
<tr> 
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Weather Conditions</b></span></td> 
</tr> 
<tr> 
<td class="$getbgrow"><span class="smallfont"> 

<if condition="!$bbuserinfo['userid']"> 
<span class="smallfont">Registered members can see their local weather forcast here.<br /><br /><phrase 

1="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase></span> 
<else /> 
<if condition="$bbuserinfo[field5] !=''"> 

<script src='http://voap.weather.com/weather/oap/$bbuserinfo[field5]?template=GENXV&par=null&unit=0&key=05afc55b05db4d084c1497353310d74b' alt="Weather for $bbuserinfo[field66] provided by that-sucks.net." border="0"></a></script> 

<else />Add your <A HREF="$vboptions[bburl]/profile.php?do=editprofile">Zip Code</A> to show weather forcast. 
</if> 
</if> 
</span> 
</td> 
</tr> 
</table> 
<br/>
MAKE SURE YOU CHANGE THE $bbuserinfo[field6] TO YOUR FIELD #... say yours is 4 it would be like this $bbuserinfo[field4]

Now Last Step

4. Admincp - vBa CMPS - Add Module

Module Title - Weather
Module Identifier - keep blank
OR Template to Include - weather
Activate - yes
Select the column *Right or Left*

DONE

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-19-2005, 09:53 PM
boo.3 boo.3 is offline
 
Join Date: Nov 2004
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinL
Yeah in the navbar..well mine is in the header.

If I enable this and I click on that button it reloads the page. When I shut it off everything works fine again.

I have no idea why that would happen.
thats odd... would anyone know why this is happening?
Reply With Quote
  #13  
Old 05-19-2005, 09:54 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boo.3
ok i tryed your code and it didn't work for me it said i needed to enter zipcode?

did you get that error
Mine? You prolly have to change it back to field6.

EDIT: Now I have to find a way to force it to be a smidge smaller.
Reply With Quote
  #14  
Old 05-19-2005, 09:55 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boo.3
thats odd... would anyone know why this is happening?
No idea, unless there something else already wrong with the navbar.

This hack went nowhere near it.
Reply With Quote
  #15  
Old 05-19-2005, 09:56 PM
boo.3 boo.3 is offline
 
Join Date: Nov 2004
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

haha my bad i didn't add field6

let me check 1 sec

edit: An error has occurred.
Invalid location code provided.
Please notify the webmaster.

i get that now after changing field
Reply With Quote
  #16  
Old 05-19-2005, 09:57 PM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boo.3
thats odd... would anyone know why this is happening?
ok for some reason that new code fixed that problem!

Thanks!
Reply With Quote
  #17  
Old 05-19-2005, 10:01 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boo.3
haha my bad i didn't add field6

let me check 1 sec

edit: An error has occurred.
Invalid location code provided.
Please notify the webmaster.

i get that now after changing field
I got that before I edited mine, make sure you get all instances.
Reply With Quote
  #18  
Old 05-19-2005, 10:03 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinL
ok for some reason that new code fixed that problem!

Thanks!
Damn I'm good!

I have no idea what I'm doing either.

:banana:
Reply With Quote
  #19  
Old 05-19-2005, 10:06 PM
boo.3 boo.3 is offline
 
Join Date: Nov 2004
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dsboyce8624
I got that before I edited mine, make sure you get all instances.

everythings right still get error * lol giving me support for my hack *
Reply With Quote
  #20  
Old 05-19-2005, 10:08 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boo.3
everythings right still get error * lol giving me support for my hack *

I cleaned it up some more. Try this new version. Make sure you edit all of the field5's.

PHP Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
<
tr>
<
td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbulletWeather Conditions</b></span></td>
</
tr>
<
tr>
<
td class="$getbgrow"><span class="smallfont">

<if 
condition="!$bbuserinfo['userid']">
<
span class="smallfont">Registered members can see their local weather forcast here.<br /><br /><phrase 

1
="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase></span>
<else />
<if 
condition="$bbuserinfo[field5] !=''">

<
script src='http://voap.weather.com/weather/oap/$bbuserinfo[field5]?template=GENXV&par=null&unit=0&key=05afc55b05db4d084c1497353310d74b' alt="Weather for $bbuserinfo[field66] provided by that-sucks.net." border="0"></a></script>

<else />
Add your <A HREF="$vboptions[bburl]/profile.php?do=editprofile">Zip Code</Ato show weather forcast.
</if>
</if>
</
span>
</
td>
</
tr>
</
table>
<
br/> 
EDIT: Don't worry, I'm happy to finally be able to help somebody.
Reply With Quote
  #21  
Old 05-19-2005, 10:11 PM
boo.3 boo.3 is offline
 
Join Date: Nov 2004
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ty i'll give that a shot

if this works mind if i upload it to main post?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04778 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete