cloudy

Author Topic: WordPress Blog Add On for Carterlake Templates updated for WP 2.9+  (Read 21654 times)

0 Members and 1 Guest are viewing this topic.

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
WordPress Version 2.9+ is out. (this addon is no longer backwards compatible with pre 2.9 WP versions)
It has significant enough changes to require a new wxblog theme update for WP 2.9
I have done this upgrade on my server.

Wordpress weather template theme by Mike Challis, Tony Hake, and Jack Ahern
Free PHP Scripts - www.642weather.com/weather/scripts.php
Download         - www.642weather.com/weather/scripts/wxblog.zip
Live Example     - www.642weather.com/weather/wxblog/
Contact Mike     - www.642weather.com/weather/contact_us.php

The WordPress Weather blog is a collaborative project by users of Weather Display to develop an integrated blog capability for Ken True's PHP / AJAX website templates. This does require a working knowledge of websites, FTP, editing of files, etc. It is assumed that you already have a working version of Ken's templates up and running on your website.

------------------------------------------------------------------
How to install a wordpress 2.9+ blog into your carterlake template
------------------------------------------------------------------

This is what you need to do:
-------
Step 1)
-------
It is assumed that you already have a working version of Ken's templates up and running on your website.
http://saratoga-weather.org/template/index.php

 * If you use the theme switcher on your site:
     Install this new style switcher css set version 1.18 18-Jan-2009 or higher:
     http://www.642weather.com/weather/scripts/css-theme-switcher.zip
     replace all the css files and the include-style-switcher.php from this zip file to your server where your weather site template is
     If you use the world-ml template you have to use the latest include-style-switcher.php (from the world-ml template download)
 
 * If you DO NOT use the theme switcher on your site:
     and... If you are using an unmodified css file from the template distribution:
     download: http://www.642weather.com/weather/scripts/css-theme-switcher.zip
     replace the one css file from this zip file to your server where your weather site template is

 * If you DO NOT use the theme switcher on your site:
     and... If you are using a custom or css file:
     Edit the CSS file your site uses and place the contents of the "css-additions.txt" (found in the zip file you downloaded) at the end of your CSS file.

If you use my whos online script, you need to update it to this version or higher:
(if you no not use it, skip the rest of this step)

Version: 1.06  18-Dec-2008
- added mysql link identifier to each mysql call (for better compatibility if you have another mysql app in your site template, ie: wordpress)

Download
http://www.642weather.com/weather/scripts/whos-online.zip

also put a copy of the spiders.txt from the whos-online zip file in your wordpress main folder
yoursite.com/wxblog (substitute wxblog with whatever you named your wordpress installation folder)

-------
Step 2)
-------
Edit your weather template Settings.php
make sure you have this setting in your weather template Settings.php: (if not, then add it)
Add this just after the $SITE['organ'] line:
Code:

Code: [Select]
$SITE['site_url'] = 'http://www.yourwebsite.com'; // set to your site url without slash on end
// can also be http://www.yourwebsite.com/weather if you have the site in a folder named 'weather'
// do not use a file on end: http://www.yourwebsite.com/index.php

-------
Step 3)
-------
Edit your weather template Settings.php
Change the line:
Code: [Select]
$SITE['imagesDir'] = './ajax-images/'; // directory for ajax-images with trailing slashto
Code: [Select]
$SITE['imagesDir'] = 'http://www.yourwebsite.com/ajax-images/ '; // directory for ajax-images with trailing slash
-------
Step 4)
-------
If using the standard menu:

    * You must open the "menubar.php" file and change all of the site links to your full site address, i.e. href="wxindex.php" to href="http://www.yourwebsite.com/wxindex.php".

If using the flyout menu:

    * You must open the flyout-menu.xml file and change all of the site links to your full site address, i.e. link="wxindex.php" to link="http://www.yourwebsite.com/wxindex.php".
    * Change these three settings in flyout-menu.php:

