<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Topic: Always login</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Always login</description>
<language>en</language>
<pubDate>Wed, 03 Dec 2008 03:31:05 +0000</pubDate>

<item>
<title>fel64 on "Always login"</title>
<link>http://bbpress.org/forums/topic/always-login#post-10081</link>
<pubDate>Thu, 09 Aug 2007 16:56:33 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">10081@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I think bb_cookie is in pluggable.php, so yes. Just look for wordpress documentation on overwriting functions like this (achieveable through plugins).&#60;/p&#62;
&#60;p&#62;Also easy. :)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;bb_init&#38;#39;, &#38;#39;chuck_out_lusers&#38;#39;);
function chuck_out_lusers() {
if( !bb_get_current_user() &#38;#38;&#38;#38; bb_get_location != &#38;#39;login-page&#38;#39; ) {
header(&#38;#39;Location: &#60;a href=&#34;http://blah.example.com/bb-login.php&#38;#39;&#34; rel=&#34;nofollow&#34;&#62;http://blah.example.com/bb-login.php&#38;#39;&#60;/a&#62;);
exit;
}
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Null on "Always login"</title>
<link>http://bbpress.org/forums/topic/always-login#post-10075</link>
<pubDate>Thu, 09 Aug 2007 14:02:31 +0000</pubDate>
<dc:creator>Null</dc:creator>
<guid isPermaLink="false">10075@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Can this be used as a plugin? The real questions should be: Can you overide normal bbpress functions with a plugin? And if so, how would this plugin look like?&#60;/p&#62;
&#60;p&#62;And can a function like this be added:&#60;br /&#62;
&#60;code&#62;If user logged-in = false -&#38;gt; redirect to login.php (or register.php)&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>so1o on "Always login"</title>
<link>http://bbpress.org/forums/topic/always-login#post-10074</link>
<pubDate>Thu, 09 Aug 2007 13:43:50 +0000</pubDate>
<dc:creator>so1o</dc:creator>
<guid isPermaLink="false">10074@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;i think you can do this by overridding the bb_cookie function and replacing it with&#60;/p&#62;
&#60;p&#62;function bb_cookie( $name, $value, $expires = 0 ) {&#60;br /&#62;
        if ( bb_get_option( 'cookiedomain' ) )&#60;br /&#62;
		setcookie( $name, $value, 0, bb_get_option( 'cookiepath' ), bb_get_option( 'cookiedomain' ) );&#60;br /&#62;
	else&#60;br /&#62;
		setcookie( $name, $value, 0, bb_get_option( 'cookiepath' ) );&#60;br /&#62;
}
&#60;/p&#62;</description>
</item>
<item>
<title>Null on "Always login"</title>
<link>http://bbpress.org/forums/topic/always-login#post-10072</link>
<pubDate>Thu, 09 Aug 2007 09:41:12 +0000</pubDate>
<dc:creator>Null</dc:creator>
<guid isPermaLink="false">10072@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Is it possible to let users always have to login each time the visit the forum?&#60;/p&#62;
&#60;p&#62;So if they leave the page/forum they will be auto signed out. When they return or start up their browser and visit the forum, they'll have to login again.&#60;/p&#62;
&#60;p&#62;Perhaps something with cookies that they will use a cookie for 1  session only?&#60;/p&#62;
&#60;p&#62;Sec, how can I make it so that the users will always see register.php first if they want to login instead of the forum frontpage? (i have an idea about this, using the .htaccess  file, but perhaps there are other options)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
