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

I have followed your instructions and something is still wrong I double checked spelling and logged in via WinSCP and can see all the link files in the WXblog directory. It however did do something you can read everything on the blog page just having trouble with the theme stuff I guess. Have a look
http://www.inclinemedialive.com/wxblog

thanks Jon

Looks like your top.php is reporting

Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/17/d158432740/htdocs/flyout-menu.php on line 115

Warning: fopen(http://www.inclinemedialive.com/flyout-menu.xml) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/17/d158432740/htdocs/flyout-menu.php on line 115

could not open XML input from http://www.inclinemedialive.com/flyout-menu.xml

Put a php.ini file in the wxblog directory that has

allow_url_fopen = on; 

in it.

it’s in there I had one in the root directory and copied on to the wxblog directory does not seem to change anything?

hmm

Now http://www.inclinemedialive.com/wxblog/top.php produces the correct ‘top’ part of the page.
Strange that it is NOT part of the http://www.inclinemedialive.com/wxblog/index.php page however… it seems to start with
the header.php part (omitting the top.php contents).

Also add a symlink for weather-screen-narrow-dark.css to your setup … my example used the default weather-screen-narrow-blue.css :slight_smile:

Does your index.php have an include for top.php (should be before header.php)?

symlink added was weather-screen-dark-narrow.css which was how the file name read that I have listed. I did do that and it was in the correct place I double checked in my ftp transfer program in the directory it shows the symlink file names with a little arrow in white if they are linked correctly and red arrow if the symlink is broken and not typed correctly.

as for the index.php your talking about the one in the wxblog directory correct?

in the main index.php in the root directory from your template top.php is included before the header.php, in the wxblog directory the index.php is the wordpress index.php and has not much code in it …

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>

is whats in the window.

So… something in wp-blog-header.php is not working correctly (it’s omitting the top part of the page from top.php)

here is the contents of the wp-blog-header.php

<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */

if ( !isset($wp_did_header) ) {

	$wp_did_header = true;

	require_once( dirname(__FILE__) . '/wp-load.php' );

	wp();

	require_once( ABSPATH . WPINC . '/template-loader.php' );

}

?>

I am receiving the following error message after following the wordpress installation instructions. Any help would be greatly appreciated.

Warning: include_once() [function.include-once]: Filename cannot be empty in /home4/jeremyd1/public_html/weather/top-level2.php on line 12

Warning: include_once() [function.include]: Failed opening ‘’ for inclusion (include_path=‘.:/usr/lib/php:/usr/local/lib/php’) in /home4/jeremyd1/public_html/weather/top-level2.php on line 12

Wordpress blog location:
http://www.jeremydenlinger.com/weather/wxblog/

the problem is at top-level2.php on line 12

What is in that file at line 12?

Mike

I have just installed this excellent script on my site at this address - http://www.brackenhouse.net/weather/wxblog/. I have just a couple of niggling little problems that I can’t resolve.

  1. The page drops down a line compared to other pages on the site - i.e. the image at the top of the page is lower down than all other pages.

  2. The gizmo only shows the temperature. The current conditions are missing, though they are present on all other pages.

Any help will be most appreciated before I make the blog ‘live’.

Thanks - ALAN.

I assume this is something to do with admin functions as the page displays correctly if I log out of admin.

UPDATE: I think it’s the admin bar that isn’t displaying. How do I get it to appear? It works fine with the default template.

Alan, here is the fix for the admin bar (and probably some other features that need wp_footer(); such as many plugins that put javascript there.)
edit this theme file:
/wp-content/themes/wxblog/footer.php

Change:

<!-- End wordpress code -->

To:


<?php wp_footer(); ?>
<!-- End wordpress code -->

All users should apply this update. The download has been changed to version 1.41 and updated. This is the only change.

Hi Mike,

My footer.php didn’t have the code …

<?php echo $footer ?>

My footer.php was as follows …


<?php ############################################################################ include("../footer.php"); ############################################################################ # End of Page ############################################################################ ?>

I added the code …

<?php wp_footer(); echo $footer ?>

… after ‘End Wordpress code’ and the admin bar appears.

Thanks for your help, now just need to get the gizmo working.

I corrected my post, leave the echo $footer out

It should look like this:

<?php wp_footer(); ?>
 <!-- End wordpress code -->

Changed the code to reflect your new coding, Mike and everything is working as it should.

Thanks!

I still need to get the current conditions on the gizmo working. It works fine on all other pages on my site but all I get on the blog is the large temperature displayed (see here). Anyone have any ideas?

Alan, view the source there is an error tag:
ajax-gizmo not loaded … no wxtags specified

I am not sure what that means, but
double check all the gizmo settings in step 5
http://discourse.weather-watch.com/t/37153

I think we may be getting somewhere here Mike. I have all my data, including clientraw.txt, in a sub-folder of my weather folder called ‘data’. So, although the weather site URL is http://www.brackenhouse.net/weather, the path to the data is http://www.brackenhouse.net/weather/data.

Something somewhere is not finding the WXtags because of this. Does that make sense?

If so, we need to tell the program that clientraw.txt testtags.php is located in a folder called ‘data’ in such a way that it can be found be all the other pages. But how?

SUCCESS !!!

In Settings.php, I changed …

// default settings needed for various pages when the weather software plugin is not installed.
// do not change these
$SITE['WXsoftwareURL'] = '#';
$SITE['WXsoftwareLongName'] = '(unspecified)';
$SITE['WXtags'] = ' ';

to …

// default settings needed for various pages when the weather software plugin is not installed.
// do not change these
$SITE['WXsoftwareURL'] = '#';
$SITE['WXsoftwareLongName'] = '(unspecified)';
$SITE['WXtags'] = 'testtags.php';

… and it works.

Not sure if this is the correct way of fixing the problem, or if it affects anything else, but it’s looking good.

HAPPY.

I wanted to touch base with this. I have been attempting to get a blog page going. The problem I have had so far, I have not been successful getting the blog page going properly. I have it all in a folder called “wxstories” http://lightningweather.com/wxstories
I have been getting a 500 internal server error attempting to go to this page, as if it doesn’t exist. not sure what I may be doing wrong. I do know my hosting (iPage) does allow wordpress. no matter what part of the folder I attempt to go to, it gives me a 500 internal server error. ](*,)

I have been able to follow all directions to getting the page set up except adjusting the /flyout-menu.xml to using the url/flyout-menu.xml. Changing that changes the entire site and takes it off line.
I am running the alt-ajaxdashboard, with the updated ajaxwdwx.js and settngs.php files. I don’t know if that makes a difference.
Can someone point me in the right direction?

Much appreciated in advance