<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Tag: password protect - Recent Posts</title>
		<link>http://www.kriesi.at/support/tags/password-protect</link>
		<description>Support Forum - Tag: password protect - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 07:44:51 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/tags/password-protect" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Password protect for dynamic templates"</title>
			<link>http://www.kriesi.at/support/topic/password-protect-for-dynamic-templates#post-78326</link>
			<pubDate>Wed, 03 Oct 2012 05:59:18 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">78326@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey! &#60;/p&#62;
&#60;p&#62; I corrected the code above and replaced:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;echo get_the_password_form();&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$output .=  get_the_password_form();&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Please try it again. &#60;/p&#62;
&#60;p&#62; Regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dont4getdustin on "Password protect for dynamic templates"</title>
			<link>http://www.kriesi.at/support/topic/password-protect-for-dynamic-templates#post-78300</link>
			<pubDate>Tue, 02 Oct 2012 22:34:30 +0000</pubDate>
			<dc:creator>dont4getdustin</dc:creator>
			<guid isPermaLink="false">78300@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I deleted my cookies and catches and still nothing. I have a page that I am selling a product from a category so I made a page with a dynamic template to show only that category. Still, it goes through without the need to set a password. I also made sure that i selected the second line of text was what I changed it too as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Password protect for dynamic templates"</title>
			<link>http://www.kriesi.at/support/topic/password-protect-for-dynamic-templates#post-78165</link>
			<pubDate>Tue, 02 Oct 2012 03:37:08 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">78165@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Dude's code works for me. What are the elements of your template?&#60;/p&#62;
