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)

Schorsch 08-08-2002 05:01 PM

how can I change fahrenheit in celsius ?

ExAvIoUr 08-08-2002 05:03 PM

click on change setting in the weather pert of the forum. then change it there.

its thats easy

Schorsch 08-08-2002 05:18 PM

how do the weather symbols look on a dark background ?

because I think they look quite frayed. I can't say it exactly because I didn't install the hack yet.

would be nice if somebody could give a short information.

regards,
Schorsch

Schorsch 08-09-2002 02:15 AM

hmmm see: http://www.minifreunde.com/images/weather//34.gif
looks not so good on dark backgrounds :(

can somebody make some sybmols that fit on dark backgrounds ?

cu
Schorsch

joeboo 08-09-2002 02:15 AM

great job on the weather hack, i installed it with no problems :)

DarkDraco07 08-09-2002 02:50 AM

whats so bad about that symbol? it looks fine

Schorsch 08-09-2002 03:00 AM

u can see this ugly white border on dark backgrounds!! looks not so groovy in my mind :beard:

joeboo 08-09-2002 04:37 AM

bah, i use it on a dark background and it aint that bad. it looks fine, and i aint complainin. just modify yourself, u can easily do it with even paint

hypedave 08-09-2002 05:29 AM

I get this following error

Fatal error: Call to undefined function: convert_temp() in /home/ochroma/public_html/forums/index.php on line 581

JJR512 08-09-2002 09:18 PM

Did you insert the functions into functions.php, as described in Step 5 of the instructions? Did you save functions.php after modifying it? Did you upload it to your forums/admin directory after saving it after modifying it?

Boofo 08-09-2002 09:22 PM

JJR512,

Do you have any idea why the "Time Last updated" is still showing the server time and not the local user's time? The serevr is set to GMT and my time is -6 and it is always 6 hours behind.

hypedave 08-09-2002 10:38 PM

Quote:

Originally posted by JJR512
Did you insert the functions into functions.php, as described in Step 5 of the instructions? Did you save functions.php after modifying it? Did you upload it to your forums/admin directory after saving it after modifying it?
yes I did, right now im using the old index.php until I can fix that error.

Boofo 08-10-2002 04:30 AM

Would you mind sharing your template for that? It looks fantastic! :)

Quote:

Originally posted by snyx
lookin tight man! love this hack..

PhoenixBB 08-13-2002 09:28 PM

Hit a bit of a problem......

One of my members has just told me she can't set the weather for her area - South Carolina. There are no cities listed for that (though there are for North Carolina). Have I got missing files somewhere??

I never got any errors when inputting the data into the database so is everybody missing data for South Carolina?

Matt87 08-13-2002 09:41 PM

Are you sure this is alright doing this with the weather channel, doesn't this use up their bandwith?

JJR512 08-14-2002 05:17 AM

Quote:

Originally posted by PhoenixBB
Hit a bit of a problem......

One of my members has just told me she can't set the weather for her area - South Carolina. There are no cities listed for that (though there are for North Carolina). Have I got missing files somewhere??

I never got any errors when inputting the data into the database so is everybody missing data for South Carolina?

I have many cities listed for South Carolina.

Did you use the weather_city.sql (one big file) without breaking it apart? If you did, you should have them. If you broke apart the large file into smaller pieces, you may have accidentally somehow cut out the SC cities. Or, if you used the smaller weather_city1.sql, weather_city2.sql, and so on (through 6) that I put in the last release, I may have accidentally left out the SC cities. So, please let me know how you did it.

Matt87, this doesn't use any of The Weather Channel's bandwidth, because the data comes from MSNBC servers. I assume it is OK with MSNBC because: (1) the data is publically available, and not blocked or protected by password; (2) I have sent emails to MSNBC asking for additional information regarding the formatting of the raw data, and although I have received no helpful reply, they also have not asked me to stop using their data feed, either. So, I am taking this as implied consent.

PhoenixBB 08-14-2002 03:11 PM

Hi

I used the chopped files given by the previous member, and you are right I probably accidentally missed some off.

Even the chopped files wouldn't always load without timing out on phpMyAdmin. Anything over 300k and it's potluck as to whether they'd upload without timeout errors. So those files I pasted half in, then the other half. Obviously I missed a bit out.

I went and downloaded your zip again and reuploaded the cities (after emptying the tables). 5 of the files I split in two so they were all under 300k. I double double checked I hadn't missed anything! ;)

Reuploaded them and everything went smoothly. Database holds 37k + where before it was only 36,000+. South Carolina now has cities and everything seems to be peachy! I'd have been totally oblivious if I hadn't had a member from there though. ;)

This is a fabulous hack and everybody loves it! :D

Now if only I can find a daily horoscope widget.........

beemer 08-15-2002 07:41 AM

Best hack so far, very cool work!!

lemarsu 08-15-2002 03:29 PM

Hi,

i get the following error:

Fatal error: Call to undefined function: convert_temp() in /home/sites/site12/users/ducati/web/monster/index.php on line 417

I Have version weather_mk2_v1[1].1a the file weather.php is loaded in the root for my forum web/monster/ with the following premissions.
-rw-r--r-- 1 ducati site12 weather.php

can you spot what is going wrong ?

LeMarsu

Matt87 08-16-2002 12:00 AM

Is there any way to put this in ther user's cp instead of the forum home page?

Boofo 08-16-2002 12:04 AM

JJR512, have you noticed that all of the update times end in 40 minutes? :)

