![]() |
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 06:10 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:
|