Code: [Select]
     // ---------- settings ------------------------------
      $MENUdef = './flyout-menu.xml'; // (relative) file location of XML menu definition file
      $MENUdefTest = './flyout-menu-test.xml'; // (relative) file location of test XML menu definition file
      $imagesDir = './ajax-images/';  // (relative) URL location of images dir (with trailing '/')
     and add FULL URLs (i.e. http://www.yoursite.com/ajax-images/)

Code: [Select]
     // ---------- settings ------------------------------
      $MENUdef = 'http://www.yoursite.com/flyout-menu.xml'; // (relative) file location of XML menu definition file
      $MENUdefTest = 'http://www.yoursite.com/flyout-menu-test.xml'; // (relative) file location of test XML menu definition file
      $imagesDir = 'http://www.yoursite.com/ajax-images/';  // (relative) URL location of images dir (with trailing '/')


-------
Step 5)
-------
Modify your weather templates ajax-gizmo.php and ajaxWDwx.js as described below:

Edit ajax-gizmo.php and check the setting:
Code: [Select]
$imagesDir = './ajax-images/';
  * make it a FULL URL, like this:
Code: [Select]
   $imagesDir = 'http://www.yoursite.com/ajax-images/'; // end with slash
Edit ajaxWDwx.js and check the setting:
Code: [Select]
var imagedir = './ajax-images';
  * make it a FULL URL, like this:
Code: [Select]
   var imagedir = 'http://www.yoursite.com/ajax-images'; // no slash on end
Edit ajaxWDwx.js and check the setting:

Code: [Select]
var clientrawFile = './clientraw.txt';  * make it a FULL URL, like this:

Code: [Select]
var clientrawFile = 'http://www.yoursite.com/clientraw.txt'; // no slash on end
-------
Step 6 )
-------
If you are using crtest.php (the Live Update Error script for WD):
Because your blog is in a different directory such as wxblog/, that makes the relative path for clientraw.txt incorrect.
To fix it, edit crtest.php

change:
$lu_crfile = './clientraw.txt'; to full server path like this:
$lu_crfile = '/full/path/to/clientraw.txt';
change "/full/path/to/" as needed
then comment out this line like this:
//if (isset($site['clientrawfile'])) {$lu_crfile = $SITE['clientrawfile']; }

Then it should work on your main site and the blog

-------
Step 7 )
-------
Install Wordpress to 2.9 or higher version (this addon is not backwards compatible with older WP versions!)
http://wordpress.org/download/
Go to the WordPress Website. From there, follow the directions to download and install the WordPress software to a subdirectory of your website. For purposes of these instructions, we assume you install it to a subdirectory called "wxblog" but it doesn't really matter.
http://codex.wordpress.org/Installing_WordPress

    * Note that your web server / webhosting company must allow this type of software and it must meet the minimum requirements for WordPress including PHP and MySQL. Please see the WordPress site for details.
http://wordpress.org/about/requirements/

Once you have verified your WordPress installation is working, move on to the next step.

-------
Step 8)
-------
Install the custom wxblog theme in the wordpress themes folder:
Download it
http://www.642weather.com/weather/scripts/wxblog.zip
unzip this file on your local computer

Using FTP, create a subdirectory under the WordPress themes directory - the name doesn't really matter but choose a name you will remember. I used "wxblog".
If your blog is installed to "wxblog", navigate to wxblog\wp-content\themes and create the new directory.
Upload all files from the wxblog\wp-content\themes\wxblog zip file directory into this new directory on your server.

-------
Step 9)
-------
Upload the top-level2.php file from the zip file to the root directory of your weather template website
(the same place you have all of the other Weather Display / AJAX / PHP template files).

-------
Step 10)
-------
Open the WordPress administrator page through your web browser and log in (usually this will be found at http://www.yoursite.com/wxblog/wp-admin).
Click on "Appearance" and choose the theme "Weather Display Blog by Tony Hake & Jack Ahern."

NOTE: When you click on the theme the preview opens, click the link in the top right that says, "Activate Weather Display Blog by Tony Hake & Jack Ahern" to proceed.

-------
Step 11)
-------
see if it worked, go to http://www.yourwebsite.com/wxblog/

