![]() |
Working here
Still wondering about the provinces in Canada for subdivisions as the are not showing up. Help would be appreciated. ThanX |
Hi there,
I am new to this PHP stuff and i am trying how to impliment the above hack.. I figured everything but I am unable to "Create new tables in your database using the file create_tables.txt. You can copy the entire contents of the file and paste into the query window in phpMyAdmin, or you could run each query individually through telnet. Please ask in at vbulletin.org if you need help in this regard." Help! Help! Help |
copy and paste the query window in phpMyAdmin should be enough.
|
I dont have a phpmyadmin
|
How do you access your database ? :surprised:
I am new to this, I only had phpmyadmin, or Linux to use to access the mysql databases. (not to sound to dumb I am working on a data warehouse project at work with Oracle and DB2 and Unix.... So I know what I am going) just this is the first time I user vbulletin |
Finaly figured it out Got it installed sucessfully.
Two Minor problems I modified the default city and when unregistared user is online the Default city is NY when registered user is online its the New Weather city any help???? How can i link the weather to a non php home site ( thats shtml)?? Thanks |
Anyone try this hack on 2.2.8 yet?? Would love to add it to my forums :)
Thanks In advance! |
I have it up and running with 2.2.8 with no problem.
|
Thank You!
|
WOW awesome m8 niceone must have took you ages to do all that sql code :D
but 1 question how can i add it to the Who's Online in online.php i get this Code:
Unknown Location: /forums/weather.php?&action=modifysettings&s= Code:
<a href="weather.php?s=$session[sessionhash]&forceupdate=yes">Force Update</a> |
Just an update, I've removed this hack because I found it to be slowing down, the loading of my frontpage, a lot.
|
Same here Ian, I just removed it from my site this morning. Seems like stuff went to hell when MSNBC changed from AccuWeather for The Weather Channel.
I still have the hack on my site, I just no longer have it on my index.php page. Good hack though. |
Correct, it's slowing down and so i removed it.
|
I've noticed it slows my page down too, but it only seems to be something like 0.3 seconds or so. Occasionally when the weather isn't available it seems to slow it down a little more, but that isn't very often. Was it slowing your sites down more than that?
|
Mine's still working quite quickly - no discernable changes really.
|
It works correctly WHEN the local weather is available froom MSNBC / Weather.COM however if its not available my users are seeing a 25 to 75 second wait before the page comes up.
|
I have to say that this is happening to me now - there is a bit of delay before the page loads, about 60 seconds on average...
|
Yea, I've noticed that it slows down even more now when the weather isn't available from MSNBC. At least I have mine set where I can easilly turn it off in my admin CP, so if I happen to notice it delaying things I can switch it off for a few minutes. :)
|
getting a problem i click the Force Update button and it goes to blank page whats up :(
|
@ wolfe - missing template? Make sure all your templates are inserted.
|
Changing the city/etc. doesn't work on your test board.
|
Quote:
|
Has anyone been able to sucesfully change the default NY settings to your own? I have replaced the NY code with mine, (under weather.php) but it doesn't work.
Any help? |
yes there are 2 places you need to change it in weather.php line 20 and line 201 aprox.
I think that all the changes I did. if it doesn't work have a look in the database, that is a place a looked in when I 1st installed the weather hack. all the best LeMarsu |
OK, thanks. Had to edit the database.
PlurPlanet - Can you please shoe me how to set it up that I can turn it on/off from the CP? I have translated the text of this hack to another language, but notice that text under the 1st pic (below Current Weather..) still shows in English. I have modified functions.php already... anyone knows where exactly in the database I can change this (haven't found it) I know it is the "context" or it just comes from The Weather Channel? |
are you talking about text like "Mostly Cloudy" or "sunny" ?
I think this is pulled out from msnbc.com |
Quote:
Just open the file the weather is displayed on (I'd assume it would be your forums/index.php, but of course you can display it in any file) and add this code right before the code for the weather: PHP Code:
Then using phpMyAdmin run this query: PHP Code:
|
PlurPlanet:
I followed your instructions. It whows under "Reason for turning board off". If I leave it on, the board will show up fine, but if I turn it off, the board will not show at all. Just a blank screen. |
wow this hack is real tight...this 1 gets my vote for HOM
|
Can we canadians use it for canadian cities?
|
PlurPlanet: Any help?
Lemarsu: Quote:
|
Julio - That's strange... I just tried it on my test server and it worked fine. You could try logging in with phpMyAdmin and go to your "setting" table. Then find that setting (it should be the last one unless you've added anything since) and check that the values for it are:
(could be any number) | 1 | Show Weather? | showweather | (0 if turned off, 1 if on) | Show the weather forcast on your homepage. | yesno | 3 |
Verified the database and is OK. The problem may be where Im inserting the IF code at index.php?
I have tried inserting the IF expression in a line before the "// *** GET WEATHER *** or after it. And finalize with the } before the ?> or after it. Depending where I put these, I get a blank screen , or a parse error. |
I couldn't find this anywhere else on this thread
When I try to up weather_city1.sql and weather_city5.sql I get Error SQL-query : INSERT INTO weather_city VALUES ( 'AYXX0007', 'Base Arturo Prat', 263 ) MySQL said: Duplicate entry 'AYXX0007' for key 1 Or something of the like ...I've never used a hack like this before so I have no clue why there would be a problem like this |
Julio - I didn't think about that... I was thinking more of the board was being closed when the weather was turned off. It definitely sounds like you are putting the ending } in the wrong place. Sorry I misunderstood your first post.
The if statement can be either before or after "// *** GET WEATHER ***" (doesn't really matter since that's a comment line). The ending } should be right after this line: PHP Code:
|
OK thanks. It works now...
Now... my other problem... I changed all the values in the tables to show another state besides Nw York as defalut, but still not work. Anyone could help? |
I've had to remove this hack. It's a great hack, but the weather server is just too bad - most of the time there is no information available, and it slows down my forumhome by many seconds...
|
Erwin: Too bad it doesn't work for you the way you expected. However, I do notice I slight increase in the time the page takes to load, but there's always information regarding my area.
The only "problem" i have is that even though I have edited the files and the database, I still can manage to make my area as default... All my users keep telling me they don't like to change te preferences... (New Users) |
I did this and for afew other tables to create. but for what was in this txt file:
PHP Code:
PHP Code:
|
Quote:
|
All times are GMT. The time now is 03:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|