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
  #62  
Old 07-13-2004, 08:09 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MooMan65
Sonia, I can't seem to email anything to that address without it getting bounced back so I'll attach the package here.

Unfortunatly I can't give you access to the forum I'm hacking as I don't own the license or the server. I'm managing the forums for someone else. But hopefully that package is enough. Thanks!
Hacking the board??:ninja:
Reply With Quote
  #63  
Old 07-13-2004, 08:40 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi M8,
Sorry for the delay reply, here are my answers.

1) Are you using a prefix?
A: No it says in config $tableprefix = '';

2) How are you trying to install the weather table (command line, phpMyAdmin, other) ?
A: Tried Phpmyadmin and it times out and from Vbulletins own php installer panel.

Regards,

Brian

PS.

Just tried again running the SQL in phpmyadmin and I received this error:

Fatal error: Maximum execution time of 300 seconds exceeded in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/read_dump.lib.php on line 77

Line 77 says: $sql = ltrim(substr($sql, min($i + 1, $sql_len)));

Laters


Quote:
Originally Posted by why-not
Hi The Realist

To find out if your using a prefix, go to ./includes/config.php, and find the variable...

$tableprefix = '';

If this has a value, then you need to run the 'change.php' script to add the prefix!


As for your MySql Error, something is not being escaped somewhere....

Tell me the following....

1. Are you using a prefix?

2. How are you trying to install the weather table (command line, phpMyAdmin, other) ?


If you can not get the SQL file to load, create the table manual, then I will give you a script to loop the file and do the inserts that way! I have tested this SQL file, on 8 different systems Unix, Linux, Windows and Mac and I can not reproduce your error.

Note you can not load this from the VB admin panel it will not work! I will help you, but answer my questions so I can!
Reply With Quote
  #64  
Old 07-13-2004, 10:32 AM
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 MooMan65
Yeah, I've found also that the only mentioning of the profile field ids are in the profile.php file mod you do. I don't have the problem with the Select button not appearing, instead even after I pick and Region and Location etc. it doesn't display it in 'Current Location:' afterward. That's no doubt due to the Profile Field IDs being inconsistant, but adjusting the profile ids in the profile.php mod above still doesn't solve this.
I have this exact same problem and have spent most of the night trying to figure it out without luck. I have custom profile fields but have adjusted the array in profile.php, the final field is set to private, yet the location and forecast both remain blank (it is being written to the database if I change it).
Reply With Quote
  #65  
Old 07-13-2004, 06:26 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bryan Ex
Just a quick question on this.... it seems the list of locations is mostly in alphabetical order but not entirely. Is there a way to correct the sort order at all?

Btw... thanks very much for this! It's exactly what I was after.
Hi

Yes you can fix this, give a few seconds and I will post the code!


Sonia
Reply With Quote
  #66  
Old 07-13-2004, 06:28 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MooMan65
Sonia, I can't seem to email anything to that address without it getting bounced back so I'll attach the package here.

Unfortunatly I can't give you access to the forum I'm hacking as I don't own the license or the server. I'm managing the forums for someone else. But hopefully that package is enough. Thanks!
Hi MooMan65

Edit your post, I got the file, I will post you a new file very shortly!

Sonia
Reply With Quote
  #67  
Old 07-13-2004, 08:10 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ur demo is giving a 404
Reply With Quote
  #68  
Old 07-13-2004, 11:33 PM
MooMan65's Avatar
MooMan65 MooMan65 is offline
 
Join Date: Mar 2002
Location: New Zealand
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you! Hopefully this will fix it all.

EDIT: Holy crap! I got it working! Woo! The profile.php changes is all you need to do in the end I believe. Because the Field9 (that by default is the Region) is instead my Temperature Format selection. So after selecting a region which didn't seem to work I noticed that I didn't have either Radio button checked for the Temperature. It was probably confusing the two fields still so I selected an option there and voila! The same process should fix it for the other options. I asked another member to set it up from that point on and he had no problems, so it seems it's all ready now.

Oh Sonia, have you even done anything with relation to the 'display current weather on forumhome' option? As I don't see any instructions relating to it. But thx for the great hack! And the support you're giving.
Reply With Quote
  #69  
Old 07-14-2004, 02:45 AM
momzone momzone is offline
 
Join Date: Jun 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is a great hack! Thanks Sonia - you rock :-)
Reply With Quote
  #70  
Old 07-14-2004, 02:49 AM
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 MooMan65
Oh Sonia, have you even done anything with relation to the 'display current weather on forumhome' option? As I don't see any instructions relating to it. But thx for the great hack! And the support you're giving.
Yeah! What he said ^ !! It's now working for me as well even with custom fields already in use but as mentioned above there were no template edits for Forum Home and it does not appear on the index page. Everything else is fine that I've seen so far. :nervous:
Reply With Quote
  #71  
Old 07-14-2004, 03:01 AM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sort order for the list of locations could use a little adjustment so they are listed by name rather than ID... many are out of place making it very difficult to find some locations.
Reply With Quote
  #72  
Old 07-14-2004, 04:47 AM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

An easy addition to include Sonia's weather hack in the Who's Online module;

Open includes/functions_online.php and find;
PHP Code:
        case 'manageattachment':
            
$userinfo['action'] = $vbphrase['managing_attachments'];
            break; 
Directly after it add;
PHP Code:
        case 'weather':
            
$userinfo['action'] = 'Viewing Weather Forecast';
            
$userinfo['where'] = "<a href=\"profile.php?$session[sessionurl]do=weather\">Weather Forecast</a>";
            break; 
Then find;
PHP Code:
        else if ($values['do'] == 'editattachments')
        {
            
$userinfo['activity'] = 'attachments';
        } 
Directly after it add;
PHP Code:
        else if ($values['do'] == 'weather' OR $values['do'] == 'places' OR $values['do'] == 'forecast')
        {
            
$userinfo['activity'] = 'weather';
        } 
Save and upload... that's it.
Reply With Quote
  #73  
Old 07-14-2004, 06:00 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why-not, is it just me or your demo link is dead ?
Reply With Quote
  #74  
Old 07-14-2004, 06:07 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sonia, thx dear

Works great

Awaiting the cron update
Reply With Quote
  #75  
Old 07-14-2004, 06:15 AM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more item... the style sheet isn't being used on my install for some reason. The link was added after the HEAD tag in usercp_shell (I've double checked it) and I've also checked that both the style sheet and all images have been properly uploaded.
Reply With Quote
  #76  
Old 07-14-2004, 06:23 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you didn't tampered the code, cause it works fine for me?
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 02:58 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.05977 seconds
  • Memory Usage 2,379KB
  • Queries Executed 30 (?)
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
  • (1)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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