If there are any issues, report them and I will try to help.

-------
Credits:
-------

This plugin was a collaborative effort by:

    * Tony Hake of Thorntonweather.com
    * Jack Ahern of Stillweather.com
    * Mike Challis of 642weather.com (current maintainer)

Credit also should be given to Ken True of SaratogaWeather.com and Tom Chaplin of CarterLake.org. Tom created the original templates that so many Weather Display users now enjoy. Ken took them further by enhancing them with PHP and AJAX. Their contributions to the PWS and WD community are greatly appreciated!

Last but not least, thank you to Brian Hamilton for creating the Weather Display personal weather station software. Without his software none of this would be possible!  

« Last Edit: December 22, 2009, 07:48:29 PM by MCHALLIS »

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.9+
« Reply #1 on: December 20, 2008, 01:24:38 AM »
----------------------------------------
These instructions are for upgrade only.
----------------------------------------

The WordPress Weather blog is a collaborative project by users of Weather Display to develop an integrated blog capability for Ken True's PHP / AJAX website templates. This does require a working knowledge of websites, FTP, editing of files, etc. It is assumed that you already have a working version of Ken's templates up and running on your website.

---------------------------------------------------------------------------------
How to upgrade your carterlake template blog from wordpress 2.x to wordpress 2.9+
---------------------------------------------------------------------------------

This is what you need to do:
-------
Step 1)
-------
It is assumed that you already have a working version of Ken's templates up and running on your website.
http://saratoga-weather.org/template/index.php

 * If you use the theme switcher on your site:
     Install this new style switcher css set version 1.18 18-Jan-2009 or higher:
     http://www.642weather.com/weather/scripts/css-theme-switcher.zip
     replace all the css files and the include-style-switcher.php from this zip file to your server where your weather site template is.
 
 * If you DO NOT use the theme switcher on your site:
     and... If you are using an unmodified css file from the template distribution:
     download: http://www.642weather.com/weather/scripts/css-theme-switcher.zip
     replace the one css file from this zip file to your server where your weather site template is

 * If you DO NOT use the theme switcher on your site:
     and... If you are using a custom or css file:
     Edit the CSS file your site uses and merge the contents of the "css-additions.txt" (found in the zip file you downloaded) into your CSS file.
     You might want to use a file compare program like "Beyond Compare" to make sure you do not double up any of the the changes.


If you use my whos online script, you need to update it to this version or higher:
(if you no not use it, skip this step)

Version: 1.06  18-Dec-2008
- added mysql link identifier to each mysql call (for better compatibility if you have another mysql app in your site template, ie: wordpress)

Download
http://www.642weather.com/weather/scripts/whos-online.zip

also put a copy of the spiders.txt from the whos-online zip file in your wordpress main folder
yoursite.com/wxblog (substitute wxblog with whatever you named your wordpress installation folder)

-------
Step 2)
-------
Edit your weather template Settings.php
make sure you have this setting in your weather template Settings.php: (if not, then add it)
Add this just after the $SITE['organ'] line:

Code: [Select]
$SITE['site_url'] = 'http://www.yourwebsite.com'; // set to your site url without slash on end
// can also be http://www.yourwebsite.com/weather if you have the site in a folder named 'weather'
// do not use a file on end: http://www.yourwebsite.com/index.php

-------
Step 3)
-------
Upgrade your wordpress to 2.9+
http://codex.wordpress.org/Upgrading_WordPress

-------
Step 4)
-------
update the custom wxblog theme in the wordpress themes folder with this new one:
Download it
http://www.642weather.com/weather/scripts/wxblog.zip
unzip this file on your local computer

upload the new wp-content/themes/wxblog files to your server to replace your old wxblog theme.
New in this version: there should be no need to edit any of the theme files

Step 5)
-------
Replace the top-level2.php file from the zip file to the root directory of your weather template website
(the same place you have all of the other Weather Display / AJAX / PHP template files).

-------
Step 6)
-------
see if it worked, go to http://www.yourwebsite.com/wxblog/

