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 |
#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:
|
#172
|
|||
|
|||
Quote:
Greetings, Chriss |
#173
|
||||
|
||||
Here's what you end up with for the regular install (colours changed to match my board);
|
#174
|
||||
|
||||
Hello:
I have just one questions for today... I would like to translate the location name into chinese... how do i do that? can i just replace the english name with chinese? use Shanghai as an example, in newdb.txt i found the following line: 814', '3', 'Asia', '7', 'China', '', '', '339', 'Shanghai', 'CHXX0116 can i change it "Shanghai" to "上海" 814', '3', 'Asia', '7', 'China', '', '', '339', '上海', 'CHXX0116 then run the newdb.php again to make it work? |
#175
|
||||
|
||||
Quote:
// 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 ); What does 'field_start', 'field_end' mean? my mod doesn't show up on my page... |
#176
|
||||
|
||||
It means the same as it means for the rest of this hack - you need to know the fieldXX values for each of your new profile fields...
|
#177
|
||||
|
||||
sorry its still not showin up...
|
#178
|
|||
|
|||
I tried installing the weather/forecast and everything appears to be good and have double and triple checked everything and here is the scenario:
> Go to Usercp > Choose Display type, languages, extended forecast, then forecast locations (Select!) > Get a dropdown menu for "Regions" and choose united states > Choose forecast state, choose a state > Select forecast location (It's populating this fine) and I choose > Click Update Location Nothing happens and it just shows "No forecast selected" on the main page. I've imported the forecast.sql file and that worked just fine but it's just not updating the forecast location. Here is a layout of my profile fields: Forecast Display Type Single-Selection Radio Buttons Required, Editable field66 [Edit] [Delete] Display Languages Single-Selection Menu Required, Editable field67 [Edit] [Delete] Extended Forecast Single-Selection Menu Required, Editable field68 [Edit] [Delete] Forum Display Single-Selection Radio Buttons Required, Editable field69 [Edit] [Delete] Forecast Locations Single-Line Text Box Required, Editable, Hidden field70 [Edit] [Delete] Did I do something wrong? Can someone help please I'd love to get this working on my site. Thank you, Tim |
#179
|
||||
|
||||
After installing the forumhome update, I'm getting:
Quote:
|
#180
|
||||
|
||||
Quote:
|
#181
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|