<?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: how to disable registration ?</title>
		<link>http://bbpress.org/forums/topic/howto-disable-registration</link>
		<description>bbPress Support Forums &#187; Topic: how to disable registration ?</description>
		<language>en-US</language>
		<pubDate>Fri, 25 May 2012 11:35:30 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/howto-disable-registration" rel="self" type="application/rss+xml" />

		<item>
			<title>Fabián on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-68000</link>
			<pubDate>Sat, 01 May 2010 10:11:18 +0000</pubDate>
			<dc:creator>Fabián</dc:creator>
			<guid isPermaLink="false">68000@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Thanks Simon! You made my day.
</p>]]></description>
					</item>
		<item>
			<title>muriaticum on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-61370</link>
			<pubDate>Sun, 06 Dec 2009 15:14:49 +0000</pubDate>
			<dc:creator>muriaticum</dc:creator>
			<guid isPermaLink="false">61370@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Thanx Simon!!!
</p>]]></description>
					</item>
		<item>
			<title>chrishajer on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-60406</link>
			<pubDate>Sat, 07 Nov 2009 04:53:01 +0000</pubDate>
			<dc:creator>chrishajer</dc:creator>
			<guid isPermaLink="false">60406@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>How about just sending all request for the bbPress registration over to WordPress:<br />
<a href="http://bbpress.org/forums/topic/wordpress-bbpress-register-plusgtgtgtgt#post-18352" rel="nofollow">http://bbpress.org/forums/topic/wordpress-bbpress-register-plusgtgtgtgt#post-18352</a>
</p>]]></description>
					</item>
		<item>
			<title>DavyB on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-60404</link>
			<pubDate>Sat, 07 Nov 2009 04:45:24 +0000</pubDate>
			<dc:creator>DavyB</dc:creator>
			<guid isPermaLink="false">60404@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>What mods to this would you need to do, to instead of killing registration, diverting the registration to your integrated wordpress registration, I'm using bbp 1.0.2 and wp 2.8.5
</p>]]></description>
					</item>
		<item>
			<title>r-a-y on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-42099</link>
			<pubDate>Tue, 21 Jul 2009 19:40:17 +0000</pubDate>
			<dc:creator>r-a-y</dc:creator>
			<guid isPermaLink="false">42099@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Thanks Simon and to Ipstenu for posting a link to this thread from the BuddyPress forums!
</p>]]></description>
					</item>
		<item>
			<title>Ipstenu on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-38420</link>
			<pubDate>Wed, 08 Jul 2009 13:06:14 +0000</pubDate>
			<dc:creator>Ipstenu</dc:creator>
			<guid isPermaLink="false">38420@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Simon, thanks! That's perfect for me (since everyone signs up via WordPress on my sites).
</p>]]></description>
					</item>
		<item>
			<title>Marcomail on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-38098</link>
			<pubDate>Sun, 05 Jul 2009 10:52:29 +0000</pubDate>
			<dc:creator>Marcomail</dc:creator>
			<guid isPermaLink="false">38098@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>i've modified the file register.php in the root, changing the last line with this bb_load_template( '404.php', $_globals ); , now all the request to this page return a 404 error.
</p>]]></description>
					</item>
		<item>
			<title>Simon Wheatley on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-38090</link>
			<pubDate>Sun, 05 Jul 2009 08:28:43 +0000</pubDate>
			<dc:creator>Simon Wheatley</dc:creator>
			<guid isPermaLink="false">38090@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Rather than editing or removing core files, I wrote this simple plugin:</p>
<pre><code>&#60;?php
/*
Plugin Name: Disable Registrations
Description: This plugin disables access to registration.php and blocks any registrations.
Plugin URI:  <a href="http://simonwheatley.co.uk/bbpress/disable-registrations" rel="nofollow">http://simonwheatley.co.uk/bbpress/disable-registrations</a>
Author: Simon Wheatley
Author URI: <a href="http://simonwheatley.co.uk/" rel="nofollow">http://simonwheatley.co.uk/</a>
Version: 0.1
*/

// Fires every time bbPress inits, a bit ick but it&#39;s super quick string ops
// (which is what PHP is good at).
function da_disable_registrations()
{
	// Shame there isn&#39;t a hook to grab before the new user is registered on register.php
	// In the absence of that, we will check whether we&#39;re on register.php
	if ( ! da_str_ends_with( strtolower( $_SERVER[ &#39;PHP_SELF&#39; ] ), &#39;register.php&#39; ) ) return;
	// We are on register.php? Stop executing (with a message).
	bb_die( &#34;Registration is not allowed on this website. Please contact the site administrators.&#34; );
	exit; // Never reached, unless bb_die fails for some freaky reason
}

// Checks whether string a ends with string b
function da_str_ends_with(&#38; $str, $end)
{
	return ( substr( $str, - strlen( $end ), strlen( $end ) ) == $end );
}

add_action( &#39;bb_init&#39;, &#39;da_disable_registrations&#39; );

?&#62;</code></pre>]]></description>
					</item>
		<item>
			<title>Trent Adams on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-12643</link>
			<pubDate>Sat, 15 Dec 2007 23:19:34 +0000</pubDate>
			<dc:creator>Trent Adams</dc:creator>
			<guid isPermaLink="false">12643@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I don't think so as the plugin adds them direct to the database (you can quickly test that).   Without register.php there are no registrations going to happen for sure!</p>
<p>Trent
</p>]]></description>
					</item>
		<item>
			<title>assalychris on "how to disable registration ?"</title>
			<link>http://bbpress.org/forums/topic/howto-disable-registration#post-12639</link>
			<pubDate>Sat, 15 Dec 2007 23:10:07 +0000</pubDate>
			<dc:creator>assalychris</dc:creator>
			<guid isPermaLink="false">12639@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>hello there!<br />
I was wondering, how can you disable registration in bbpress; I have added the Admin add user plug-in. and want to restrict registration so it is done manually. I already checked <a href="http://bbpress.org/forums/topic/is-there-an-approve-registration-plugin?replies=14" rel="nofollow">http://bbpress.org/forums/topic/is-there-an-approve-registration-plugin?replies=14</a> (Trent's reply on shutting it off) BUT would removing register.php file disallow me (as admin) registering users?<br />
thanks!
</p>]]></description>
					</item>

	</channel>
</rss>

