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

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
  #122  
Old 07-16-2004, 02:54 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NuclioN
Upgraded and all works very well. Great job!
It would be nice to display the forumhome weatherinfo right under the navbar. Then it has to be smaller i guess. How to do this?
I've actually changed this myself... it wasnt hard as I just moved the element up to where I wanted it. The main hasstle is that the entire weather block for people who have it setup is held in a single variable so changing the actual block is a bit of a pain. After moving it uptop I've found that even with the full height and a label bar it fits my site just fine and it is afterall an option for only those who want to see it.

You can check out my version at www.scubaboard.com if you like.
Reply With Quote
  #123  
Old 07-16-2004, 03:39 PM
SteveK SteveK is offline
 
Join Date: Oct 2001
Location: Seattle, WA USA
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S

You can check out my version at www.scubaboard.com if you like.
Nice site. May I ask which shopping cart you're using?
Reply With Quote
  #124  
Old 07-16-2004, 03:42 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NuclioN
Tnx that would be nice. I've placed the actual code in forumhome under the navbar but it is to large and it pushed the other tables to far down. If this could be done on a few lines it would be perfect.
Hi


Go to the demo and login, and select the default template, and tell if that is what you are wanting!

If it is I will post the change for you!


Sonia
Reply With Quote
  #125  
Old 07-16-2004, 05:11 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes that's ok why-not. The display in default looks good
Reply With Quote
  #126  
Old 07-16-2004, 05:53 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NuclioN
Yes that's ok why-not. The display in default looks good
Hi

Ok,

Go to Styles & Templates >> Search >> 'FORUMHOME'

Open that template up....

Find...

PHP Code:
  <if condition="$show['forecast']"><if condition="$forecast_home['location']!='0'">$forecast_home[data]<else /><tbody>
   <
tr>
    <
td class="thead" colspan="2"><a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_weather')"><img id="collapseimg_forumhome_weather" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_weather].gif" alt="" border="0" /></a>$vbphrase[local_weather]</td>
   </
tr>
  </
tbody>
  <
tbody id="collapseobj_forumhome_weather" style="$vbcollapse[collapseobj_forumhome_weather]">
   <
tr>
    <
td class="alt2"><a href="profile.php?$session[sessionurl]do=weather"><img border='0' src='$stylevar[imgdir_misc]/weather.gif' alt='$vbphrase[local_weather]' /></a></td>
    <
td class="alt1" width="100%" align="center"><div class="smallfont" align="center">$forecast_home[data]</div></td>
   </
tr>
  </
tbody></if></if> 
Dlete it and save the update!

Go back to Styles & Templates >> Search >> 'navbar'

Open that template up....

Find...

PHP Code:
</div>
<!-- / 
nav buttons bar --> 
Right above '</div>'

Add the following...

PHP Code:
 <if condition="$show['forecast']">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<if 
condition="$forecast_home['location']!='0'">$forecast_home[data]<else /><tbody>
   <
tr>
    <
td class="thead" colspan="2"><a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_weather')"><img id="collapseimg_forumhome_weather" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_weather].gif" alt="" border="0" /></a>$vbphrase[local_weather]</td>
   </
tr>
  </
tbody>
  <
tbody id="collapseobj_forumhome_weather" style="$vbcollapse[collapseobj_forumhome_weather]">
   <
tr>
    <
td class="alt2"><a href="profile.php?$session[sessionurl]do=weather"><img border='0' src='$stylevar[imgdir_misc]/weather.gif' alt='$vbphrase[local_weather]' /></a></td>
    <
td class="alt1" width="100%" align="center"><div class="smallfont" align="center">$forecast_home[data]</div></td>
   </
tr>
  </
tbody></if></table></if> 
Same changes....

All Done....

Sonia
Reply With Quote
  #127  
Old 07-16-2004, 06:12 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

--edit-- Have it..i had to change the css. It looks awesome
Reply With Quote
  #128  
Old 07-16-2004, 06:56 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello! I managed to see your demo. Excellent work!

