<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mySource &#187; WordPress Techniques</title>
	<atom:link href="http://www.janbthomas.com/jansblog/category/wordpress-techniques/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.janbthomas.com/jansblog</link>
	<description>Documenting my web development and bug fixes</description>
	<lastBuildDate>Wed, 12 Jan 2011 00:09:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Picasa Slide Show in WordPress</title>
		<link>http://www.janbthomas.com/jansblog/picasa-slide-show-in-wordpress/</link>
		<comments>http://www.janbthomas.com/jansblog/picasa-slide-show-in-wordpress/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 22:13:18 +0000</pubDate>
		<dc:creator>AdminJan</dc:creator>
				<category><![CDATA[WordPress Techniques]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://www.janbthomas.com/jansblog/?p=698</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><code><embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="510" height="340" flashvars="host=picasaweb.google.com&#038;hl=en_US&#038;feat=flashalbum&#038;RGB=0x000000&#038;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fjanbthomas%2Falbumid%2F5373602780728892225%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.janbthomas.com/jansblog/picasa-slide-show-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use Cforms in WordPress to create a short quiz or questionnaire</title>
		<link>http://www.janbthomas.com/jansblog/customize-success-message-cforms/</link>
		<comments>http://www.janbthomas.com/jansblog/customize-success-message-cforms/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 00:22:45 +0000</pubDate>
		<dc:creator>AdminJan</dc:creator>
				<category><![CDATA[HomePage]]></category>
		<category><![CDATA[WordPress Techniques]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://www.janbthomas.com/jansblog/?p=570</guid>
		<description><![CDATA[Do you want to vary the CFormsII success message? Maybe you want to create a short quiz that can be scored and reported upon completion. CFormsII provides the ability to alter the success message before the form is processed. For something simpler, create a questionnaire with no scoring involved. Learn how to set these up. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Do you want to vary the CFormsII success message? Maybe you want to create a short quiz that can be scored and reported upon completion.   CFormsII provides the ability to alter the success message before the form is processed.  For something simpler, create a questionnaire with no scoring involved.  Learn how to set these up.<br />
</strong><br />
<em>[The quiz and survey solutions require knowledge of php programming for scoring.  After being submitted, the form is scored in a php function.]</em></p>
<p><a href="http://www.janbthomas.com/jansblog/websitequestionnaire" class="uline" target="blank">View the Questionnaire Demo</a></p>
<p><a href="http://www.janbthomas.com/jansblog/tv-questionnaire" class="uline" target="blank">View the Quiz Demo (Scoring: one correct answer)</a></p>
<p><a href="http://www.janbthomas.com/jansblog/healthsurvey" class="uline" target="blank">View the Health Survey Demo (Scoring: answers weighted from 0 to 3)</a><span id="more-570"></span></p>
<h2>Questionnaire Instructions:  No Scoring</h2>
<ol>
<li><strong>Create a Form in CformsII.  Add the form to a WordPress page or post.</strong>  <a href="http://www.janbthomas.com/jansblog/createcontactform" class="uline" target="blank">Click for more information on creating a CFormsII form.</a><br/><br/><a href="http://www.janbthomas.com/jansblog/wp-content/uploads/2010/01/WebsiteSurvey.jpg"  class="uline" target="blank">Here&#8217;s what the demo Questionnaire looks like in the CForms Designer:  <img src="http://www.janbthomas.com/jansblog/wp-content/uploads/2010/01/WebsiteSurvey-150x150.jpg" alt="WebsiteSurvey" title="WebsiteSurvey" width="150" height="150" class="alignleft size-thumbnail wp-image-716" /></a>
        </li>
<li>The survey results will be sent to the admin&#8217;s email account and the user&#8217;s email with the CC option.</li>
</ol>
</li>
<h2>Quiz Instructions:  Scoring is Involved</h2>
<ol>
<li><strong>Create a Form in CformsII.  Add the form to a WordPress page or post.</strong>  <a href="http://www.janbthomas.com/jansblog/createcontactform" class="uline" target="blank">Click for more information.</a><br/><br/>Remember the form number and field numbers.
<p> This form below is form #8 and the quiz includes fields 4 through 8. </p>
<p>Each of the radio button answers are set up with a value = 1 for the correct answer and a value = 0 for the incorrect answer.</p>
<p><a href="http://www.janbthomas.com/jansblog/wp-content/uploads/2010/01/tvquestionnaire.jpg"><img src="http://www.janbthomas.com/jansblog/wp-content/uploads/2010/01/tvquestionnaire-300x215.jpg" alt="tvquestionnaire" title="tvquestionnaire" width="300" height="215" class="alignleft size-medium wp-image-696" /></a>
</li>
<li><strong>Edit my-functions.php </strong>.
<ul>
<li>Use the editor of your choice to edit wp-content/plugins/cforms/my-functions.php. <br/> OR<br/>  Go into Plugins->Editor.  Select plugin to edit: cforms.  Click the cforms/my-functions.php file near the bottom of the long list of files.</li>
<li>The <strong>my-functions.php </strong>file has sample code for numerous actions.  For example setting the  redirection link, or changing an email address.  By default, these functions are commented out.</li>
<li>Define <strong>my_cforms_logic </strong>to change the success message.  In this example, the values for fields 4, 5, 6, 7, 8 are totaled.  Correct answers have a value of 1 and incorrect answers have a value of 0 so the total represents the score.</li>
<li>Within the my_cforms_logic function, there are several ways to access the field data.  In this example, the field value is referenced using it&#8217;s field number when combined with $$$.</li>
<li>To see the variables that hold field data use the @email function.  The results will be sent to email.</li>
</li>
</ul>
<li><strong>Save Changes to the server</strong> </li>
<li><strong>Run the form.</strong> </li>
</ol>
<p>Here&#8217;s the code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> my_cforms_logic<span style="color: #009900;">&#40;</span><span style="color: #000088;">$cformsdata</span><span style="color: #339933;">,</span><span style="color: #000088;">$oldvalue</span><span style="color: #339933;">,</span><span style="color: #000088;">$setting</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
   <span style="color: #666666; font-style: italic;">// Form number 7 is the Health Quiz:  the radio button value is weighted from 0 to 3.  This value gets added for a total score.</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$cformsdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">7</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$setting</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;successMessage&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
         <span style="color: #666666; font-style: italic;">### note: '$$$mypick' references the ID of the HTML element and has been assigned
</span>         <span style="color: #666666; font-style: italic;">### to the drop down field in the form configuration, with [id:mypick] !
</span>	 <span style="color: #000088;">$form</span>   <span style="color: #339933;">=</span> <span style="color: #000088;">$cformsdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'data'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
	 <span style="color: #000088;">$total</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$max</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
         <span style="color: #000088;">$ptsPossible</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">;</span>
&nbsp;
	 <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">8</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	 	<span style="color: #000088;">$curField</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'$$$'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
	 	<span style="color: #000088;">$total</span> <span style="color: #339933;">+=</span> <span style="color: #000088;">$form</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$form</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$curField</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$max</span> <span style="color: #339933;">+=</span> <span style="color: #000088;">$ptsPossible</span><span style="color: #339933;">;</span>
	 <span style="color: #009900;">&#125;</span>
&nbsp;
         <span style="color: #000088;">$yourScore</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;p&gt;You scored &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$total</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; out of &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$max</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span>
	 <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$total</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">12</span> <span style="color: #009900;">&#41;</span>
	        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$yourScore</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' &lt;p&gt;Good Work!  Keep up your healthy eating habits&lt;/p&gt; '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$oldvalue</span> <span style="color: #339933;">;</span>
         <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$total</span> <span style="color: #339933;">&gt;=</span><span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span>
                <span style="color: #b1b100;">return</span> <span style="color: #000088;">$yourScore</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' &lt;p&gt;Your score indicates a need for improvement.  Try adding some healthier elements to your diet.&lt;/p&gt; '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$oldvalue</span> <span style="color: #339933;">;</span>
         <span style="color: #b1b100;">else</span> 
               <span style="color: #b1b100;">return</span> <span style="color: #000088;">$yourScore</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' &lt;p&gt;Your score shows a need for improvement.  Try adding some healthier elements to your diet:  Whole wheat cereals and breads are found to reduce heart disease.  Fish such as salmon and halibut have large quantities of omega-3 fatty acids.  These can reduce cholesterol.  USDA recommends 20% of your total daily intake of fat.  Especially the unsaturated fats found in plants.&lt;/p&gt; '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$oldvalue</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//@mail('your@email.com', 'cforms my_filter_nonAjax test', 'Form data array (nonAjax):'.print_r($cformsdata,1), 'From: your@email.com');</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
         <span style="color: #666666; font-style: italic;">// Form number 8 is the TV Questionnaire:  the radio button value: 0 = wrong, 1 = correct.  This value gets added for a total score.</span>
         <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$cformsdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">8</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$setting</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;successMessage&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">### note: '$$$mypick' references the ID of the HTML element and has been assigned
</span>                <span style="color: #666666; font-style: italic;">### to the drop down field in the form configuration, with [id:mypick] !
</span>		<span style="color: #000088;">$form</span>   <span style="color: #339933;">=</span> <span style="color: #000088;">$cformsdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'data'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$totalCorrect</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$total</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
 		<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">8</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		         <span style="color: #000088;">$curField</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'$$$'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
		         <span style="color: #000088;">$totalCorrect</span> <span style="color: #339933;">+=</span> <span style="color: #000088;">$form</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$form</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$curField</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                         <span style="color: #000088;">$total</span><span style="color: #339933;">++;</span>
 		<span style="color: #009900;">&#125;</span>
&nbsp;
                <span style="color: #000088;">$percent</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$totalCorrect</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$total</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$yourScore</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;p&gt;You scored &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$totalCorrect</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; out of &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$total</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;.  That's &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$percent</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;%!&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$total</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">4</span> <span style="color: #009900;">&#41;</span>
	               <span style="color: #b1b100;">return</span> <span style="color: #000088;">$yourScore</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' &lt;p&gt;Good Work!&lt;/p&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$oldvalue</span> <span style="color: #339933;">;</span>
		<span style="color: #b1b100;">else</span>
		      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$yourScore</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' &lt;p&gt;Better Luck Next Time!&lt;/p&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">//@mail('your@email.com', 'cforms my_filter_nonAjax test', 'Form data array (nonAjax):'.print_r($cformsdata,1), 'From: your@email.com');</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$oldvalue</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.janbthomas.com/jansblog/customize-success-message-cforms/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create a Contact Form in WordPress</title>
		<link>http://www.janbthomas.com/jansblog/createcontactform/</link>
		<comments>http://www.janbthomas.com/jansblog/createcontactform/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 00:08:41 +0000</pubDate>
		<dc:creator>AdminJan</dc:creator>
				<category><![CDATA[HomePage]]></category>
		<category><![CDATA[WordPress Techniques]]></category>
		<category><![CDATA[contact form]]></category>

		<guid isPermaLink="false">http://www.janbthomas.com/jansblog/?p=29</guid>
		<description><![CDATA[Want more contact with your website visitors? CFormsII is a WordPress plugin created for just that purpose. Simply design your form through the CFormsII interface. Add it to a WordPress Page or Post. Then provide your users with a link to the Page or Post. This handy utility sends you the completed form via email. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Want more contact with your website visitors?  CFormsII is a WordPress plugin created for just that purpose. Simply design your form through the CFormsII interface.  Add it to a WordPress Page or Post.  Then provide your users with a link to the Page or Post.  This handy utility sends you the completed form via email.  Learn how to set this up.</strong></p>
<p><strong>1.   Install the CFormsII Plugin.</strong></p>
<p><strong>2.   Bring up CFormsII in the WordPress administrator.</strong>  <em>CFormsII link is in the main WordPress menu. Look for the icon: <img style="vertical-align:middle;" src="http://www.janbthomas.com/jansblog/wp-content/uploads/2009/01/cformsii-icon.jpg" alt="cformsii-icon" title="cformsii-icon" width="30" height="34" class="alignright size-full wp-image-349" /></em><br />
<span id="more-29"></span><br />
<br />
<strong>3.   Label fields</strong>:  (Add fields as needed.)<br />
Add any fields needed.  Dropdown fields, edit fields, etc.<br />
For Select Box separate options with a # for example:  Type of Contact#Website#Blog#Flash.</p>
<p><a href="http://www.janbthomas.com/jansblog/contactselect/" class="uline" target="blank" > VIEW THE CONTACT FORM WITH SELECT BOX</a></p>
<p>How to use the &#8220;Multiple form mail recipients&#8221; dropdown option:<br />
Select field type <strong>Multiple Recipients</strong>.  Click the Edit button.  Enter the option name to be displayed in the drop down, then beside the name add the email address into the optional value field.<br />
<br />
<strong>4.   Create a new Page (or Post) to hold the Contact Form</strong>  </p>
<ul>
<li>Bring up the Pages menu on the main WordPress menubar.</li>
<li>Click the <strong>&#8220;Add New&#8221;</strong> Link.</li>
<li>Label the page something like &#8220;Contact Information&#8221;. </li>
<li>Add the Contact form by clicking in the page content area and press <strong>CForms</strong> button then insert.  A string of code will be added to your page that looks something like this: &lt;&#8211; cforms name=&#8221;contactpage&#8221;&#8211;&gt;</li>
<p>The CForms button isn&#8217;t necessary.  There are times I don&#8217;t see the <strong>CForms</strong> button in <em>Edit Page</em> and <em>Edit Post</em>.  Just add this line of code into your page or post:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!--cforms name=&quot;contactpage&quot;--&gt;</pre></div></div>

<p>Where &#8220;contactpage&#8221; is the name of the <em>CFormsII</em> form you created.  </p>
<li> Call this page to bring up the Contact Form. Here&#8217;s how I bring up my new Contact Form:  <a href="http://www.janbthomas.com/jansblog/defaultcontact/" target="blank" class="uline" >www.janbthomas.com/jansblog/defaultcontact/</a></li>
</ul>
<p>
<strong>5.   Create a Success Page for the Contact Form: (optional)</strong><br />
<em>Core Form Admin -> Redirect</em><br />
Select: <em>Enable alternative success page.</em><br />
URL:  Create an html file to display a Thank you message.  Add it to the themes directory.<br />
[This step isn't required.  This option is used to hide the contact form on success and replace it with a simple "Success" page.]</p>
<p><a href="http://www.janbthomas.com/jansblog/defaultcontact/" target="blank" class="uline" >VIEW DEMO OF CONTACT WITH REDIRECT</a><br />
<br />
<strong>6.  As an alternative, create a template customized for the Content Form.</strong>  For example, a template could be created without the menus and banners.  Once created, add this template into the themes directory, and into the Content Information Page.<br />
<br />
<strong>7.  Here&#8217;s another option: bring up the contact form in a popup window.  Use this HTML code to create a link to the new Contact Form:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a class=&quot;postLink&quot; href=&quot;#&quot; 
onClick=&quot;window.open('http://www.janbthomas.com/jansblog/contact/', 'Contact Us','toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=no,width=500,height=500,top=100,left=250');&quot;/&gt; 
Contact Jan &lt;/a&gt;</pre></div></div>

<p>Here&#8217;s the final result: <a class="postLink" href="#" onClick="window.open('http://www.janbthomas.com/jansblog/contact/', 'ContactUs','toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=no,resize=no,width=500,height=500,top=100,left=250');">Contact Jan</a></p>
<p>For a more detailed description: <a href="http://www.janbthomas.com/jansblog/opening-a-new-window-play-video-in-its-own-window/" class="uline" target="blank">View Popup Window Post</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.janbthomas.com/jansblog/createcontactform/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress as a Content Management System</title>
		<link>http://www.janbthomas.com/jansblog/wordpresscms/</link>
		<comments>http://www.janbthomas.com/jansblog/wordpresscms/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 17:08:51 +0000</pubDate>
		<dc:creator>AdminJan</dc:creator>
				<category><![CDATA[Articles and Reviews]]></category>
		<category><![CDATA[WordPress Techniques]]></category>
		<category><![CDATA[wordpress cms]]></category>

		<guid isPermaLink="false">http://www.janbthomas.com/jansblog/?p=27</guid>
		<description><![CDATA[WordPress, the popular blog software, can be used as a content management system. Use the Post facility to write articles, just like bloggers. When you want to create an entire site, create Static Pages instead of Posts. These pages can be customized in php just like a traditional web page. Otherwise, use basic word processor [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress, the popular blog software, can be used as a content management system.  Use the Post facility to write articles, just like bloggers.  When you want to create an entire site, create Static Pages instead of Posts.  These pages can be customized in php just like a traditional web page.  Otherwise, use basic word processor features to design and update your web pages in WordPress.  Create your own web site maintenance within the WordPress interface.<span id="more-27"></span></p>
<p>Tips for CMS:</p>
<ul>
<li><strong>Use Permalinks to create a more traditional URL.</strong><br />
Log In as administrator and change the blog settings:<br />
Settings -> Permalinks<br />
Custom Structure:  /%postname%/</li>
<li><strong>Create a Home Page and set this as the Front Page:</strong><br />
Settings -> Reading Settings<br />
A Static Page<br />
Front Page:  <em>(home page name)</em></li>
<li>Keep the number of Plugins to a minimum.</li>
<li><strong>Get familiar with the themes directory</strong><br />
Especially these files:<br />
header.php <br />
sidebar.php<br />
footer.php
</li>
<li><strong>Customize Static Pages by Adding a Template Page to the themes directory</strong><br />
Add the following comment to the top of the php file to label the template:< br/><br />
/*<br />
Template Name: Home Page<br />
*/<br />
Now you can select this Home Page template when editting a static page in WordPress.
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.janbthomas.com/jansblog/wordpresscms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Word Press Issues: Indents and Paragraphs</title>
		<link>http://www.janbthomas.com/jansblog/word-press-indents/</link>
		<comments>http://www.janbthomas.com/jansblog/word-press-indents/#comments</comments>
		<pubDate>Thu, 13 Sep 2007 04:00:31 +0000</pubDate>
		<dc:creator>jan</dc:creator>
				<category><![CDATA[Programming Techniques]]></category>
		<category><![CDATA[WordPress Techniques]]></category>

		<guid isPermaLink="false">http://www.janbthomas.com/jansblog/?p=16</guid>
		<description><![CDATA[In Word Press blogs there are no indents and paragraphs by default. Ordinarily when you hit the &#60;Enter&#62; key you get a single line but not a paragraph. When I was trying to test this, I found that if you hit the &#60;Enter&#62; twice you get a paragraph break. The indentation is a separate issue.  [...]]]></description>
			<content:encoded><![CDATA[<p>In Word Press blogs there are no indents and paragraphs by default. Ordinarily when you hit the &lt;Enter&gt; key you get a single line but not a paragraph. When I was trying to test this, I found that if you hit the &lt;Enter&gt; twice you get a paragraph break.</p>
<p>The indentation is a separate issue.  I was reading that most bloggers don&#8217;t indent their paragraphs.  But if you want to indent a paragraph you use the style.css and add</p>
<p>text-indent: 20px;</p>
<p>For my template, posts are defined by the CSS class:  storycontent so that&#8217;s where I would add the text-indent line to my style.css file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.janbthomas.com/jansblog/word-press-indents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

