<?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>Membership Site Plugin - Wordpress Membership Plugin - MemberWing &#187; hide sidebar widgets</title>
	<atom:link href="http://www.memberwing.com/tag/hide-sidebar-widgets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.memberwing.com</link>
	<description>Wordpress Membership Plugin - Software to Build Membership and Subscription Sites. Wordpress Membership and Subscription plugin MemberWing - Forum - Information - Resources</description>
	<lastBuildDate>Thu, 19 Jan 2012 14:12:47 +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>How to protect sidebar data and widgets via membership site options</title>
		<link>http://www.memberwing.com/memberwing-plugin/how-to-protect-sidebar-data-and-widgets-via-membership-site-options/</link>
		<comments>http://www.memberwing.com/memberwing-plugin/how-to-protect-sidebar-data-and-widgets-via-membership-site-options/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 20:29:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MemberWing plugin]]></category>
		<category><![CDATA[hide sidebar widgets]]></category>
		<category><![CDATA[protect sidebar widgets]]></category>
		<category><![CDATA[sidebar widgets]]></category>

		<guid isPermaLink="false">http://www.memberwing.com/?p=419</guid>
		<description><![CDATA[Some asked an excellent and reasonable question: How to protect sidebar data for the membership site? The problem is that premium content markers { +++ } does not work within sidebar content. But the task can easily be solved with the help of free, simple and powerful Widget Logic plugin. The sequence of steps to [...]]]></description>
			<content:encoded><![CDATA[<p>Some asked an excellent and reasonable question:</p>
<p>How to protect sidebar data for the membership site?</p>
<p>The problem is that premium content markers <strong><span style="color: #000000;">{</span></strong> +++ <strong>}</strong> does not work within sidebar content. But the task can easily be solved with the help of free, simple and powerful <a href="http://wordpress.org/extend/plugins/widget-logic/"><strong>Widget Logic plugin</strong></a>.</p>
<p>The sequence of steps to create a premium-only sidebar widget would be like this:</p>
<ol>
<li>Install and activate Widget Logic plugin</li>
<li>Go to Appearance-&gt;Widgets</li>
<li>for the sake of this example let work with Text widget &#8211; drag and drop &#8220;Text&#8221; widget to the sidebar of choice.</li>
<li>Title it &#8220;Premium sutff&#8221; of whatever you want.</li>
<li>Inside of it put text: &#8220;This is my premium and very valuable text&#8221;</li>
<li>Note &#8220;widget logic&#8221; field available at the end of this widget dialog. (It will be available for every widget as Widget Logic plugin is installed).</li>
<li>Paste in this field the following code snippet:
<pre>return (current_user_can ('edit_users') || current_user_can ('read_platinum'));</pre>
<p>Above snippet will show this widget only to administrators and &#8220;Platinum&#8221; premium members. <br />Cool? Yes!</p>
</li>
<li>Press button [Save] and link &#8220;Close&#8221;. </li>
<li>Now reload your blog &#8211; and you&#8217;ll see your premium widget &#8211; because you&#8217;re admin. Logoff and create some &#8220;Platinum Member&#8221; user (that is if you&#8217;re using MemberWing). Then login as new platinum member &#8211; and you&#8217;ll see your widget. Logoff and login as gold member &#8211; and you&#8217;ll not see it.</li>
<li>Here are variations of the code to paste into &#8220;widget logic&#8221; field to make the widget premium and be shown only to certain levels:</li>
</ol>
<ul>
<li><strong>Bronze level</strong>: Visible to Bronze, Silver, Gold, Platinum  members only:
<pre>return (current_user_can ('edit_users') || current_user_can ('read_bronze') || current_user_can ('read_silver') || current_user_can ('read_gold') || current_user_can ('read_platinum'));</pre>
</li>
<li><strong>Silver level</strong>: Visible to Silver, Gold, Platinum  members only:
<pre>return (current_user_can ('edit_users') || current_user_can ('read_silver') || current_user_can ('read_gold') || current_user_can ('read_platinum')); </pre>
</li>
<li><strong>Gold level</strong>: Visible to Gold, Platinum  members only:
<pre>return (current_user_can ('edit_users') || current_user_can ('read_gold') || current_user_can ('read_platinum'));</pre>
</li>
<li><strong>Platinum level</strong>: Visible to Platinum  members only:
<pre>return (current_user_can ('edit_users') || current_user_can ('read_platinum'));</pre>
</li>
</ul>
<p>You may also add another pieces of logic into the snippet, such as <code>is_page()</code> to show the widget only to premium users that are viewing pages, but not posts. Sky is the limit!</p>
<ol> </ol>
]]></content:encoded>
			<wfw:commentRss>http://www.memberwing.com/memberwing-plugin/how-to-protect-sidebar-data-and-widgets-via-membership-site-options/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

