<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WordPress Client Login and Password Protected Pages</title>
	<atom:link href="http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/</link>
	<description></description>
	<lastBuildDate>Mon, 21 Nov 2011 22:15:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: How to create a client portal in WordPress &#124; Jean Egan &#124; Jean Egan Jean Egan</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-1255</link>
		<dc:creator>How to create a client portal in WordPress &#124; Jean Egan &#124; Jean Egan Jean Egan</dc:creator>
		<pubDate>Thu, 04 Aug 2011 04:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-1255</guid>
		<description>[...] did a quick search for &#8220;Client Portal WordPress&#8221; and came up with this and this. I did a few more things than they did, but that&#8217;s where I started. I liked what I [...]</description>
		<content:encoded><![CDATA[<p>[...] did a quick search for &#8220;Client Portal WordPress&#8221; and came up with this and this. I did a few more things than they did, but that&#8217;s where I started. I liked what I [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lindsay</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-1201</link>
		<dc:creator>Lindsay</dc:creator>
		<pubDate>Tue, 19 Jul 2011 16:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-1201</guid>
		<description>I have gone over and over and over this and can&#039;t seem to get it to work and I am on day two now.  When you say &quot;set the main client page to the template page&quot; what exactly do you mean by that?  I&#039;m not a php novice but something is going over my head right now.</description>
		<content:encoded><![CDATA[<p>I have gone over and over and over this and can&#8217;t seem to get it to work and I am on day two now.  When you say &#8220;set the main client page to the template page&#8221; what exactly do you mean by that?  I&#8217;m not a php novice but something is going over my head right now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kam</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-804</link>
		<dc:creator>Kam</dc:creator>
		<pubDate>Fri, 07 Jan 2011 20:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-804</guid>
		<description>Hi There,

I would love to take a look at any of your wordpress Client Login and Password Protected Pages code, if its been updated/changed from what is posted on the WP link and share back anything that comes of it..

Thanks for the help if you can.. I am trying to see where this leads...

KAM</description>
		<content:encoded><![CDATA[<p>Hi There,</p>
<p>I would love to take a look at any of your wordpress Client Login and Password Protected Pages code, if its been updated/changed from what is posted on the WP link and share back anything that comes of it..</p>
<p>Thanks for the help if you can.. I am trying to see where this leads&#8230;</p>
<p>KAM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-644</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Sun, 24 Jan 2010 23:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-644</guid>
		<description>Oh drat - it stripped the php opening statements! Oh well - feel free to email me if you want this code. I may just share it on my site &amp; post a link, if that is helpful to anyone else.</description>
		<content:encoded><![CDATA[<p>Oh drat &#8211; it stripped the php opening statements! Oh well &#8211; feel free to email me if you want this code. I may just share it on my site &amp; post a link, if that is helpful to anyone else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-643</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Sun, 24 Jan 2010 23:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-643</guid>
		<description>Thanks so much for this article. It was sooo helpful!

I added a few extra lines in the code to allow for page children to be visited by the user without being forbidden access.

First define the parent page by adding these 2 lines:

	$parent_title = strtolower(get_the_title($post-&gt;post_parent));
	$theparent = str_replace(&#039; &#039;, &#039;&#039;, $parent_title);

Next, in your if statement, add another or statement that allows a user access to the page if they are logged in and have the parent page username:

	&#124;&#124; is_user_logged_in() &amp;&amp; $username==$parent_title



In your clientpagetemplate.php page (whatever it&#039;s name is!) The code is placed like this (These are not complete php statements, it&#039;s just to help show location of new code.):

user_login );

	$parent_title = strtolower(get_the_title($post-&gt;post_parent));
	$theparent = str_replace(&#039; &#039;, &#039;&#039;, $parent_title);
 ?&gt;



---

Best wishes!</description>
		<content:encoded><![CDATA[<p>Thanks so much for this article. It was sooo helpful!</p>
<p>I added a few extra lines in the code to allow for page children to be visited by the user without being forbidden access.</p>
<p>First define the parent page by adding these 2 lines:</p>
<p>	$parent_title = strtolower(get_the_title($post-&gt;post_parent));<br />
	$theparent = str_replace(&#8216; &#8216;, &#8221;, $parent_title);</p>
<p>Next, in your if statement, add another or statement that allows a user access to the page if they are logged in and have the parent page username:</p>
<p>	|| is_user_logged_in() &amp;&amp; $username==$parent_title</p>
<p>In your clientpagetemplate.php page (whatever it&#8217;s name is!) The code is placed like this (These are not complete php statements, it&#8217;s just to help show location of new code.):</p>
<p>user_login );</p>
<p>	$parent_title = strtolower(get_the_title($post-&gt;post_parent));<br />
	$theparent = str_replace(&#8216; &#8216;, &#8221;, $parent_title);<br />
 ?&gt;</p>
<p>&#8212;</p>
<p>Best wishes!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leon Amarant</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-71</link>
		<dc:creator>Leon Amarant</dc:creator>
		<pubDate>Tue, 02 Jun 2009 02:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-71</guid>
		<description>full code posted on: http://wordpress.org/support/topic/217141</description>
		<content:encoded><![CDATA[<p>full code posted on: <a href="http://wordpress.org/support/topic/217141" rel="nofollow">http://wordpress.org/support/topic/217141</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-70</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Mon, 01 Jun 2009 21:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-70</guid>
		<description>you mind sharing how you set up your parent client page as a redirect page as you mentioned in post 217141 on wordpress? i see the need to do this, so you don&#039;t have to set up a redirect each time you add a client. any help is appreciated.</description>
		<content:encoded><![CDATA[<p>you mind sharing how you set up your parent client page as a redirect page as you mentioned in post 217141 on wordpress? i see the need to do this, so you don&#8217;t have to set up a redirect each time you add a client. any help is appreciated.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

