WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available

Theme switcher Updated today ...

That was a really nice addition, thanks Mike!

Jack

added full css support for the Worpress Blog Addon "Weather Display Blog by Tony Hake & Jack Ahern"

Thanks, Mike! I’ll update our instructions to reflect the changes.

Tony

No problem…
Also I did not have to put my css files in the wordpress themes folder because I added the full url in the header to my main site folder for the css files.

I was checking out this thread & decided that I would like a blog added to my site. However none of my pages are PHP. Can this blog be added to a non php webpage? If so, what must I do? Or would it be way over my head? I already have the wordpress software running on my host.

Hi Drobbins,

Do you have php available? It would seem that you do if wordpress is on your server. Here are some of the initial requirements from Wordpress…http://wordpress.org/about/requirements/

If that is the case you should be able to run your blog page using php.

Regards,

Jack

Yes I am using e-rice.

Probably the best solution would be to follow the directions below from Tony, if you have difficulties post back I’m sure Tony can help you with this too!

When he says: “Then, either insert calls to the appropriate pages that generate the top, menu and footers for our site or just paste the coding itself.” Does he mean that I should paste the code from each one of those pages into my website template page thus generating 7 new web pages?

No, as he says here…

Glancing at the coding for your site, you would insert the WP coding between the section called "
" and the section called " .........just paste the coding itself.....
".

I think you have the same situation. Then you would just need to change your menu to include a “blog” tab.

Jack

Uh… Where is the Wp coding copied from? :oops: http://www.cavecountryweather.com/wxblog.html
http://www.cavecountryweather.com/wordpress/ Note I did not modify the 7 files. I got lost as to what to paste where.

Got to call it a night. Will get back to it tomorrow night.

Have you done the steps in #1 and 2 from the first post? The first step is to get WP downloaded and working, the specific theme can then be worked out. I realize it can be confusing, but you may have a better idea of what we are doing once you have WP up and running on a stand alone page. Don’t forget, you need to setup a MySql database on your e-rice account. WP will bring you through the steps to get up and running once you download it.

Jack

Yes I believe it is set up. I can log in and do administrator stuff at the dashboard. However when I go to my page I get the following http://www.cavecountryweather.com/wordpress/

That should be OK, go back to our instructions on the front post and pick it up at step 9 (notice the note there).

That leads me to the error messages in my last post. The template is looking php settings that do not exist. My site is not php set up so I can not link back to the settings. My original thought is if I could copy and paste the blog section of code into my html web page. If I change to the classic template, it works fine.

What causes this in filezilla?

tatus: Connection established, waiting for welcome message…
Response: 220 Welcome, username and password please…
Command: USER xxxxxxxxx
Response: 331 Password required for xxxxxxxxxx
Command: PASS **********
Response: 530 Sorry, the maximum number of clients (3) for this user are already connected.
Error: Could not connect to server

Well I am getting closer. :scratch: Better call it a night. :sleeping:
http://www.cavecountryweather.com/wordpress/

For anybody installing in a site that is not the standard carterlake php site from Ken’s recent distro:
then you have to custom code 8 wordpress theme files.
The files in the wordpress theme directory you need to edit have basically 3 sections of code:

[your weather site header section]

[wordpress blog code in the middle section]

[your weather site footer section]

My site was not the standard carterlake PHP site so I had to hand edit these files to put my site code in them in place of the header/footer sections.

The files I had to edit to modify the header and footer section were:
archive.php
archives.php
attachment.php
comments.php
index.php
page.php
search.php
single.php

there are other files in the same folder, but they do not need any code from your site.

It helps to just upload the files, then work on the index.php template file first and get that working and matching your site before editing the other php files in the wordpress theme directory. Be sure to add the CSS to your css file. Once you get the wordpress index working in your site template, then you can copy the header and footer part from your index file to the other files as needed.

We added tags in the files, so if someone needs to custom fit them into a different weather site, it is easier to find the wordpress code to use.

You have errors in the html where you call the wordpressblog.css

This part is messed up:

<link rel="stylesheet" type="text/css" href="http://www.cavecountryweather.com/http://www.cavecountryweather.com/tswnavbar.css" <link rel="stylesheet" type="text/css" href="wordpressblog.css" media="blog" title="blog" />

Mike,

Thank you very much for helping out here! You’re hired! :slight_smile:

I have updated the template with comments in the pages to denote when the WordPress coding starts and stops. That should help users that aren’t using the standard templates decipher how to customize them for their sites.

Mike mentioned the “SEO All In One Pack” for WordPress. For those interested, you can read about that add-on for WordPress here. It appears to be a great tool - I am going to go install it now. :slight_smile:

Tony

Here are some tips for the wordpress blog software

as already mentioned, install the All in One SEO Pack plugin
http://wordpress.org/extend/plugins/all-in-one-seo-pack/
all-in-one-seo-pack needs no configuration. You just install and activate the plugin.

I recommend using “pretty permalinks”
http://www.themelab.com/2008/03/11/how-to-set-up-pretty-permalinks-in-wordpress/
Default: “Ugly”

The default looks like
http://example.com/?p=N

mod_rewrite: “Pretty Permalinks”

These are the holy grail of permalinks (see Pretty Permalinks). There are many different formats, but the most common, and most versatile looks like

http://example.com/category/post-name/

or http://example.com/year/month/day/post-name

I am using… Custom
/%category%/%postname%/

Some people eliminate some or all of the date elements (day, month, year) to have a shorter permalink format. mod_rewrite permalinks require Apache’s mod_rewrite module.

If you enable comments, you should enable this plugin called Akismet
http://wordpress.org/extend/plugins/akismet/
This plugin is included with wordpress but you have to activate it in the admin panel.
PS: You’ll need a WordPress.com API key to use it.
How do I get one?
When you sign up for a free WordPress.com account they email you an API key. Then you paste it in the Akismet options in the admin panel
http://wordpress.com/signup/

My blog is using all this right now.
http://www.642weather.com/weather/wxblog/