<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: general fun with themes</title>
	<link>http://www.digitalramble.com/2006/06/27/48/</link>
	<description>surveyor of the foothills, valleys and occasional sheer cliff drops of the world of computer programming...</description>
	<pubDate>Wed, 07 Jan 2009 04:52:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Brian Layman</title>
		<link>http://www.digitalramble.com/2006/06/27/48/#comment-32</link>
		<dc:creator>Brian Layman</dc:creator>
		<pubDate>Thu, 29 Jun 2006 13:47:15 +0000</pubDate>
		<guid>http://www.digitalramble.com/2006/06/27/48/#comment-32</guid>
		<description>Hmmm, it didn't like me using your code tag... let's do this the old fashioned way...
This is what  I was trying to show...


&#60;?php&#160;require(dirname(__FILE__).'/inc/custompage_top.php');&#160;?&#62;
[...&#160;custom&#160;code&#160;...]
&#60;?php&#160;require(dirname(__FILE__).'/inc/custompage_btm.php');&#160;?&#62;
</description>
		<content:encoded><![CDATA[<p>Hmmm, it didn&#8217;t like me using your code tag&#8230; let&#8217;s do this the old fashioned way&#8230;<br />
This is what  I was trying to show&#8230;</p>
<p>&lt;?php&nbsp;require(dirname(__FILE__).&#8217;/inc/custompage_top.php&#8217;);&nbsp;?&gt;<br />
[&#8230;&nbsp;custom&nbsp;code&nbsp;&#8230;]<br />
&lt;?php&nbsp;require(dirname(__FILE__).&#8217;/inc/custompage_btm.php&#8217;);&nbsp;?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Layman</title>
		<link>http://www.digitalramble.com/2006/06/27/48/#comment-31</link>
		<dc:creator>Brian Layman</dc:creator>
		<pubDate>Thu, 29 Jun 2006 13:44:12 +0000</pubDate>
		<guid>http://www.digitalramble.com/2006/06/27/48/#comment-31</guid>
		<description>This is a VERY good tip.  And I think it is a style that should be followed on all themes.  On my wife's blog, and she better not post that picture she took of me wearing her robe yesterday, I have several pages that hang independently off of the blog but carry the whole theme of the blog.

So the very first thing I do when adopting a new theme (and having 1 theme per blog makes this possible) is determine what must come before and "THE LOOP" and create two php files from that and store them in my own includes directory. What I should do is store them in a directory underneath the theme so that I can theme switch...

Anyway that give me web pages that look something like this...
&lt;code&gt;&lt;br /&gt;
&#160;&lt;br /&gt;
[&#46;.. custom code &#46;..]&lt;br /&gt;
&#160;&lt;br /&gt;
&lt;/code&gt;

I also have a standard include file that contains only my DB login and Password for a particular DB, one that opens the DB connection, and one that closes it.  So my pages that query the DB all have a similar structure.

That makes pages like:

&lt;a href='http://www.knitchat.com/knitting-in-the-news.php' rel="nofollow"&gt;The Latest Knitting News&lt;/a&gt;     
&lt;a href='http://www.knitchat.com/fleet.php' rel="nofollow"&gt;Ships in the Fleet&lt;/a&gt;
&lt;a href='http://www.knitchat.com/linktome.php' rel="nofollow"&gt;Link back to me.  Arg!&lt;/a&gt;
&lt;a href='http://www.knitchat.com/subscribetome.php' rel="nofollow"&gt;Advanced News feeds. Yar!&lt;/a&gt;


really easy to create.  (BTW Yes that was a cut and paste of the links, you're not the only one that's lazy!)  In fact, this was all supposed to be info in one of my first blog posts three months ago but I never got around to it...</description>
		<content:encoded><![CDATA[<p>This is a VERY good tip.  And I think it is a style that should be followed on all themes.  On my wife&#8217;s blog, and she better not post that picture she took of me wearing her robe yesterday, I have several pages that hang independently off of the blog but carry the whole theme of the blog.</p>
<p>So the very first thing I do when adopting a new theme (and having 1 theme per blog makes this possible) is determine what must come before and &#8220;THE LOOP&#8221; and create two php files from that and store them in my own includes directory. What I should do is store them in a directory underneath the theme so that I can theme switch&#8230;</p>
<p>Anyway that give me web pages that look something like this&#8230;<br />
<code><br />
&nbsp;<br />
[&#46;.. custom code &#46;..]<br />
&nbsp;<br />
</code></p>
<p>I also have a standard include file that contains only my DB login and Password for a particular DB, one that opens the DB connection, and one that closes it.  So my pages that query the DB all have a similar structure.</p>
<p>That makes pages like:</p>
<p><a href='http://www.knitchat.com/knitting-in-the-news.php' rel="nofollow">The Latest Knitting News</a><br />
<a href='http://www.knitchat.com/fleet.php' rel="nofollow">Ships in the Fleet</a><br />
<a href='http://www.knitchat.com/linktome.php' rel="nofollow">Link back to me.  Arg!</a><br />
<a href='http://www.knitchat.com/subscribetome.php' rel="nofollow">Advanced News feeds. Yar!</a></p>
<p>really easy to create.  (BTW Yes that was a cut and paste of the links, you&#8217;re not the only one that&#8217;s lazy!)  In fact, this was all supposed to be info in one of my first blog posts three months ago but I never got around to it&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