I've been having a couple of the same issues as I've seen posted here, but I've not found a formula in this thread that's fixed it. I was really hoping to have this fixed without having to bother you as you seem very busy with other people, but I'm not doing very well.

I have the hack installed on my board but;

a) forecast.php itself is blank (save for having "0-ss-0" in the top left hand corner).
b) I can't save the location. I do have custom fields and have altered profile.php accordingly.

My fields 5, 6, 7, 8 and 9 are edited to fields;
31, 32, 33, 34 and 35 respectively.

Here is the PHP I am using;
PHP Code:
####### weather forecast and the forecast options ######

if ( $_REQUEST['do'] == 'weather' || $_REQUEST['do'] == 'places' )
{
        
define 'DO_WEATHER');
        
construct_usercp_nav $_REQUEST['do'] );
        
$templatename $_REQUEST['do'] . '_display';
        
$shelltemplatename 'USERCP_SHELL';
        include_once ( 
'./includes/functions_weather.php' );
}

if ( 
$_REQUEST['do'] == 'weather' )
{
        
$new_forecast forecast_valid $bbuserinfo[field31], $bbuserinfo[field32], $bbuserinfo[field33], $bbuserinfo[field34], $bbuserinfo[field35] );
        
$new_forecast fetch_forecast $new_forecast);
        
$customfields = array ();
        
fetch_profilefields(1);
        
$navbits[''] = $vbphrase['weather_title'];
}

if ( 
$_REQUEST['do'] == 'places' )
{
        if ( !empty ( 
$_POST['location'] ) )
        {
                
$DB_site->query "UPDATE " TABLE_PREFIX "userfield SET field35=" addslashes$_POST['location'] ) . " WHERE userid=$bbuserinfo[userid]);
                
$GLOBALS['url'] = 'profile.php?do=weather';
                eval ( 
print_standard_redirect 'redirect_updatethanks' ) );
        }
        else
        {
                
$tpl places_validate ();
                
$navbits[''] = $tpl['page_title'];
        }
}

if ( 
$_POST['do'] == 'forecast' )
{
        
$forecast_fields verify_profilefields );

        if ( !empty ( 
$forecast_fields ) )
        {
                
$DB_site->query "UPDATE " TABLE_PREFIX "userfield SET userid=$bbuserinfo[userid]$forecast_fields WHERE userid=$bbuserinfo[userid]);
        }

        eval ( 
print_standard_redirect 'redirect_updatethanks' ) ); 
You can see how it looks on my board with the following login information;

Username: Test
Password: beer
URL: http://www.gamercrossfire.net/bb
And one other thing: embarrassingly I'm not sure what the following conditions:
Quote:
(B) Yes, I have allow_url_fopen turned on!
(C) Yes, I have permission to the I/O File system!
mean. Everything else is present and correct. I assume C is about file uploading, in which case there's not a problem there.
Reply With Quote
  #129  
Old 07-16-2004, 07:20 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 Zelda-King
And one other thing: embarrassingly I'm not sure what the following conditions:.
Those you can check from your vB admin panel... just scroll down the the bottom for diagnostics and click on php info. Both those items will be listed long with all the other php config settings for your server.
Reply With Quote
  #130  
Old 07-16-2004, 07:37 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah... well I'm all clear for directive B then. I didn't see anything that specifically says 'I/O File System' though. Wat exactly am I looking for?

Oh yes, I found another problem. The locations interferes with my do=editprofile.

EDIT: I've just found a mistake I made. Please ignore my support request until I rectify it. I will give an update shortly.
Reply With Quote
  #131  
Old 07-16-2004, 07:38 PM
nineball nineball is offline
 
Join Date: Jan 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to display a center block using the forum home template create a new module with the uploaded weather.php file and the adv_portal_world_weather.

Put the weather.php in your modules directory, create a CMPS module with it, and add a new template using the adv_portal_world_weather text file with the same name as the text file.
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 01:23 AM.


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.05523 seconds
  • Memory Usage 2,361KB
  • 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
  • (4)bbcode_php
  • (6)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