vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Weather Mk. 2 (https://vborg.vbsupport.ru/showthread.php?t=41842)

Ian 08-04-2002 11:28 PM

I'm having trouble putting weather_city.sql in the database... Looks like it's timeing out, how do I split the file?

Thanks in advanced! :banana:

JJR512 08-04-2002 11:48 PM

Ian, open the file up...you can use Notepad (or any plain-text editor)...Just copy a bunch of lines, paste into a new file, name it 1.sql (or whatever). I'd try splitting it into thirds at first. Each line starts with INSERT INTO and ends in );

For the record, anyone installing it now and not getting current weather info...this is a problem from the source, not the hack (just saw my own city was like this, checked a few random other US cities and saw the same thing).

Ian 08-04-2002 11:50 PM

Is there a quicker way? It takes forever to highlight all those lines(there must be a shortcut)

JJR512 08-04-2002 11:52 PM

Put the cursor at the beginning of the file. Scroll down (with the scroll bar) about a third of the way down. Hold down the Shift key, then click at the beginning of a line there. That will highlight everything between where the cursor was and where you put it.

Itworx4me 08-04-2002 11:59 PM

Hi all,

I hope JJR512 doesn't mine. I added this to his hack. This will tell you what city,state, and country right after Your Current Weather. This will show on your forum home page. Your Current Weather For (City),(state),(country).

Find in forumhome_weather template
Code:

Your Current Weather
Then Add this right after Weather
Code:

For $weatherdata[city], $weatherdata[subdiv], $weatherdata[country]

Thanks for a wonderful hack JJR512

Boofo 08-05-2002 12:18 AM

Ok, I got everything installed and it works good except that I only have the 5-day forecast now and no current weather. There is no icon and all there are zeros for the current weather but the 5-day forecast works great! :) Also, the force update still doesn't work for me. Could it be that my ISP is using PHP version 4.2.2 on the server, as to why the force update doesn't work? (JJR512, I notice your server uses version 4.1.2.)

Erwin 08-05-2002 12:28 AM

Works great, JJ. The only problem is that the default NY, USA weather for guests doesn't work - there is the "Offline" icon, and no numbers. Any ideas?

Erwin 08-05-2002 12:33 AM

I see... the NY, NY, USA weather results are not showing for CURRENT weather, but the 5-day forecast is showing... weird.

Other cities seem okay.

Boofo 08-05-2002 12:36 AM

Erwin,

Can you check Des Moines, Iowa, USA and see if it shows the current weather for you, please? :)

Quote:

Originally posted by Erwin
I see... the NY, NY, USA weather results are not showing for CURRENT weather, but the 5-day forecast is showing... weird.

Other cities seem okay.


Erwin 08-05-2002 12:37 AM

Other cities are working, though. For example, Melbourne Australia works great... it's unfortunate that the default city is not working... Any ideas?


All times are GMT. The time now is 04:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01396 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete