![]() |
You can theoretically get it to appear on any page by adding the same bit of code you added to index.php to whatever file generates the page where you want it. For example, in vBulletin, if you wanted it to appear on the same page as a thread, you'd put it in showthread.php. Some files contain multiple actions which generate different displays and you may need to put the code in more than one spot in the same file. In general, you should probably put the code just before the line that calls the main template for the page you want it on. Because each page, file, and template are different, that is as far as I can go with helping to get it on other pages.
As for the other problem, I can't say if it's caused by the portal or not, because I don't have it. I don't know how the lite version is different from the regular version, but if it's really a portal, it should probably affect every single page. I just don't know how to help. |
In the 1.1 version, in the new bit of code to show the update time in the local correct time, I had used an incorrect variable. If you've already installed it, in both index.php and weather.php, please find:
Code:
$time_lastup = strtotime($weather[lastup]); Code:
$time_lastup = strtotime($weatherdata[lastup]); The fix will be in v1.1a which I am about to attach. This is the only difference between v1.1 and v1.1a, so if you already have v1.1, just use the fix I just described. |
JJR512 - Thanks, the update works great!
PhoenixBB - the vBPortal weather add-on adds a whole LOT of queries to your forum, as opposed to this one, which only adds 2. I actually removed vBPortal which has optimized by many many times. You can convert your forum index into a portal very easily - no need to use a 3rd-party program. |
It seemed to be working without the new variables being changed, but I've changed them anyway. :)
|
For some reason, the time of update lies 1 hour in the future for me... any way of fixing that?
|
What do you have your Time Zone Offset set to (in the admin cp/vbulletin options/date time options)? And your own time zone?
|
My time and timezone works everywhere else in vB - just not for weather.
Let me make sure I upgraded correctly... I followed the instructions in Post#79 and Post#82 - that's correct? |
I didn't say anything else doesn't work anywhere else. I'd just like to know what those settings are so I can test it myself and maybe see what's going on.
|
I see... the server time is Pacific Mountain Time. My time is GMT +10. Currently my time is 11:12 am. The Weather tells me that it last updated 11:40 am. (Has been telling me that since 10 am actually).
|
Is the server time Pacific Time or Mountain Time? The two are different (PT is GMT-8, MT is GMT-7).
|
All times are GMT. The time now is 11:47 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:
|