If there are any issues, report them and I will try to help.
« Last Edit: December 22, 2009, 07:30:04 PM by MCHALLIS »

Offline mister

  • Posts: 7
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #2 on: January 13, 2009, 06:04:38 PM »
Hi
first of all I apologize for my bad English  :oops:, this is translated by google
I think we should add this:

Edit ajaxWDwx.js and check the setting:

Code:
var imagedir = './clientraw.txt';
  * make it a FULL URL, like this:

Code:
    var imagedir = 'http://www.yoursite.com/clientraw.txt'; // no slash on end

Thanks to everyone for the excellent work


Offline ZooWx

  • Posts: 85
  • San Diego, CA
    • Balboa Park-Zoo-Bankers Hill Weather
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #3 on: January 13, 2009, 06:14:49 PM »
Mike,

If I try and view your blog using the Live Blog link in post # 1 I get a 500 error.  Fyi.

Wordpress weather template theme by Mike Challis, Tony Hake, and Jack Ahern
Free PHP Scripts - www.642weather.com/weather/scripts.php
Download         - www.642weather.com/weather/scripts/wxblog.zip
Live Example     - www.642weather.com/weather/wxblog
Contact Mike     - www.642weather.com/weather/contact_us.php

Mike

www.balboaparkweather.com

"because none of us are as dumb as all of us!"


Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #4 on: January 13, 2009, 06:24:39 PM »
I guess it likes a slash on the end, thanks
Live Example     - www.642weather.com/weather/wxblog/

Offline ThorntonWeather

  • Tony
  • Commercial
  • Posts: 459
  • Thornton, CO USA
    • ThorntonWeather.com
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #5 on: January 17, 2009, 09:35:31 PM »
Thank you to Mike for taking this over and for all the work you put in to it! 

While I may have gotten the ball rolling on this - with Jack's help - Mike has much more knowledge about PHP and WordPress than I and having him handle the development is much better for everyone.  :) 

    Tony

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #6 on: January 19, 2009, 12:20:16 AM »
Today I fixed a css problem that was causing too much sidebar right margin on wordpress blogs

* If you use the theme switcher on your site:
     Install this new style switcher css set version 1.18 18-Jan-2009 or higher:
     http://www.642weather.com/weather/scripts/css-theme-switcher.zip
     replace all the css files and the include-style-switcher.php from this zip file to your server where your weather site template is.
     If you use the world-ml template you have to use the latest include-style-switcher.php (from the world-ml template download)
 
 * If you DO NOT use the theme switcher on your site:
     and... If you are using an unmodified css file from the template distribution:
     download: http://www.642weather.com/weather/scripts/css-theme-switcher.zip
     replace the one css file from this zip file to your server where your weather site template is
« Last Edit: February 27, 2009, 05:48:32 PM by MCHALLIS »

Offline jahuff

  • Posts: 760
  • Northern New Hampshire, USA
    • Weather Data Pittsburg, NH
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #7 on: February 08, 2009, 01:32:31 PM »
Hi Mike,

I have installed Wordpress for the first time and it's working!!! The issue I am having is the page that comes up when I type http://www.johnsnhweather.com is messed up. I have attached a screen shot below. Any help would be appreciated.

Thanks,

John

Online BfdWx

  • Posts: 1,511
  • Branford Connecticut
    • Branford Weather
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #8 on: February 08, 2009, 02:04:39 PM »
Hi John,

Do you mean your clientraw.txt? It looks like it stopped uploading at 9:41, unless you are uploading it to a different directory? Check to be sure WD's live ftp is still running. In the blog page itself it would look for clientraw in something similar to ../clientraw.txt.

Jack

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #9 on: February 08, 2009, 03:07:28 PM »
Hi Mike,

I have installed Wordpress for the first time and it's working!!! The issue I am having is the page that comes up when I type http://www.johnsnhweather.com is messed up. I have attached a screen shot below. Any help would be appreciated.

Thanks,

John

