WordPress Blog Add On for Carterlake Templates updated for WP 2.9+

I updated step 7 in the instructions and I fixed Phil’s site.

ajax-gizmo.php had a conflict with ajax-dashboard.php because the gen_difference function was being declared twice.
You were several months behind in updates to the world-ml template. This bug must have been fixed by Ken sometime since you installed your template.

If you go here, you will see the Version History.
http://saratoga-weather.org/template/index.php
It would be a good idea for anybody to keep up-to-date with the template changes.

Excellent work Mike many thanks for the time and effort I wouldn’t have had a clue!

Now to get on with the wordpress installation

Phil

Ok all installed everything ok until I click on the

“Appearance” and choose the theme “Weather Display Blog by Tony Hake & Jack Ahern.”

when I get this error message

Warning: fopen(./flyout-menu.xml) [function.fopen]: failed to open stream: No such file or directory in /home/.sites/150/site462/web/flyout-menu.php on line 92 could not open XML input from ./flyout-menu.xml

Any ideas?

Phil, douple check Step 5 …

Change these three settings in flyout-menu.php: …

WICKED

My Blog Page is now up and running. Many Many thaks to all involved, especially to Mike for his excellent assistance.

Please take a look, log in and add a comment.

Just got to think of stuff to write!!

Oh well I’ll sleep on it

Phil :smiley:

Hi

Just installed wordpress - at Its running almost ok. Just two things is not working correctly - and I have been searching the Forum and the net without finding the solution.

  1. The ajax - current condition icon - the text part shows funny character intead of the danish letters

You can try changing this setting in wp-config.php

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

Hi

I need some CSS help here with my blog-page http://www.strandvejr.dk/wxblog/. It doesnt look good at the main blog page. The entries is not showing up in the right way.

What is wrong?

And there is a Firefox problem as well - when I view the page in FF3 the left sidebar does not look good either.

I use the attached CSS file for the hole site.

best

strandvejr


weather-screen1.txt (22.8 KB)

strandvejr,

When you post a blog entry with an image you should post the image at the top, then follow the image with a sufficient amount of text to make a paragraph as tall as the image. This way the page will not look like that with the next blog entry next to the image from the last entry…
I am not sure why it has to be that way, but it does.

Sorry I can’t help with the menu, I do not have the time.

Hi

Ok and thanks - sometimes things are just the way things are.
I’ll live with that for now.

best

strandvejr

Maybe someone can lend a hand here, I have everything up and running, works great, But i am one of those people that likes everything to be Valid XHTML 1.0 lol, So after getting everything up and running, here is the error it gives when checking:

Sorry! This document can not be checked.
Sorry, I am unable to validate this document because on line 220 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.

The error was: utf8 “\xB0” does not map to Unicode

I looked high and low for the /xB0 and can not find it, and when the page loads looking at the source here it what it says:

So not sure where it is coming up with that.
thanks.

Albert, What is the URL to your blog?

http://www.johnstownpaweather.com/weather/wxblog

Line 220 is your dewpoint display in the ajax gizmo.

I found this when viewing the source:

<span class="ajax" id="ajaxdew">41.6�F</span>

looks like your degree symbol got munched somewhere along the way. #-o

Just my $.02 :wink:

George

Yea i see what you are talking about, After looking at my other pages they are fine except the wordpress is the only place it is showing up. so has to be in one of the scripts that is calling it. looking for it now.
Well found where it is calling it from, it get it from ajax-gizmo.php and all the other pages use it and that don’t show up in there, here is the data from the php part of that:
<?php $t1 = strip_units($dewpt); echo $dewpt; ?><?php echo gen_difference( $dewpt, $t1-$dewchangelasthour, '', 'Increased %s'. $uomTemp .' since last hour.', 'Decreased %s'. $uomTemp .' since last hour.'); ?>

After playing and playing around, Think i found the problem, Seem there was a power outage around the timestamp and well now that computer won’t boot, Just my luck hahahaha. Now the work begins to fix a crash!

Somewhere in wordpress it is adding that and no idea where.
Also took notice that all the other pages load the ajax and updates, but the wordpress page is not.

Ok back in the game, got the system back up and running, And put all the files back the way they should be for wordpress with the template from mike, Still getting the same issue with the same error:
The error was: utf8 “\xB0” does not map to Unicode. when passed to the validation. Also as the other person posted about the weird char in the ajax part, that still does it and is not updateing, where the rest of the pages are. so now really lost.
even followed the instructions to a t!

thanks.

Albert,

This is caused by a bug in ajax-gizmo.php

Edit your ajax-gizmo.php
change:

<?php
			 $t1 = strip_units($dewpt);
			 echo $dewpt;  ?>

to:

<?php
			 $t1 = strip_units($dewpt);
			 echo $t1 . $uomTemp;  ?>

Let me know if that fixed it, because if it does fix it, then I will contact Ken True to have him fix it in the downloadable template set.

After making the above change, the ajax is working but then it says:
Fatal error: Call to undefined function do_action() in /home3/johnsto1/public_html/weather/wxblog.php on line 50

If i remove that back out of ajax back to where i was.
Not sure if this helps or not, the hosting server is php 5.

Ok now in IE and Firefox, that error is gone, and page is now xhtml valid. Strange but the ajax is it suppose to update like the rest of the pages are set 5 seconds or not. that is what i am seeing now, that it grabs the data when the page loads but does not update.

I am thinking something does not like the php 5 on the server, as what it is doing, is messing up once in a while between ie and firefox, newest ver is firefox and ie on this end, in firefox now it is not updating every 5 mins like it was at first and now cutting the flash header out. in ie everything is there working, except it is not updateing the ajax at all now, just stuck at one time slot.
Thanks.

Albert, It looks like it is working to me. I do not seethe error. It should work fine on PHP5

Thanks Mike!

Best regards,
Ken