Matt87 08-16-2002 03:54 PM

Anyone know how to do this?

Boofo 08-16-2002 04:54 PM

Do you want just the link in there or are you wanting to put all of the weather info in there, too?

Quote:

Originally posted by Matt87
Anyone know how to do this?

beemer 08-16-2002 05:14 PM

Lemarsu, you are getting this error because you didn't put all the changes in before you tested it. You have to put the functions into the admin/functions.php file. Do step #5 and the error will dissappear.

beemer 08-16-2002 05:15 PM

Boofo, I did notice the same thing, everytime I do an update, it ends in 40 minutes, regardless of when I do this.

Boofo 08-16-2002 05:29 PM

And how far off of your time are you when the update happens? I finally got mine to about 40 minutes ahead of my time. That is the closest I could get. :)

Quote:

Originally posted by beemer
Boofo, I did notice the same thing, everytime I do an update, it ends in 40 minutes, regardless of when I do this.

Matt87 08-16-2002 08:02 PM

I want to put everything that would be on the forum home

JJR512 08-17-2002 01:26 AM

Boofo, if your update time is always ahead of your current real time, try adjusting it backwards by an hour by following the suggestion in Post #95 above. Subtracting 3600 (number of seconds in one hour) makes it one hour earlier.

Boofo 08-17-2002 02:35 AM

Here's the code Xenon gave me to make it close. It was setting at the server time before (which is 6 hours behind me).

Code:

$time_lastup = strtotime($weatherdata[lastup]);
  $time_lastup-=($bbuserinfo['timezoneoffset']+$timeoffset)*3600;
  $weather[updatedate] = vbdate($dateformat,$time_lastup);
  $weather[updatetime] = vbdate($timeformat,$time_lastup);

Quote:

Originally posted by JJR512
Boofo, if your update time is always ahead of your current real time, try adjusting it backwards by an hour by following the suggestion in Post #95 above. Subtracting 3600 (number of seconds in one hour) makes it one hour earlier.

JJR512 08-17-2002 02:46 AM

Try changing the 3600 to 7200.

Boofo 08-17-2002 03:08 AM

That made it 6 hours ahead of me. And the time still has the 40 minutes after it no matter what time I force update it. :)

Quote:

Originally posted by JJR512
Try changing the 3600 to 7200.

JJR512 08-17-2002 03:23 AM

I think you're confusing something. The update time has nothing to do with when you received a weather update. It is the time that the weather data was actually created or posted by The Weather Channel at MSNBC.com. It's the time that they issued that weather update.

Boofo 08-17-2002 04:09 AM

Oh, ok. Then they must be doing it at 40 minutes past the hour all the time? That would explain why it always says that then. :)

The only problem I have now then is that when a new user logs in, the New York Weather (my default) always says it was updated 12 hours behind the server time (which is GMT), with xenon's added code, that is. Once I regsiter or log in, it says the right time (or close to it) for me which is GMT -6. Other than that (and still not being able to force update), this hack is working great! ;)

Quote:

Originally posted by JJR512
I think you're confusing something. The update time has nothing to do with when you received a weather update. It is the time that the weather data was actually created or posted by The Weather Channel at MSNBC.com. It's the time that they issued that weather update.

Matt87 08-17-2002 06:59 PM

Is it possible to put this in the users cp... like above the box for New Private Messages on the main page of the user cp.

JJR512 08-17-2002 09:33 PM

I have to admit that I don't understand the whole time system in vBulletin well enough...server time, user time, etc., and frankly, I think there are certain...let's just say "inconsistencies"...in the way it's all programmed in regards to GMT which never goes on daylight savings time yet the actual time zone that covers GMT does, and a bunch of other things that are all very confusing. Whatever logic there is behind the whole thing is lost on me. Without properly understanding it, I don't think I can really put it to effective use in the hack.

As for the user cp thing...Theoretically it's possible, but I haven't done it yet. The general theory is you take the code the instructions say to put in index.php and put it into whatever file it is that generates the page on the screen. I think the user cp is usercp.php but there may be other files that also generate the user cp page depending on what you're doing (member.php, member2.php, maybe others as well). The general theory is also that you put the code in the file just before the template that is the main part of the page gets called. Then you put the variable that has the weather template in it in the template for the page you want where you want it.

webhost 08-18-2002 11:13 AM

Did the time ever get fixed? I installed this last night and it is a great addition to the forum just the time is out of wack a little.
I used eastern time so on the forum at the bottom it says for example 8:12 am the time now but the weather time under the weather box shows 10:12 am. Can this be fixed?

webhost 08-18-2002 02:19 PM

Something wrong with this country and city also gif does not showup and all readings are out of wack.
Bukit Timah, Singapore

scottct1 08-20-2002 10:17 PM

Tonight my weather is wierd, there is no "now" forecast. I can see the 5 day find but now is not available.

Is MSNBC having problems again or did they change something again?

Erwin 08-20-2002 10:47 PM

Working fine for me still. :)

Boofo 08-20-2002 10:50 PM

My current weather is not showing either and I do have the 5 day forecast showing. MSNBC must be doing something or the current weather is down at the moment. Erwin must have his set to "Magic" weather. :)

Quote:

Originally posted by scottct1
Tonight my weather is wierd, there is no "now" forecast. I can see the 5 day find but now is not available.

Is MSNBC having problems again or did they change something again?



All times are GMT. The time now is 02:25 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.01293 seconds
  • Memory Usage 1,821KB
  • 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
  • (1)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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