The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
VB World Weather Details »» | |||||||||||||||||||||||||
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
|
Comments |
#162
|
||||
|
||||
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 |
#163
|
|||
|
|||
Quote:
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 |
#164
|
||||
|
||||
Sent Sonia.
Thanks, Brian Quote:
|
#165
|
||||
|
||||
Quote:
|
#166
|
|||
|
|||
Quote:
|
#167
|
||||
|
||||
Quote:
Find: Code:
function get_w_home() Code:
function get_j_home () { global $vboptions; $returned = "$vboptions[bburl]/"; return $returned; } Code:
define ( 'WEATHER_URL', get_w_home () ); Code:
define ( 'WEATHER_URL', get_j_home () ); Code:
$current = $type == '1' ? 'current_weather_one' : 'current_weather_two'; Code:
$current = (THIS_SCRIPT == 'adv_index') ? 'adv_portal_weather': $current; 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 />
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; } ?> 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: |
#168
|
|||
|
|||
Thanks. Very nice. I installed it and it works great
|
#169
|
||||
|
||||
Quote:
|
#170
|
||||
|
||||
clicks install
|
#171
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|