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

I do have SSH access and can send those commands should I wait to do this untill it’s looked at more or should I go ahead and to this? Will it affect any other parts of my website after I do that in the shell. Only thing I have ever used SSH for is setting up my crons.

Jonathan

ps do you have a donate button ?
you have been very helpful with all my questions I have ever had!

thanks again

I’ve done a bit of testing and found I needed a few more bits to make the template work in a subdirectory with a gizmo on the page.

cd wxblog
ln -s ../Settings.php Settings.php
ln -s ../Settings-weather.php Settings-weather.php
ln -s ../CUtags.php CUtags.php
ln -s ../CU-defs.php CU-defs.php
ln -s ../common.php common.php
ln -s ../top.php top.php
ln -s ../header.php header.php
ln -s ../menubar.php menubar.php
ln -s ../ajax-images ajax-images
ln -s ../include-style-switcher.php include-style-switcher.php
ln -s ../flyout-menu.php flyout-menu.php
ln -s ../footer.php footer.php
ln -s ../ajax-gizmo.php ajax-gizmo.php
ln -s ../weather-screen-narrow-blue.css weather-screen-narrow-blue.css
ln -s ../ajaxgizmo.js ajaxgizmo.js
ln -s ../ajaxCUwx.js ajaxCUwx.js
ln -s ../get-metar-conditions-inc.php get-metar-conditions-inc.php
ln -s ../cache cache

Then make a copy of flyout-menu.xml to the directory and edit it to make all the link=“” entries as either absolute entries like link=“/<pagename” or relative entries like link=“…/” (otherwise the links will all be relative to the subdirectory, instead of one directory up).

Hope this helps…

Best regards,
Ken

BTW… there’s a donate button on any of the scripts pages if you feel so moved :slight_smile:

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?