cloudy

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

0 Members and 2 Guests are viewing this topic.

Offline drobbins

  • Posts: 1,615
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #60 on: August 06, 2008, 07:34:54 PM »
Yes! Much better :D (Ignore my current weather info. It appears my station is down :() I did a little touch up but it is looking good now. You said adding the wordpress in the easy part?

Offline ThorntonWeather

  • Tony
  • Commercial
  • Posts: 469
  • Thornton, CO USA
    • ThorntonWeather.com
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #61 on: August 06, 2008, 09:02:32 PM »
Yes! Much better :D (Ignore my current weather info. It appears my station is down :() I did a little touch up but it is looking good now. You said adding the wordpress in the easy part?

Okay, we're cooking now!  :)

First, you need to make copies of your new WordPress index.php that you have working now.  These copies should be called:

single.php
search.php
archive.php
page.php
attachment.php
archives.php

Then, download the template that Mike, Jack and I have created - if you downloaded it previously, download it again as Mike made some great enhancements that I just added to the zip.  Click here for that.

From each file in the template of names above, copy and paste everything from the coding that says <!-- Begin wordpress code --> to <!-- End wordpress code -->   between the     <!-- ##### Main Copy ##### --> and     <!-- ##### Footer ##### -->  sections of your file of the same name.

So, from the template's index.php, copy all the WordPress code to the main part of your index.php.  Repeat for all of the above files. 

That is about it.  Upload the files to your WordPress template directory.  Also upload our template's sidebar.php (no modifications required) to the same place. 

That should do it!  :)

   Tony

Offline ThorntonWeather

  • Tony
  • Commercial
  • Posts: 469
  • Thornton, CO USA
    • ThorntonWeather.com
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #62 on: August 06, 2008, 09:07:43 PM »
The master Weather Blog files have been updated with all of the enhancements that Mike (MCHALLIS) has been working on.  To update, please visit here to download the updated template.  As long as you didn't modify any of the template files, you should be able to simply overwrite the existing files on your server. 

Please note that this version does enable the comments feature in WordPress.  For more information about this and how to combat "comment spam", please see the notes here

Thank you to Mike for all his work on helping enhance this!

   Tony

Offline drobbins

  • Posts: 1,615
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #63 on: August 07, 2008, 12:07:58 AM »
 :D/ :D/ :D/ Its Working!! Its Working!!! :D/ :D/ :D/

One last item though, where do I set the blogs links so they are on the right side and not on the left?

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 #64 on: August 07, 2008, 12:12:20 AM »
:D/ :D/ :D/ Its Working!! Its Working!!! :D/ :D/ :D/

One last item though, where do I set the blogs links so they are on the right side and not on the left?

Add the css from the css-additions.txt file into your css weather-screen.css file
http://www.cavecountryweather.com/weather-screen.css

Offline drobbins

  • Posts: 1,615
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #65 on: August 07, 2008, 12:45:21 AM »
 :notworthy: :notworthy: Thank you soo very much!! :notworthy: :notworthy:

I have 4 validation errors and just a few other things things to tidy up and it should be ready for prime time.

Thanks again,
Dave

Offline drobbins

  • Posts: 1,615
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #66 on: August 07, 2008, 01:07:14 AM »
Maybe I spoke too soon... The ajax isn't working. I thought it was because you had copied the main code from my website. It had the temp info in it already.  At the same time my home computer was down. So I thought it was working because it had the same info as my other pages. Now I noticed that it hasn't changed.

Offline ThorntonWeather

  • Tony
  • Commercial
  • Posts: 469
  • Thornton, CO USA
    • ThorntonWeather.com
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #67 on: August 07, 2008, 01:12:45 AM »
Okay, no problem.  Do this....  Post the code for your sites main page (index.html).  I can then modify that to a working version for the blog.  Almost there!  :)

Offline drobbins

  • Posts: 1,615
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #68 on: August 07, 2008, 01:41:27 AM »

I cut out the "main copy" section to keep it smaller.
Quote
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-US">
  <head>

<link rel="SHORTCUT ICON" href="http://scrtc.com/~dcfs/favicon.ico" /><!-- ##### start AJAX mods ##### -->

    <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">
    <!--
    useKnots = false; // set =true; to force use of knots as wind speed
    ajax_set_units('E'); // use 'E' for USA(english) units or 'M' for Metric
    //-->
    </script>
    <!-- ##### Note: AJAX mods are also included around many WD tags with data in clientraw.txt with -->
    <!-- <span class="ajax" id="ajax..."></span> tags .. see page below for details                  -->
    <!-- ##### end AJAX mods ##### -->

