<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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>bbPress Support Forums &#187; Topic: Authentication check on non-WP page</title>
		<link>http://bbpress.org/forums/topic/authentication-check-on-non-wp-page</link>
		<description>bbPress Support Forums &#187; Topic: Authentication check on non-WP page</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 08:58:50 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/authentication-check-on-non-wp-page" rel="self" type="application/rss+xml" />

		<item>
			<title>Ashfame on "Authentication check on non-WP page"</title>
			<link>http://bbpress.org/forums/topic/authentication-check-on-non-wp-page#post-37755</link>
			<pubDate>Mon, 29 Jun 2009 08:52:39 +0000</pubDate>
			<dc:creator>Ashfame</dc:creator>
			<guid isPermaLink="false">37755@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Why not load the bbPress environment and then call function to check is user is logged in? I have done the same in WP, so I think it might be possible in bbPress very easily too.</p>
<p>For WP<br />
<pre><code>// load the WP environment so that I can call on the WP functions to make sure that user is logged in before accessing members area
require( dirname(__FILE__) . &#39;/wp-load.php&#39; ); 

if (!is_user_logged_in()) // You can&#39;t access the members area without login. Now can you?
{
auth_redirect();
}</code></pre>
<p>For bbPress, it should be like<br />
<pre><code>require(&#39;./bb-load.php&#39;);
// find the name of the function you will need</code></pre>]]></description>
					</item>
		<item>
			<title>Michael3185 on "Authentication check on non-WP page"</title>
			<link>http://bbpress.org/forums/topic/authentication-check-on-non-wp-page#post-37744</link>
			<pubDate>Sun, 28 Jun 2009 21:05:40 +0000</pubDate>
			<dc:creator>Michael3185</dc:creator>
			<guid isPermaLink="false">37744@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I use this to stop people accessing the profile page unless logged-in;</p>
<pre><code>&#60;?php if ( !bb_is_user_logged_in() ) {
	show_error_page(&#39;log-in to access profiles&#39;);
	exit;
} ?&#62;</code></pre>
<p>Something along those line should work with a link to somewhere else, assuming they're in a bbPress page to begin with.
</p>]]></description>
					</item>
		<item>
			<title>yutt on "Authentication check on non-WP page"</title>
			<link>http://bbpress.org/forums/topic/authentication-check-on-non-wp-page#post-37741</link>
			<pubDate>Sun, 28 Jun 2009 20:35:23 +0000</pubDate>
			<dc:creator>yutt</dc:creator>
			<guid isPermaLink="false">37741@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I'm trying to figure out how to verify a user is logged into BBpress before granting access on a non-bbpress page.</p>
<p>I'm currently trying to use: bb_auth() with limited success. It seems there are a lot of includes necessary. Is there a single file I can include that will load all of the mandatory functions for bb_auth?
</p>]]></description>
					</item>

	</channel>
</rss>

