<?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: How To Show Content For Specific Users In WordPress Templates</title>
	<atom:link href="http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/</link>
	<description>You dream it up, we code it to life.</description>
	<lastBuildDate>Sat, 13 Mar 2010 11:41:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jack</title>
		<link>http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/comment-page-1/#comment-4397</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Sun, 21 Jun 2009 16:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.bravenewcode.com/?p=114#comment-4397</guid>
		<description>actually not by using ajax and js, just when the user entered to the site see a line that said the admin is off or not, i used also wp-useronline and made an echo to return when admin with his special user is online, so show &quot;online&quot; and if not &quot;offline&quot; but a problem that there is, the code returns only &quot;online&quot; coz the useronline knows the ip and cookie, like whenever u comment on a site, when u wanna again comment u see your name and email is in their fields without filling them again. so it&#039;s not a good way, i&#039;m just trying to find sth to simply show it. thanks</description>
		<content:encoded><![CDATA[<p>actually not by using ajax and js, just when the user entered to the site see a line that said the admin is off or not, i used also wp-useronline and made an echo to return when admin with his special user is online, so show &#8220;online&#8221; and if not &#8220;offline&#8221; but a problem that there is, the code returns only &#8220;online&#8221; coz the useronline knows the ip and cookie, like whenever u comment on a site, when u wanna again comment u see your name and email is in their fields without filling them again. so it&#8217;s not a good way, i&#8217;m just trying to find sth to simply show it. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale Mugford</title>
		<link>http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/comment-page-1/#comment-4395</link>
		<dc:creator>Dale Mugford</dc:creator>
		<pubDate>Sun, 21 Jun 2009 15:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.bravenewcode.com/?p=114#comment-4395</guid>
		<description>Well &#039;logged in&#039; could still mean they&#039;ve left to the site, depending on whether they&#039;ve told wordpress to &#039;remember me&#039; or not. That checkbox determines whether someone is logged in only with a browser session cookie, or the cookie lasts beyond the browser session and they can come back and still be logged in.

What I&#039;m trying to determine is if you&#039;re looking for whether they&#039;re &#039;online&#039; as in &lt;em&gt;at the site at that moment&lt;/em&gt; or not.</description>
		<content:encoded><![CDATA[<p>Well &#8216;logged in&#8217; could still mean they&#8217;ve left to the site, depending on whether they&#8217;ve told wordpress to &#8216;remember me&#8217; or not. That checkbox determines whether someone is logged in only with a browser session cookie, or the cookie lasts beyond the browser session and they can come back and still be logged in.</p>
<p>What I&#8217;m trying to determine is if you&#8217;re looking for whether they&#8217;re &#8216;online&#8217; as in <em>at the site at that moment</em> or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/comment-page-1/#comment-4389</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Sun, 21 Jun 2009 07:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.bravenewcode.com/?p=114#comment-4389</guid>
		<description>i don&#039;t wanna make it hard to just echo &quot;online&quot; or &quot;offline&quot; just if there is a function to use like is_user_logged_in, it will be better</description>
		<content:encoded><![CDATA[<p>i don&#8217;t wanna make it hard to just echo &#8220;online&#8221; or &#8220;offline&#8221; just if there is a function to use like is_user_logged_in, it will be better</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale Mugford</title>
		<link>http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/comment-page-1/#comment-4382</link>
		<dc:creator>Dale Mugford</dc:creator>
		<pubDate>Sat, 20 Jun 2009 21:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.bravenewcode.com/?p=114#comment-4382</guid>
		<description>I take it you mean you want other users to know when an admin is around, correct? If so, you&#039;d need javascript and Ajax to accomplish that.</description>
		<content:encoded><![CDATA[<p>I take it you mean you want other users to know when an admin is around, correct? If so, you&#8217;d need javascript and Ajax to accomplish that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/comment-page-1/#comment-4375</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Sat, 20 Jun 2009 18:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.bravenewcode.com/?p=114#comment-4375</guid>
		<description>i don&#039;t wanna use the code for current user i wanna echo &quot;Online&quot; for example, if admin is logged in wordpress. thanks</description>
		<content:encoded><![CDATA[<p>i don&#8217;t wanna use the code for current user i wanna echo &#8220;Online&#8221; for example, if admin is logged in wordpress. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale Mugford</title>
		<link>http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/comment-page-1/#comment-4371</link>
		<dc:creator>Dale Mugford</dc:creator>
		<pubDate>Sat, 20 Jun 2009 13:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.bravenewcode.com/?p=114#comment-4371</guid>
		<description>@&lt;a href=&quot;#comment-4370&quot; rel=&quot;nofollow&quot;&gt;Jack&lt;/a&gt;: Well the &lt;code&gt;if (current_user_can(&#039;level_10&#039;))&lt;/code&gt; takes care of that.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4370" rel="nofollow">Jack</a>: Well the <code>if (current_user_can('level_10'))</code> takes care of that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/comment-page-1/#comment-4370</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Sat, 20 Jun 2009 11:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.bravenewcode.com/?p=114#comment-4370</guid>
		<description>thanks for useful post, but what can we use for show if admin is logged in or not, for example if (is_admin_logged_in()), anything like this ?
thanks</description>
		<content:encoded><![CDATA[<p>thanks for useful post, but what can we use for show if admin is logged in or not, for example if (is_admin_logged_in()), anything like this ?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale Mugford</title>
		<link>http://www.bravenewcode.com/2008/05/how-to-show-content-for-specific-users-in-wordpress-templates/comment-page-1/#comment-4009</link>
		<dc:creator>Dale Mugford</dc:creator>
		<pubDate>Thu, 09 Apr 2009 04:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.bravenewcode.com/?p=114#comment-4009</guid>
		<description>You&#039;re welcome- I&#039;ll likely write another one, a little more advanced that ties into the types of content you can serve up based on roles, such as author interactivity on the front end.</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome- I&#8217;ll likely write another one, a little more advanced that ties into the types of content you can serve up based on roles, such as author interactivity on the front end.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
