<?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/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
> <channel><title>Comments on: Tutorial: Content For Admin Only</title> <atom:link href="http://wpcandy.com/teaches/tutorial-content-for-admin-only/feed" rel="self" type="application/rss+xml" /><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-content-for-admin-only</link> <description>A blog all about WordPress. Yes, we&#039;re a bit meta.</description> <lastBuildDate>Thu, 24 May 2012 19:56:20 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Leeroy</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-342784</link> <dc:creator>Leeroy</dc:creator> <pubDate>Wed, 04 Jan 2012 14:41:44 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-342784</guid> <description>Hey fellas,I have a php file with a form that appends to a CSV file on the server. It&#039;s at &lt;code&gt;http://example.com/stuffs/my-db-entry-form.php&lt;/code&gt; and in that same folder is the &lt;code&gt;mydb.csv&lt;/code&gt; file.I want to restrict access to this PHP file and make it accessible only to users who are logged into Wordpress (as those guys will be doing the actual work filling in the form with new database entries).What do I have to do to put my-db-entry-form.php &quot;inside&quot; Wordpress and restrict access to it?</description> <content:encoded><![CDATA[<p>Hey fellas,</p><p>I have a php file with a form that appends to a CSV file on the server. It&#8217;s at <code><a
href="http://example.com/stuffs/my-db-entry-form.php" rel="nofollow">http://example.com/stuffs/my-db-entry-form.php</a></code> and in that same folder is the <code>mydb.csv</code> file.</p><p>I want to restrict access to this PHP file and make it accessible only to users who are logged into WordPress (as those guys will be doing the actual work filling in the form with new database entries).</p><p>What do I have to do to put my-db-entry-form.php &#8220;inside&#8221; WordPress and restrict access to it?</p> ]]></content:encoded> </item> <item><title>By: ontavu</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-90073</link> <dc:creator>ontavu</dc:creator> <pubDate>Thu, 28 Apr 2011 11:54:41 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-90073</guid> <description>Thank you very much.
I was looking for this!</description> <content:encoded><![CDATA[<p>Thank you very much.<br
/> I was looking for this!</p> ]]></content:encoded> </item> <item><title>By: Os Melhores Artigos Fevereiro 25 through Março 3 &#124; Sérgio Designtrends</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-1621</link> <dc:creator>Os Melhores Artigos Fevereiro 25 through Março 3 &#124; Sérgio Designtrends</dc:creator> <pubDate>Fri, 05 Mar 2010 00:30:59 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-1621</guid> <description>[...] Tutorial: Content For Admin Only &#8212; WPCandy &#8212; WordPress Themes, Plugins, Tips, and Tricks &#8211; [...]</description> <content:encoded><![CDATA[<p>[...] Tutorial: Content For Admin Only &mdash; WPCandy &mdash; WordPress Themes, Plugins, Tips, and Tricks &#8211; [...]</p> ]]></content:encoded> </item> <item><title>By: WP Tricks</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-1620</link> <dc:creator>WP Tricks</dc:creator> <pubDate>Wed, 03 Mar 2010 11:06:19 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-1620</guid> <description>This is what I looking for</description> <content:encoded><![CDATA[<p>This is what I looking for</p> ]]></content:encoded> </item> <item><title>By: Vincent</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-1619</link> <dc:creator>Vincent</dc:creator> <pubDate>Thu, 09 Oct 2008 14:02:20 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-1619</guid> <description>It would be nicer if you installed a plugin like &quot;code markup&quot; to display source code more elegantly. Anyway, thanks for the info. I just happen to need this for a plugin.</description> <content:encoded><![CDATA[<p>It would be nicer if you installed a plugin like &#8220;code markup&#8221; to display source code more elegantly. Anyway, thanks for the info. I just happen to need this for a plugin.</p> ]]></content:encoded> </item> <item><title>By: 25+ Essential Articles For Every WordPress Beginner</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-1618</link> <dc:creator>25+ Essential Articles For Every WordPress Beginner</dc:creator> <pubDate>Wed, 03 Sep 2008 14:01:36 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-1618</guid> <description>[...] Tutorial : Content For Admin Only . . [...]</description> <content:encoded><![CDATA[<p>[...] Tutorial : Content For Admin Only . . [...]</p> ]]></content:encoded> </item> <item><title>By: Josh</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-1617</link> <dc:creator>Josh</dc:creator> <pubDate>Thu, 21 Aug 2008 20:08:38 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-1617</guid> <description>&lt;blockquote&gt;&lt;a href=&quot;#comment-1706&quot; rel=&quot;nofollow&quot;&gt;Sorry for my poor english :(How to add content for non-admin?
I want to add stat tracking code that only works when visitors visit my pages, not me
so it won’t track my own visit&lt;/a&gt;&lt;/blockquote&gt;Put an exclamation mark before &lt;code&gt;current_user_can&lt;/code&gt;. So, it becomes &lt;code&gt;!current_user_can&lt;/code&gt;.</description> <content:encoded><![CDATA[<blockquote><p><a
href="#comment-1706" rel="nofollow">Sorry for my poor english <img
src='http://cdn.wpcandy.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p><p>How to add content for non-admin?<br
/> I want to add stat tracking code that only works when visitors visit my pages, not me<br
/> so it won’t track my own visit</a></p></blockquote><p>Put an exclamation mark before <code>current_user_can</code>. So, it becomes <code>!current_user_can</code>.</p> ]]></content:encoded> </item> <item><title>By: Marci :)</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-1616</link> <dc:creator>Marci :)</dc:creator> <pubDate>Tue, 01 Jul 2008 16:46:55 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-1616</guid> <description>Many of you who have commented here will be interested in this new plugin called Role Scoper (http://agapetry.net/news/introducing-role-scoper/). It&#039;s an absolute God-send!! It adds to the functionality of Role Manager in ways that replace about a dozen other plugins. It&#039;s in public beta, with little in the way of instructions, but if you&#039;ve ever struggled with wanting to customize your users roles and capabilities at a much deeper level, you should really look into this one! (I did NOT create it, I just found it and am using it.)</description> <content:encoded><![CDATA[<p>Many of you who have commented here will be interested in this new plugin called Role Scoper (<a
href="http://agapetry.net/news/introducing-role-scoper/" rel="nofollow">http://agapetry.net/news/introducing-role-scoper/</a>). It&#8217;s an absolute God-send!! It adds to the functionality of Role Manager in ways that replace about a dozen other plugins. It&#8217;s in public beta, with little in the way of instructions, but if you&#8217;ve ever struggled with wanting to customize your users roles and capabilities at a much deeper level, you should really look into this one! (I did NOT create it, I just found it and am using it.)</p> ]]></content:encoded> </item> <item><title>By: Neil Stead</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-1615</link> <dc:creator>Neil Stead</dc:creator> <pubDate>Mon, 12 May 2008 17:36:29 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-1615</guid> <description>The use of User levels has been deprecated since Wordpress V2.0 - it&#039;s there for backwards compatibility, but there&#039;s a better way to do it...Have a look at the Role Manager plugin here:
http://www.im-web-gefunden.de/wordpress-plugins/role-manager/This allows you to create new &quot;capabilities&quot;, and assign them to User roles (you can also create new User roles).So, for your example, you could create a capability called &quot;view-stats&quot;, and assign it to the &quot;Administrator&quot; role.
Then in your code, use the following:&lt;?php if (current_user_can(&#039;view-stats&#039;) ) : &gt;etc.Neil.</description> <content:encoded><![CDATA[<p>The use of User levels has been deprecated since WordPress V2.0 &#8211; it&#8217;s there for backwards compatibility, but there&#8217;s a better way to do it&#8230;</p><p>Have a look at the Role Manager plugin here:<br
/> <a
href="http://www.im-web-gefunden.de/wordpress-plugins/role-manager/" rel="nofollow">http://www.im-web-gefunden.de/wordpress-plugins/role-manager/</a></p><p>This allows you to create new &#8220;capabilities&#8221;, and assign them to User roles (you can also create new User roles).</p><p>So, for your example, you could create a capability called &#8220;view-stats&#8221;, and assign it to the &#8220;Administrator&#8221; role.<br
/> Then in your code, use the following:</p><p>&lt;?php if (current_user_can(&#8216;view-stats&#8217;) ) : &gt;</p><p>etc.</p><p>Neil.</p> ]]></content:encoded> </item> <item><title>By: Noura</title><link>http://wpcandy.com/teaches/tutorial-content-for-admin-only#comment-1614</link> <dc:creator>Noura</dc:creator> <pubDate>Wed, 02 Apr 2008 22:50:51 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/tutorial-content-for-admin-only/#comment-1614</guid> <description>Hi Michael,
Thanks for this nice tutorial.
I was wondering if you could help me with this:
I want to make the users who have Author role to just view or edit their own posts. I know how to make them edit their posts, but the problem is that i don&#039;t want them to view others post in the admin panel, also i don&#039;t want to give them control with any comments.
Your help is greatly appreciated,
Noura</description> <content:encoded><![CDATA[<p>Hi Michael,<br
/> Thanks for this nice tutorial.<br
/> I was wondering if you could help me with this:<br
/> I want to make the users who have Author role to just view or edit their own posts. I know how to make them edit their posts, but the problem is that i don&#8217;t want them to view others post in the admin panel, also i don&#8217;t want to give them control with any comments.<br
/> Your help is greatly appreciated,<br
/> Noura</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 35/38 queries in 0.008 seconds using disk: basic
Object Caching 1137/1145 objects using disk: basic
Content Delivery Network via cdn.wpcandy.com

Served from: wpcandy.com @ 2012-05-24 16:55:14 -->
