<?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>Rob Cooper dot Com - Canadian Eh &#187; wordpress</title>
	<atom:link href="http://www.robcooper.com/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.robcooper.com</link>
	<description>.... anything is possible and nothing happens by accident</description>
	<lastBuildDate>Tue, 19 Jan 2010 07:40:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Password Protect Part of Post or Page</title>
		<link>http://www.robcooper.com/wordpress/how-to-password-protect-post-page.html</link>
		<comments>http://www.robcooper.com/wordpress/how-to-password-protect-post-page.html#comments</comments>
		<pubDate>Fri, 17 Jul 2009 18:33:28 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://www.robcooper.com/?p=189</guid>
		<description><![CDATA[If you're looking for way to password protect part of a post or page in wordpress, these two plugins provide an answer to your quest.  Show part of your post to regular readers, but hide part of the post with a password.]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to password protect part of your blog post or page, but display some content as well?  This little wordpress plugin allows you to show part of a post or page and then keep a portion password protected.  Password protecting a post is easy, it&#8217;s the showing of partial content that&#8217;s tricky.  This is not about password protecting part of your website, but part of a post.</p>
<p>I&#8217;ve been looking for a solution to this for awhile now.</p>
<p>I have a very popular natural health and weight loss website which publishes a monthly newsletter.  Subscribers to that newsletter get my free report &#8220;How I Lost 300 Pounds &#8211; How To Lose 10 Pounds a Month, Every Month, Until You Reach Your Goal Weight&#8221;.  Those who follow the directions in the report often go on to report that they&#8217;re getting the results and losing the weight while feeling much better. The free weight loss report is a way for me to offer some really great content in exchange for an email address.</p>
<p>I&#8217;m sure you might be in the same situation.</p>
<p>So, in giving them a place to download the material, on my download page, I also want to offer other reports to the general readership.  In offering other reports of value, it&#8217;s a way to show them that by subscribing, the get the &#8220;big one&#8221;.  </p>
<p>I wondered &#8220;how do I password protect part of a post or page?&#8221; but not the rest.</p>
<p>Apparently it can&#8217;t be done.</p>
<p><strong>Until I found this plugin:</strong> <a href="http://www.newmedias.co.uk/free-wordpress-plugins/">Password &#8211; Partial Post Protection</a> (which didn&#8217;t work out of the box as claimed I might add).  On that page, half way down it is the link. It&#8217;s tucked in between a few other wordpress plugins but a little hard to see if you just scan over it.</p>
<p><img src="http://www.robcooper.com/canadian/wordpress/password-protect-part-of-post-or-page.png" title="password protect part of post or page" alt="password protect part of post or page" align="right" style="margin:0 0 10px 10px">What it does is add a little box above your publish section in the upper right hand corner of your write post page in your wordpress admin.  It uses shortcodes as you see in the image and everything within the shortcodes becomes password protected.</p>
<h2>Code Is Broken Though</h2>
<p>It&#8217;s a single file and out of the box it wont work.  In order for the form to submit the password back to the page for authentication, you have to press the submit button (obviously), but the &lt;input&gt; field for the submit button uses type=&#8221;button&#8221; which does not submit the form.</p>
<p>Line 67 has to be changed from &lt;input type=&#8221;button&#8221; &#8230;&#8230;..&gt; to &lt;input type=&#8221;submit&#8221; &#8230;..&gt;</p>
<p>Have a look at how it works:</p>
<p><strong>The next section of this post is password protected!</strong><br />
(password is &#8220;test&#8221;)</p>
<form action="/category/wordpress/feed" method="post" enctype="multipart/form-data"><label>Password&nbsp;<input type="password" name="password" /></label><input type="submit" value="submit" name="submit" /></form>
<p>&nbsp;</p>
<p><strong>And this part is now visible again:</strong><br />
And this part below the password protection is again available to readers without the password.</p>
<p>This first solution <em>does not</em> make use of the built in password protection feature of wordpress.</p>
<h3>A Second Solution</h3>
<p>Funny enough, after looking for a solution to this for hours, I happened to read over the sitemap of a page I had open in a tab in my browser and found another solution to this.  I haven&#8217;t tried his <a href="http://www.dagondesign.com/articles/show-the-intro-to-password-protected-posts-in-wordpress/">show the intro to password protected posts</a> wordpress plugin, but I&#8217;m running a few others from him.</p>
<p>This second solution makes use of the <-- more --> tag <em>and</em> actual wordpress post password protection.</p>
<p>Seems to me that the first solution using short codes is a bit easier.</p>
<p>So there you have it.  If you want to know how to password protect part of a post or page in wordpress, these two plugins may do the trick for you as they have for me.  Now, I can move forward and create the download page for my readers that hides the bonus report until the subscribe for the password.</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.robcooper.com%2Fwordpress%2Fhow-to-password-protect-post-page.html"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.robcooper.com%2Fwordpress%2Fhow-to-password-protect-post-page.html" height="61" width="51" /></a></div><img src="http://www.robcooper.com/?ak_action=api_record_view&id=189&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.robcooper.com/wordpress/how-to-password-protect-post-page.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
