Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #32  
Old 05-25-2005, 06:31 PM
vnpower vnpower is offline
 
Join Date: Jul 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx
Will this work for overseas as well? or just US members?
Yes, US members.
I thing so!
Reply With Quote
  #33  
Old 05-25-2005, 06:48 PM
vnpower vnpower is offline
 
Join Date: Jul 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, US members.
I thing so!
Reply With Quote
  #34  
Old 05-26-2005, 02:44 AM
Pion Pion is offline
 
Join Date: May 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed works nicely when loged in, but this is the url I get when unregistered: http://www.myforums.com/home/%1$s/register.php
It should be myforums.com/forums/register.php

Anyway to fix this??
Reply With Quote
  #35  
Old 05-26-2005, 03:47 AM
:Judge:'s Avatar
:Judge: :Judge: is offline
 
Join Date: Jan 2003
Location: USA ~ MD
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To show thanks I went ahead and got the style codes for more options. I didn't care for the default look and wanted something to fit in the center a little better.

Horizontal, best for center blocks

Ticket Holder = EVNTH
Wild Flowers = LAWNH
Winter Blues = COLDH
Green Paint = HOMEH
Golfers Sunrise = GOLFH
Grass Fields = ALERH
Sunday Drive = DRIVH
The Weather Channel = GENXH
Outdoor Enthusiast = OTDRH
In Flight = TRVLH


Vertical, best for side blocks

Ticket Holder = EVNTV
Wild Flowers = LAWNV
Winter Blues = COLDV
Green Paint = HOMEV
Golfers Sunrise = GOLFV
Grass Fields = ALERV
Sunday Drive = DRIVV
The Weather Channel = GENXV
Outdoor Enthusiast = OTDRV
In Flight = TRVLV

Change style in this line of code.
Code:
<script src='http://voap.weather.com/weather/oap/$bbuserinfo[field5]?template=PLACE 5 DIGIT CODE HERE
If this could be made better to understand or added to the first post as options just thought I would say feel free to

Also here is a photo of styles.
Reply With Quote
  #36  
Old 05-30-2005, 09:11 PM
Pion Pion is offline
 
Join Date: May 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pion
Installed works nicely when loged in, but this is the url I get when unregistered: http://www.myforums.com/home/%1$s/register.php
It should be myforums.com/forums/register.php

Anyway to fix this??
Is there any support for this hack anymore?
Reply With Quote
  #37  
Old 05-30-2005, 09:32 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can try vbadvanced.com
Reply With Quote
  #38  
Old 05-31-2005, 09:31 PM
Pion Pion is offline
 
Join Date: May 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried, no help either. I fixed it though.
Reply With Quote
  #39  
Old 06-01-2005, 01:56 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did post something for you over there, and I'm pretty sure you got it fixed.

Even though this isn't really my hack.

Boo is on a trip for a week or so.
Reply With Quote
  #40  
Old 06-25-2005, 02:54 PM
beansbaxter's Avatar
beansbaxter beansbaxter is offline
 
Join Date: May 2005
Location: Seattle
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt work:
An error has occurred.
Invalid location code provided.
Please notify the webmaster.
Reply With Quote
  #41  
Old 06-25-2005, 07:15 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by beansbaxter
doesnt work:
An error has occurred.
Invalid location code provided.
Please notify the webmaster.
Bad zip code.
Reply With Quote
Reply

Thread Tools

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 04:09 PM.


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.04622 seconds
  • Memory Usage 2,303KB
  • 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
  • (2)bbcode_code
  • (3)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