&#60;p&#62;Please try clearing all cookies and cache or use a different browser because the first time around I tested it without the template and entered a password, so when I added the template for the second test, at first it didn't show the password field, but once I cleared the cookies, the password field showed up again. &#60;/p&#62;
&#60;p&#62;Also when switching between the code window and Dude's pasted code make sure you are grabbing the second block of code and not the first (another mistake I frequently made).&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dont4getdustin on "Password protect for dynamic templates"</title>
			<link>http://www.kriesi.at/support/topic/password-protect-for-dynamic-templates#post-78153</link>
			<pubDate>Mon, 01 Oct 2012 22:16:00 +0000</pubDate>
			<dc:creator>dont4getdustin</dc:creator>
			<guid isPermaLink="false">78153@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks for the help, I did update it but it did not work. I put a password on the page with the dynamic template on it but when I went to the page, it went on through without having to put a password in there. Is there another step that I should do to that?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Password protect for dynamic templates"</title>
			<link>http://www.kriesi.at/support/topic/password-protect-for-dynamic-templates#post-77861</link>
			<pubDate>Sat, 29 Sep 2012 07:47:18 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">77861@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Open up includes/helper-templates.php and replace following code (basically the entire post_page element function):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function post_page($element)
	{
		extract($element[&#38;#39;saved_value&#38;#39;][0]);
		$output = &#38;quot;&#38;quot;;

		switch($dynamic_which_post_page)
		{
			case&#38;#39;post&#38;#39;: $query_id = $dynamic_post_id; $type =&#38;#39;post&#38;#39;; break;
			case&#38;#39;page&#38;#39;: $query_id = $dynamic_page_id; $type =&#38;#39;page&#38;#39;; break;
			case&#38;#39;self&#38;#39;: $query_id = $this-&#38;gt;post_id;	  $type = get_post_type( $this-&#38;gt;post_id ); break;
		}

		$query_post = array( &#38;#39;p&#38;#39; =&#38;gt; $query_id, &#38;#39;posts_per_page&#38;#39;=&#38;gt;1, &#38;#39;post_type&#38;#39;=&#38;gt; $type );
		$additional_loop = new WP_Query($query_post);

		if($additional_loop-&#38;gt;have_posts())
		{
			$output .= &#38;quot;&#38;lt;div class=&#38;#39;post-entry post-entry-dynamic &#38;#39;&#38;gt;&#38;quot;;
			$output .= &#38;quot;&#38;lt;div class=&#38;#39;entry-content&#38;#39;&#38;gt;&#38;quot;;

			while ($additional_loop-&#38;gt;have_posts())
			{
				$additional_loop-&#38;gt;the_post();

				if($dynamic_which_post_page != &#38;#39;self&#38;#39; &#38;amp;&#38;amp; $query_id != $this-&#38;gt;post_id)
				{
					global $more;
					$more = 0;
				}

				if($dynamic_which_post_page_title == &#38;#39;yes&#38;#39;)
				{
					$output .= &#38;quot;&#38;lt;h1 class=&#38;#39;post-title&#38;#39;&#38;gt;&#38;quot;.get_the_title().&#38;quot;&#38;lt;/h1&#38;gt;&#38;quot;;
				}

				if(!$additional_loop-&#38;gt;post-&#38;gt;post_excerpt &#124;&#124; $query_id == $this-&#38;gt;post_id)
				{
					$content = get_the_content(&#38;#39;&#38;lt;span class=&#38;quot;inner_more&#38;quot;&#38;gt;&#38;#39;.__(&#38;#39;Read more  →&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;#39;&#38;lt;/span&#38;gt;&#38;#39;);
					$content = apply_filters(&#38;#39;the_content&#38;#39;, $content);
					$content = str_replace(&#38;#39;]]&#38;gt;&#38;#39;, &#38;#39;]]&#38;gt;&#38;#39;, $content);
				}
				else
				{
					$content = apply_filters(&#38;#39;the_excerpt&#38;#39;, get_the_excerpt());
					$content .= &#38;#39;&#38;lt;p&#38;gt;&#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;&#38;#39;. get_permalink().&#38;#39;&#38;quot;&#38;gt;&#38;lt;span class=&#38;quot;inner_more&#38;quot;&#38;gt;&#38;#39;.__(&#38;#39;Read more  →&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;#39;&#38;lt;/span&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;&#38;#39;;
				}

				$output.= $content;
				$contact_page_id = avia_get_option(&#38;#39;email_page&#38;#39;);

                //wpml prepared
                if (function_exists(&#38;#39;icl_object_id&#38;#39;))
                {
                    $contact_page_id = icl_object_id($contact_page_id, &#38;#39;page&#38;#39;, true);
                }

				if($contact_page_id == $query_id)
				{
					ob_start();
					get_template_part( &#38;#39;includes/contact-form&#38;#39; );
					$output .= ob_get_contents() ;
    				ob_end_clean();
				}
			}

			$output .= &#38;quot;&#38;lt;/div&#38;gt;&#38;lt;/div&#38;gt;&#38;quot;;
		}

		wp_reset_query();

		return $output;
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function post_page($element)
	{
		extract($element[&#38;#39;saved_value&#38;#39;][0]);
		$output = &#38;quot;&#38;quot;;

		switch($dynamic_which_post_page)
		{
			case&#38;#39;post&#38;#39;: $query_id = $dynamic_post_id; $type =&#38;#39;post&#38;#39;; break;
			case&#38;#39;page&#38;#39;: $query_id = $dynamic_page_id; $type =&#38;#39;page&#38;#39;; break;
			case&#38;#39;self&#38;#39;: $query_id = $this-&#38;gt;post_id;	  $type = get_post_type( $this-&#38;gt;post_id ); break;
		}

		$query_post = array( &#38;#39;p&#38;#39; =&#38;gt; $query_id, &#38;#39;posts_per_page&#38;#39;=&#38;gt;1, &#38;#39;post_type&#38;#39;=&#38;gt; $type );
		$additional_loop = new WP_Query($query_post);

		if($additional_loop-&#38;gt;have_posts())
		{
			$output .= &#38;quot;&#38;lt;div class=&#38;#39;post-entry post-entry-dynamic &#38;#39;&#38;gt;&#38;quot;;
			$output .= &#38;quot;&#38;lt;div class=&#38;#39;entry-content&#38;#39;&#38;gt;&#38;quot;;

			while ($additional_loop-&#38;gt;have_posts())
			{
				$additional_loop-&#38;gt;the_post();

				if($dynamic_which_post_page != &#38;#39;self&#38;#39; &#38;amp;&#38;amp; $query_id != $this-&#38;gt;post_id)
				{
					global $more;
					$more = 0;
				}

				if(!post_password_required())
				{
					if($dynamic_which_post_page_title == &#38;#39;yes&#38;#39;)
					{
						$output .= &#38;quot;&#38;lt;h1 class=&#38;#39;post-title&#38;#39;&#38;gt;&#38;quot;.get_the_title().&#38;quot;&#38;lt;/h1&#38;gt;&#38;quot;;
					}

					if(!$additional_loop-&#38;gt;post-&#38;gt;post_excerpt &#124;&#124; $query_id == $this-&#38;gt;post_id)
					{
						$content = get_the_content(&#38;#39;&#38;lt;span class=&#38;quot;inner_more&#38;quot;&#38;gt;&#38;#39;.__(&#38;#39;Read more  →&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;#39;&#38;lt;/span&#38;gt;&#38;#39;);
						$content = apply_filters(&#38;#39;the_content&#38;#39;, $content);
						$content = str_replace(&#38;#39;]]&#38;gt;&#38;#39;, &#38;#39;]]&#38;gt;&#38;#39;, $content);
					}
					else
					{
						$content = apply_filters(&#38;#39;the_excerpt&#38;#39;, get_the_excerpt());
						$content .= &#38;#39;&#38;lt;p&#38;gt;&#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;&#38;#39;. get_permalink().&#38;#39;&#38;quot;&#38;gt;&#38;lt;span class=&#38;quot;inner_more&#38;quot;&#38;gt;&#38;#39;.__(&#38;#39;Read more  →&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;#39;&#38;lt;/span&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;&#38;#39;;
					}

					$output.= $content;
					$contact_page_id = avia_get_option(&#38;#39;email_page&#38;#39;);

	                //wpml prepared
	                if (function_exists(&#38;#39;icl_object_id&#38;#39;))
	                {
	                    $contact_page_id = icl_object_id($contact_page_id, &#38;#39;page&#38;#39;, true);
	                }

					if($contact_page_id == $query_id)
					{
						ob_start();
						get_template_part( &#38;#39;includes/contact-form&#38;#39; );
						$output .= ob_get_contents() ;
	    				ob_end_clean();
					}
				}
				else
				{
					$output .=  get_the_password_form();
				}
			}

			$output .= &#38;quot;&#38;lt;/div&#38;gt;&#38;lt;/div&#38;gt;&#38;quot;;
		}

		wp_reset_query();

		return $output;
	}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Ismael on "Password protect for dynamic templates"</title>
			<link>http://www.kriesi.at/support/topic/password-protect-for-dynamic-templates#post-77851</link>
			<pubDate>Sat, 29 Sep 2012 07:02:29 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">77851@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi dont4getdustin,&#60;/p&#62;
&#60;p&#62;I'm not sure how to do this customization. Let me tag the rest of the support.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dont4getdustin on "Password protect for dynamic templates"</title>
			<link>http://www.kriesi.at/support/topic/password-protect-for-dynamic-templates#post-77808</link>
			<pubDate>Fri, 28 Sep 2012 19:12:26 +0000</pubDate>
			<dc:creator>dont4getdustin</dc:creator>
			<guid isPermaLink="false">77808@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hello, I was wondering if there is a way to password protect pages with a dynamic template in them. I can add a password to the page but when I go onto that page, it goes through and does not really block anything. I have a client that is selling photos and he needs to be able to add passwords to pages for his pictures he is selling. Any help would be great for this, thank you so much. Also, I am using the Abundance theme as well. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Password Protected Page not Redirecting"</title>
			<link>http://www.kriesi.at/support/topic/password-protected-page-not-redirecting#post-71717</link>
			<pubDate>Sun, 19 Aug 2012 02:27:53 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">71717@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;Great find and thanks for sharing it with others. Wordpress is evolving. &#60;/p&#62;
&#60;p&#62;Good luck,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>chrislimbacher on "Password Protected Page not Redirecting"</title>
			<link>http://www.kriesi.at/support/topic/password-protected-page-not-redirecting#post-71525</link>
			<pubDate>Fri, 17 Aug 2012 09:01:33 +0000</pubDate>
			<dc:creator>chrislimbacher</dc:creator>
			<guid isPermaLink="false">71525@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I found the solution! I'm surprised more people haven't noticed this bug.&#60;/p&#62;
&#60;p&#62;The problem is that WordPress 3.4 has deprecated the use of wp-pass.php which was used in many custom password forms and replaced it with wp-login.php. The following link explains how to swap the code in the theme's function.php file. Worked for me! Hope this helps someone else.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://tummel.me/wordpress-3-4-custom-password-form/&#34; rel=&#34;nofollow&#34;&#62;http://tummel.me/wordpress-3-4-custom-password-form/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks for your time Dude!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Password Protected Page not Redirecting"</title>
			<link>http://www.kriesi.at/support/topic/password-protected-page-not-redirecting#post-66025</link>
			<pubDate>Tue, 17 Jul 2012 06:47:16 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">66025@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey! &#60;/p&#62;
&#60;p&#62; I'm not sure what causes this issue (to be honest I never came across it before). Maybe a third party plugin interferes with the standard wordpress password protection? &#60;/p&#62;
&#60;p&#62; Regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>chrislimbacher on "Password Protected Page not Redirecting"</title>
			<link>http://www.kriesi.at/support/topic/password-protected-page-not-redirecting#post-65514</link>
			<pubDate>Fri, 13 Jul 2012 21:39:54 +0000</pubDate>
			<dc:creator>chrislimbacher</dc:creator>
			<guid isPermaLink="false">65514@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;HI!&#60;/p&#62;
&#60;p&#62;I've been having a problem and I think it may be caused by the most recent update 3.4.1.&#60;/p&#62;
&#60;p&#62;I've made no changes to my site accept for updating wordpress and just recently I've noticed that one of my password protected pages is not redirecting me to the content when the password is entered. It just seems to load wp-pass and then reload the password &#34;enter your password&#34; form. See here: &#60;a href=&#34;http://www.xpographics.com/ftp-client-upload/&#34; rel=&#34;nofollow&#34;&#62;http://www.xpographics.com/ftp-client-upload/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I haven't been able to find anything online that fixes this. Not sure if others are having this problem.&#60;/p&#62;
&#60;p&#62;I would LOVE some help!&#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
(Using DISPLAY theme)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