<!-- ##### CHANGE  title to your site ##### -->
<title>Cave Country Weather KY</title>
<!-- ##### CHANGE  description to your site ##### -->
<meta name="Cave Country Weather Station KY" content="Cave Country KY Personal weather station KY." />
<meta http-equiv="content-type" content="Cave City Forecast, Cave Country Weather, Glasgow Weather Forecast, Horse Cave Weather, Barren County Weather, cavecountryweather, Cave Country Forecast, weather cave country, Weather Forecast, Cave Weather Forecast, cave country conditions, Cave City Weather, Weather Cave City, weather station, Barren County Weather Live, Cave City Weather Live, 42127 Weather, Cave Country Weather Forecast, Cave City Weather Forecast, Kentucky Weather Forecast, Horse Cave Weather Forecast, Barren County Weather Forecast, KY Weather Forecast, Park City Weather Forecast, Mammoth Cave Weather Forecast, Live Weather Forecast, 42127, Current Conditions" />
<meta name="verify-v1" content="24nkZLqbRwthzcocZoNOdWshBML2mlPu/SS/9Obo/nE=" />
<meta http-equiv="content-type" content="application/xhtml+xml; charset=ISO-8859-1" />
    <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="http://www.cavecountryweather.com/tswnavbar.css" />
<style type="text/css">
/*<![CDATA[*/
 


 table.c14 {border-collapse: collapse}
 div.c13 {clear: both;}
 p.c12 {color: #CC0000}
 span.c11 {color: #CC0000}
 span.c10 {font-size: 120%}
 span.c9 {font-size: 10px;}
 span.c8 {text-transform: capitalize}
 span.c7 {text-transform: uppercase}
 span.c6 {color: #111111}
 span.c5 {font-size: 14px;}
 li.c4 {list-style: none}
 span.c3 {color: #ADD8E6}
 span.c2 {font-size: 80%}
 div.c1 {text-align: center}
/*]]>*/
</style>
</head>
<body background="clouds.JPG">    <!-- For non-visual user agents: -->
      <div id="top"><a href="#main-copy" class="doNotDisplay doNotPrint">Skip to main content.</a></div>

    <!-- ##### Header ##### -->

<!-- ##### CHANGE  title to your site ##### -->

<div class="c1"><center><img src="Cavecom.png" alt="cavecountryweather.com" /></center></div>

    <div id="header">
      <h1 class="headerTitle">
        <a href="http://www.cavecountryweather.com/wdlive.html">Current Conditions</a>
      </h1>

   <div class="headerTemp"><span class="doNotPrint">
      <span class="ajax" id="ajaxbigtemp">%tempnodp%&deg;F</span></span>
   </div>

    <!-- ##### CHANGE  location to your location, avoid abbreviations ##### -->

      <div class="subHeader">
        Cave City, Kentucky, USA

      </div>

      <div class="subHeaderRight"><span class="ajax" id="ajaxindicator">Updated</span>: <span class="ajax" id="ajaxdate">%date%</span> <span class="ajax" id="ajaxtime">%time%</span></div>

    </div>

    <div id="side-bar">

      <!-- ##### Left Sidebar ##### -->

      <div class="leftSideBar">
        <p class="sideBarTitle">Navigation</p>
<div id="tswcssbuttons">
        <ul>
          <li><b>Home</b></li>
          <li><a href="wx2.html" title="5-day Forecast">Forecast</a></li>
          <li><a href="wx3.html" title="Radar">Radar</a></li>
          <li><a href="wx10.html" title="Web Cam">Web Cam</a></li>
          <li><a href="wx4.html" title="Watches, Warnings, Advisories">Advisories</a></li>
          <li><a href="wx5.html" title="Daily weather statistics">Daily Stats</a></li>
          <li><a href="wx6.html" title="Graphs">Graphs</a></li>
          <li><a href="wx7.html" title="Sun and Moon Data">Astronomy</a></li>
          <li><a href="wx8.html" title="Useful Links">Links</a></li>
          <li><a href="wx11.html" title="Web Stickers">Stickers</a></li>
          <li><a href="wx9.html" title="About This Site">About Us</a></li>
<li class="c4"><strong><span class="c3"><span class="c2">Cave Country, Cave City Weather Forecast, Glasgow Weather Forecast, Kentucky, Horse Cave, Barren County, KY, Park City Weather Forecast, Mammoth Cave, Live, 42127, Current Conditions</span></span></strong></li>



        </ul>
</div>
      </div>

    </div>

    <!-- ##### Main Copy ##### -->
   

Nothing Here :)

  <!-- ##### Footer ##### -->

    <div id="footer">
      <div class="doNotPrint"><a href="http://www.northamericanweather.net/" target="new_page"><img src="NAWN_logo.png" alt="North American Weather Network" width="75" height="75" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://usaweatherfinder.com/" target="new_page"><img src="http://usaweatherfinder.com/button.php?u=drobbins" alt="USA Weather Finder" border="2" /></a><br />
        <a href="#header">Top</a> |

<!-- ##### CHANGE  email address below to your email address ##### -->

        <a href="mailto:sunny@cavecountryweather.com" title="E-mail us">Contact Us</a>


        <script language="javascript" type="text/javascript">
        <!--
        if (navigator.appName == 'Microsoft Internet Explorer' &&
        parseInt(navigator.appVersion) >= 4)
        {
        document.write('| <a href=\"#\" onclick=\"javascript:window.external.AddFavorite        (location.href,document.title)\">');
        document.write('Bookmark Page</a>');
        }else
        {var msg = '| <a href="" title="Bookmark Page" onClick="alert(' + "'Hit CTRL-D to bookmark this page'"+ ');">Bookmark Page</a>';
        if(navigator.appName == "Netscape") msg += " (CTRL-D)";
document.write(msg);
        }
        // -->
        </script>
      </div>

      <div>

<!-- ##### CHANGE  copyright info to your liking ##### -->

        Copyright &copy; 2008, Cave Country Weather<span class="doNotPrint"> | 
          <a href="http://www.weather-display.com" title="Powered by Weather Display">Weather Display v%wdversion%-%wdbuild%</a></span><br />
      <br class="doNotPrint" />Never base important decisions on this or any weather information obtained from the Internet.<br class="doNotPrint" />
      </div>
    </div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5107221-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
  </body>
</html>

Offline ThorntonWeather

  • Tony
  • Commercial
  • Posts: 469
  • Thornton, CO USA
    • ThorntonWeather.com
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #69 on: August 07, 2008, 01:56:10 AM »
Okay, I think I found the problem.... 

In your WordPress index.php are these lines:

Code: [Select]
    <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 -->

Those should read:

Code: [Select]
    <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 -->

You need the " ../ " at the start of the path for the ajax files to tell the WP file to look up to the root of the website.  Fingers crossed!

   Tony

Offline drobbins

  • Posts: 1,615
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #70 on: August 07, 2008, 02:00:49 AM »
eeeeh... nope. Not working. Progress though! The gizmo is scrolling. how does it find the clientraw.txt info?
« Last Edit: August 07, 2008, 02:02:35 AM by drobbins »

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 #71 on: August 07, 2008, 02:45:08 AM »
here is a couple problems:


< <script type="text/javascript" src="../ajaxWDwx.js"></script>

notice the extra "<"

and ...
<meta http-equiv="content-type" content="Cave City Blog,/>

missing a double quote
<meta http-equiv="content-type" content="Cave City Blog," />




Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
    • Saratoga Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #72 on: August 07, 2008, 03:28:40 AM »
eeeeh... nope. Not working. Progress though! The gizmo is scrolling. how does it find the clientraw.txt info?
The ajaxWDwx.js script has the location of clientraw.txt in
Code: [Select]
var clientrawFile = '/clientraw.txt'; // location of clientraw.txt relative to this page on website  To let it find the clientraw irrespective of location of the script in a directory on your site, I'd suggest your replace '/clientraw.txt' with the full URL path to clientraw.txt (not the FILE path). With '/clientraw.txt' it will find the clientraw.txt in the document root of your website.

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline drobbins

  • Posts: 1,615
  • Kentucky, USA
    • Cave Country Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #73 on: August 07, 2008, 10:15:49 AM »
Changed the items mentioned and I found a stray " , " in the same lines. All is working! Thanks guys!!!  :greenjumpers:

Offline BfdWx

  • Posts: 1,586
  • Branford Connecticut
    • Branford Weather
Re: WordPress Blog Add On for Carterlake/AJAX/PHP Templates Now Available
« Reply #74 on: August 07, 2008, 10:43:19 AM »
Quote
All is working!

Glad you stuck with it (it can be confusing), nice work it looks great!

Jack

 

cumulus