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
VB World Weather Details »»
VB World Weather
Version: 1.00, by why-not why-not is offline
Developer Last Online: Jun 2007 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-11-2004 Last Update: Never Installs: 82
 
No support by the author.

This is VB World Weather...

It allow your users to look up and display local weather for 39,722 locations around the world! It is template based with multi language support built in!


The zip file contains...

1. Step by step install files
2. All images, language files, templates, weather database file and scripts

Demo

http://forum.ya-right.com/

user: test
pass: test

when you login go to the usercp to try the demo, also look at the bottom of the forum home for the other display...

The one on the forum home can be placed where ever you want to place it!

If you have any questions or need install help post your questions here...

UPDATES (7/15/2004 9:47 PM EDT)

Go here for the FORUMHOME template update install info

https://vborg.vbsupport.ru/showthrea...d=1#post533325

UPDATES (7/18/2004 9:04 AM EDT)

Add a database install table script, for people who can not run
the single sql file (FOUND IN STEP 7). It is very easy to use!


Have a great day....

Sonia


_______________________________
Next mod -> translate this topic or post!

Show Your Support

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

Comments
  #162  
Old 07-18-2004, 11:30 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed the additional frontpage module and changed the field id's to match, but Im getting this error at the very top of the forum home page:

Warning: file_get_contents(http://www.tech-tronix.com/forecast....385&lid=xxvvzz): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/techtro/public_html/forums/includes/functions_weather.php on line 190

And the weather module does not load, its a red x.

Any ideas?

Brian
Reply With Quote
  #163  
Old 07-18-2004, 11:57 AM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Realist
Installed the additional frontpage module and changed the field id's to match, but Im getting this error at the very top of the forum home page:

Warning: file_get_contents(http://www.tech-tronix.com/forecast....385&lid=xxvvzz): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/techtro/public_html/forums/includes/functions_weather.php on line 190

And the weather module does not load, its a red x.

Any ideas?

Brian
Hi

send me the following.....

forecast.php, functions_weather.php, profile.php, index.php

put them in a zip file....

Fataqui@netscape.net

or I have that MSN thingie open helping someone else right now, just post a link in there where I can download them files! MSN -> fataqui@ya-right.com

Sonia
Reply With Quote
  #164  
Old 07-18-2004, 12:36 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sent Sonia.

Thanks,

Brian


Quote:
Originally Posted by why-not
Hi

send me the following.....

forecast.php, functions_weather.php, profile.php, index.php

put them in a zip file....

Fataqui@netscape.net

or I have that MSN thingie open helping someone else right now, just post a link in there where I can download them files! MSN -> fataqui@ya-right.com

Sonia
Reply With Quote
  #165  
Old 07-18-2004, 11:06 PM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by why-not
This can be done many ways but I think I will only do it one way, so that this final update that will support the AdminCP addon that I will release to control the weather system....
Curiousity has caught my interest... control the weather from admin in what way? The weather reporting is set up by each individual member so what is there for admin to control?
Reply With Quote
  #166  
Old 07-19-2004, 10:03 PM
nineball nineball is offline
 
Join Date: Jan 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Natch
Anyone wanting to see a demo of this, will have to sign up (I do not create test accounts) but you can see it on www.mobileforces.org <=
I like your layout better than mine. Could you attach the instructions and template
Reply With Quote
  #167  
Old 07-19-2004, 11:17 PM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nineball
I like your layout better than mine. Could you attach the instructions and template
Mine requires modifications to the includes/functions_weather.php - so MAKE A BACKUP OF THE ORIGINAL FILE:
Find:
Code:
function get_w_home()
Insert ABOVE:
Code:
function get_j_home ()
{
	global $vboptions;
	$returned = "$vboptions[bburl]/";
	return $returned;
}
Find:
Code:
define ( 'WEATHER_URL', get_w_home () );
REPLACE WITH:
Code:
define ( 'WEATHER_URL', get_j_home () );
Find:
Code:
	$current = $type == '1' ? 'current_weather_one' : 'current_weather_two';
Insert BELOW:
Code:
	$current = (THIS_SCRIPT == 'adv_index') ? 'adv_portal_weather': $current;
Save, close and Upload this new file.

New Template: adv_portal_weather
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
 <tr>
  <td class="tcat">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('cmps_weather')"><img id="collapseimg_cmps_weather" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_cmps_weather].gif" alt="" border="0" /></a>
    <span class="smallfont"><strong>$vba_options[portal_blockbullet] <a href="$vboptions[bburl]/profile.php?$session[sessionurl]do=weather" alt="Detailed Weather Report">$tpl[location_header]<br />$tpl[location]</a></strong></span>
  </td>
 </tr>
</thead>
<tbody id="collapseobj_cmps_weather" style="$vbcollapse[collapseobj_cmps_weather];text-align:center">
  <tr class="alt1">
   <td class="smallfont"><a href="$vboptions[bburl]/profile.php?$session[sessionurl]do=weather"><img border='0' src='$tpl[current_icon]' title="$tpl[current_text]" alt='' /></a> $tpl[current_temp]</td>
  </tr>
  
  <tr class="alt2">
   <td class="thead">$tpl[time_text]</td>
  </tr>
  <tr class="alt2">
   <td class="smallfont">$tpl[local_time]</td>
  </tr>
  
  <tr class="alt1">
   <td class="thead">$tpl[humd_header]</td>
  </tr>
  <tr class="alt1">
   <td class="smallfont">$tpl[current_humd]</td>
  </tr>
  
  <tr class="alt2">
   <td class="thead">$tpl[vis_header]</td>
  </tr>
  <tr class="alt2">
   <td class="smallfont">$tpl[current_vis]</td>
  </tr>
  
  <tr class="alt1">
   <td class="thead">$tpl[ultra_header]</td>
  </tr>
  <tr class="alt1">
   <td class="smallfont">$tpl[current_ultra]</td>
  </tr>
  
  <tr class="alt2">
   <td class="thead">$tpl[baro_header]</td>
  </tr>
  <tr class="alt2">
   <td class="smallfont">$tpl[current_baro] <span><img border='0' src='$tpl[icon_baro]' alt='' /></span></td>
  </tr>
  
  <tr class="alt1">
   <td class="thead">$tpl[direct_header] ($tpl[direct_type])</td>
  </tr>
  <tr class="alt1">
   <td class="smallfont">$tpl[current_direct]</td>
  </tr>
</tbody>
</table>
<br />
New Module: forumroot/modules/weather.php
Code:
<?
// here you change the field_start and field_end values to match your own board configuration
$w_fields = array ( 'field_start', 'field_end' );
$w_m = 'field' . ( $w_fields[1] - 1 );

if ( strpos ( $bbuserinfo[$w_m], 'always' ) )
{
	$show['forecast'] = true;

	define ( 'DO_WEATHER', 1 );

	include_once ( './includes/functions_weather.php' );

	$forecast_home = forecast_valid ( $w_fields );

	if ( !empty ( $forecast_home )  )
	{
	    $forecast_home = fetch_forecast ( $forecast_home, 2 );
	}

	eval('$home[$mods[\'modid\']][\'content\'] = "$forecast_home[data]";');
}
else
{
	$show['forecast'] = false;
}
?>
Upload this file to forumroot/modules folder.

Install into the vB Advanced CMPS using the following settings:

Module title: World Weather
Module Identifier: leave this blank
File to include: weather.php
OR Template to Include: leave this blank
Templates Used: adv_portal_weather

That's it - screenshot demo:
Reply With Quote
  #168  
Old 07-20-2004, 04:17 AM
nineball nineball is offline
 
Join Date: Jan 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. Very nice. I installed it and it works great
Reply With Quote
  #169  
Old 07-20-2004, 08:04 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nineball
Thanks. Very nice. I installed it and it works great
Glad to help - sorry I hadn't gotten to your PM yet - been busy as ...
Reply With Quote
  #170  
Old 07-20-2004, 02:35 PM
Bro_Joey_Gowdy's Avatar
Bro_Joey_Gowdy Bro_Joey_Gowdy is offline
 
Join Date: May 2002
Location: Hickory Flat MS 38633
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

clicks install
Reply With Quote
  #171  
Old 07-20-2004, 06:15 PM
nineball nineball is offline
 
Join Date: Jan 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Natch
Glad to help - sorry I hadn't gotten to your PM yet - been busy as ...
The pm was just asking about how to do this, so just delete it
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 06:12 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.05063 seconds
  • Memory Usage 2,330KB
  • 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
  • (8)bbcode_code
  • (7)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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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