cloudy

Author Topic: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available  (Read 60725 times)

0 Members and 1 Guest are viewing this topic.

Offline BfdWx

  • Posts: 1,509
  • Branford Connecticut
    • Branford Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #30 on: August 05, 2008, 01:10:26 AM »
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

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #31 on: August 05, 2008, 01:14:47 AM »
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/

Offline BfdWx

  • Posts: 1,509
  • Branford Connecticut
    • Branford Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #32 on: August 05, 2008, 01:49:30 AM »
That should be OK, go back to our instructions on the front post and pick it up at step 9 (notice the note there).

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #33 on: August 05, 2008, 01:57:35 AM »
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.

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #34 on: August 05, 2008, 02:26:22 AM »
What causes this in filezilla?
Quote
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

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #35 on: August 05, 2008, 02:40:46 AM »
Well I am getting closer. :scratch: Better call it a night. :sleeping:
http://www.cavecountryweather.com/wordpress/

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #36 on: August 05, 2008, 03:01:23 AM »
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]
<!-- Begin wordpress code -->
[wordpress blog code in the middle section]
<!-- End wordpress code -->
[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 <!-- Begin wordpress code --> <!-- End wordpress code --> 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.
« Last Edit: August 08, 2008, 02:06:23 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/AJAX/PHP Templates Now Available
« Reply #37 on: August 05, 2008, 03:09:18 AM »
Well I am getting closer. :scratch: Better call it a night. :sleeping:
http://www.cavecountryweather.com/wordpress/

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

This part is messed up:
Code: [Select]
<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" />



Offline ThorntonWeather

  • Tony
  • Commercial
  • Posts: 459
  • Thornton, CO USA
    • ThorntonWeather.com
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #38 on: August 05, 2008, 04:58:25 PM »
Mike,

Thank you very much for helping out here!  You're hired!  :)

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.  :)

    Tony

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #39 on: August 05, 2008, 05:36:08 PM »
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/
« Last Edit: October 28, 2008, 06:59:40 PM by MCHALLIS »

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #40 on: August 05, 2008, 08:38:19 PM »
I must be a little thick.  #-o  How do I modify these files?
Quote
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
I am not currently using php on any of my sites. I do not currently have a header.php or footer.php. I have made a blank template that the blog can be inserted into. http://www.cavecountryweather.com/wordpress/Is this possible or am I going about it all the wrong way?

Also what do I need to do to get the ajax working?

Just let me know if this can be done or am I in  over my head.  :wink:

Offline ThorntonWeather

  • Tony
  • Commercial
  • Posts: 459
  • Thornton, CO USA
    • ThorntonWeather.com
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #41 on: August 05, 2008, 10:14:02 PM »
I think you are very, very close!  Hang in there! 

Looking at your coding....  I think this the ajax stuff is maybe simply a path issue.  Try this....  In your index.php, change this:

Code: [Select]
<!-- ##### start of AJAX gizmo mods part 1 of 3 ##### -->
  <script type="text/javascript" src="http://www.cavecountryweather.com/ajaxWDwx.js"></script>
  <!-- AJAX updates by Ken True - http://saratoga-weather.org/scripts-WD-AJAX.php 13-Dec-2006 -->
  <script type="text/javascript" src="http://www.cavecountryweather.com/ajaxgizmo.js"></script>
  <!-- AJAX gizmo by Ken True - http://saratoga-weather.org/scripts-WD-AJAX.php 13-Dec-2006 -->
  <!-- ##### end of AJAX gizmo mods part 1 of 3 ##### -->

to this....

Code: [Select]
  <!-- ##### start of AJAX gizmo mods part 1 of 3 ##### -->
  <script type="text/javascript" src="../ajaxWDwx.js"></script>
  <!-- AJAX updates by Ken True - http://saratoga-weather.org/scripts-WD-AJAX.php 13-Dec-2006 -->
  <script type="text/javascript" src="../ajaxgizmo.js"></script>
  <!-- AJAX gizmo by Ken True - http://saratoga-weather.org/scripts-WD-AJAX.php 13-Dec-2006 -->
  <!-- ##### end of AJAX gizmo mods part 1 of 3 ##### -->

And then, change this:

Code: [Select]
<link rel="stylesheet" type="text/css" href="http://www.cavecountryweather.com/weather-screen.css" media="screen" title="screen" />
<link rel="stylesheet" type="text/css" href="http://www.cavecountryweather.com/weather-print.css" media="print" />
<link rel="stylesheet" type="text/css" href="http://www.cavecountryweather.com/tswnavbar.css" />

To this:

Code: [Select]
<link rel="stylesheet" type="text/css" href="../weather-screen.css" media="screen" title="screen" />
<link rel="stylesheet" type="text/css" href="../weather-print.css" media="print" />
<link rel="stylesheet" type="text/css" href="../tswnavbar.css" />

Basically changing from URL references to relative.  Maybe that will do the trick.  With as far as you have gotten, once we get the ajax issue resolved getting the blog to appear should be easy. 

   Tony

Offline BfdWx

  • Posts: 1,509
  • Branford Connecticut
    • Branford Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #42 on: August 05, 2008, 11:34:59 PM »
MCHALLIS,

Quote
If you enable comments, you should enable this plugin called Akismet

What did you change to get the "comments" alive again, I think I'll try it on my site. I have the Akismet working already.

Thanks,

Jack

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #43 on: August 05, 2008, 11:50:30 PM »
MCHALLIS,

What did you change to get the "comments" alive again, I think I'll try it on my site. I have the Akismet working already.

Thanks,

Jack

I had to edit the wordpress code on some of the template files and add in the comment relevant sections. I will make a zip file of the distro with the comment code in there and attach it here. Give me a little time to prepare it. Also I have some other fixes, like if you turn on the pretty permalinks the link to the blog index works properly... and I fixed all the html validation errors in the templates.
Edit: all included in the download now
« Last Edit: August 08, 2008, 02:09:03 PM by MCHALLIS »

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #44 on: August 06, 2008, 12:58:08 AM »
Tony,
Thanks for the input and encouragement! Both the kids were gone tonight and just the wife and I were home :wink:, so I didn't get a chance to get to it. I will try tomorrow at work if things are slow.

 

cumulus