That is because your blog is in a different directory wxblog/ and that makes the relative path for clientraw.txt incorrect
to fix it, edit crtest.php
change:
$lu_crfile = './clientraw.txt'; to full server path like this:
$lu_crfile = '/full/path/to/clientraw.txt';
change "/full/path/to/" as needed
then comment out this line like this:
//if (isset($site['clientrawfile'])) {$lu_crfile = $SITE['clientrawfile']; }

Then it should work on your main site and the blog.
I added this to the install instructions as step 7a  :D
« Last Edit: February 08, 2009, 03:12:06 PM by MCHALLIS »

Offline jahuff

  • Posts: 760
  • Northern New Hampshire, USA
    • Weather Data Pittsburg, NH
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #10 on: February 08, 2009, 03:08:31 PM »
Hi John,

Do you mean your clientraw.txt? It looks like it stopped uploading at 9:41, unless you are uploading it to a different directory? Check to be sure WD's live ftp is still running. In the blog page itself it would look for clientraw in something similar to ../clientraw.txt.

Jack

Hi Jack,
No the rest of the website is working fine, it's just the blog page that's not working.
John


Offline Zalmor

  • Posts: 550
  • Erin, NY
    • Zalmors' corner of the Web
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #11 on: February 18, 2009, 04:51:40 PM »
Wordpress Version 2.7 is out.
It has significant enough changes to require a new wxblog theme update.
I have done this upgrade on my server.

Wordpress weather template theme by Mike Challis, Tony Hake, and Jack Ahern
Free PHP Scripts - www.642weather.com/weather/scripts.php
Download         - www.642weather.com/weather/scripts/wxblog.zip
Live Example     - www.642weather.com/weather/wxblog/
Contact Mike     - www.642weather.com/weather/contact_us.php

The WordPress Weather blog is a collaborative project by users of Weather Display to develop an integrated blog capability for Ken True's PHP / AJAX website templates. This does require a working knowledge of websites, FTP, editing of files, etc. It is assumed that you already have a working version of Ken's templates up and running on your website.

------------------------------------------------------------------
How to install a wordpress 2.7 blog into your carterlake template
------------------------------------------------------------------

Got it working here now.  Replaced my old smf forum with Wordpress.   :roll:
Sent you an offline message today for a suggested update to the install process.
« Last Edit: February 23, 2009, 03:49:44 PM by Zalmor »
Michael A

Windows XP Pro SP3, Pentium D 2.80GHz 3GB RAM, Quickcam Pro 4000, and APC

Offline magical46

  • Posts: 447
    • Weybourne Weather
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #12 on: February 21, 2009, 08:20:53 PM »
Hi
I'm reading through this thread for the first time. I wanted to add a guest book to my site but after reading comments elswhere on the forum it seems wordpress is the way to go, however I'm not familier with blogs etc ( probably should ask my kids!!). If I install wordpress wxblog besides me puting in news etc can visitors leave reply and comments without having to register with wordpress or with me. The answer is probably on the wordpress website but there's a lot to take in and as this is basically what I need.

I am using theme changer (but need to update to the latest verion) and have recently installed the whos online script.

heers
Phil

Online BfdWx

  • Posts: 1,511
  • Branford Connecticut
    • Branford Weather
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #13 on: February 21, 2009, 08:27:45 PM »
Quote
If I install wordpress wxblog besides me puting in news etc can visitors leave reply and comments without having to register with wordpress or with me

You can set it up that way but I would strongly recommend that you do not! The spam/porn sites leave comments on a regular basis, but you can approve people to comment after they sign up, in other words they would only have to register once!

Regards,

Jack

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: WordPress Blog Add On for Carterlake Templates updated for WP 2.7
« Reply #14 on: February 21, 2009, 08:36:44 PM »
You can set it up that way but I would strongly recommend that you do not! The spam/porn sites leave comments on a regular basis, but you can approve people to comment after they sign up, in other words they would only have to register once!

Regards,

Jack

You can minimize that risk with my SI Captcha for Wordpress plugin:
http://wordpress.org/extend/plugins/si-captcha-for-wordpress/

It is rated 5 stars. I use it without registration required and do not get spam.

I also use akismet plugin: http://akismet.com/



 

cumulus