<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[5.2.7] Patch: Disable/Enable user registration</title>
        <description> Hello,

I&amp;#039;ve just installed Phorum and found it quite nice. I missed only one feature: Disabling the user registration. In the support forums I&amp;#039;ve found the recommendation to delete registration.php, but I think that&amp;#039;s not the best solution because all the links to the registration page will remain visible (and will be broken). So I&amp;#039;ve made a patch.

My patch adds a new configuration option Enable registration in the admin control panel under General Settings -&amp;gt; User Settings. It this option is disabled, new users cannot register themselves, only confirming accounts is possible.
The patch also defines a new template variable RegEnabled which makes it easy to hide any links that point to the registration page. Furthermore, a new language variable RegDisabled is used. The variable should contain the appropriate error message which will be shown to users trying to register.

I&amp;#039;ve already modified the three standard templates of Phorum and the English language file. I&amp;#039;ve also changed the German language files of Oliver Riesen.

You can download the patch for Phorum 5.2.7 here. Of course there is no warranty for correct operation. I&amp;#039;m not responsible for any damage that can occur due the use of my patch, you are using it on your own risk.

Installation instructions for Linux (and possibly other operating systems):
 Back up your existing Phorum installation.  Be sure to have the program patch installed. Normally you can install it with your package manager (e.g. apt, pacman, ...).  Download the patch file (above).  In Phorum&amp;#039;s root directory (the directory which holds, for example, the files common.php and register.php), execute the following command: patch -p1 &amp;lt; path/to/the/patch-file.patch.  You&amp;#039;re done! Try to disable the registration to see if the patch works. 

Please let me know what do you think about this patch.
You can consider this thread as a feature request, if you wish. :-) It would be great if this feature would be included in future Phorum versions.

Tblue

P. S.: I&amp;#039;m sorry if my english isn&amp;#039;t the best, I&amp;#039;m from germany. Feel free to correct me. :-)</description>
        <link>https://www.phorum.org/support/read.php?20,130169,130169#msg-130169</link>
        <lastBuildDate>Tue, 10 Nov 2026 00:40:52 -0600</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,130169,130524#msg-130524</guid>
            <title>Re: [5.2.7] Patch: Disable/Enable user registration</title>
            <link>https://www.phorum.org/support/read.php?20,130169,130524#msg-130524</link>
            <description><![CDATA[ @Tblue :<br />
<br />
You can create a topic here :<br />
[<a href="http://www.phorum.org/phorum5/list.php?62,page=1" target="_blank" >www.phorum.org</a>]<br />
<br />
Your module look great !]]></description>
            <dc:creator>bilbonsacquet</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Tue, 27 May 2008 13:21:15 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,130169,130237#msg-130237</guid>
            <title>Re: [5.2.7] Patch: Disable/Enable user registration</title>
            <link>https://www.phorum.org/support/read.php?20,130169,130237#msg-130237</link>
            <description><![CDATA[ Thanks, I&#039;ve managed it to write a little module that does the same thing as my patch. After reading the Phorum docs about modules I&#039;ve found the right hooks... Sorry, haven&#039;t thought about that before.<br />
So if someone is interested, <a href="http://www.ax86.net/media/blogs/ax86/phorum-patch/mod_noreg.zip" target="_blank"  rel="nofollow">here is the module</a> (works only with Phorum &gt;= 5.2.7). Simply activate it and the registration will be disabled. The module also sets the template variable <i>RegDisabled</i> to true, so that all links to register.php and the registration form itself can be hidden easily.]]></description>
            <dc:creator>Tblue</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Fri, 16 May 2008 12:58:05 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,130169,130205#msg-130205</guid>
            <title>Re: [5.2.7] Patch: Disable/Enable user registration</title>
            <link>https://www.phorum.org/support/read.php?20,130169,130205#msg-130205</link>
            <description><![CDATA[ Hi Tblue,<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Tblue</strong><br />
I missed only one feature: Disabling the user registration.</div></blockquote>
<br />
I think it&#039;s also possible to do that with a module, there&#039;s no need for a patch.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Tblue</strong><br />
My patch adds a new configuration option <i>Enable registration</i> in the admin control panel under <i>General Settings</i> -&gt; <i>User Settings</i>. It this option is disabled, new users cannot register themselves, only confirming accounts is possible.<br />
The patch also defines a new template variable <i>RegEnabled</i> which makes it easy to hide any links that point to the registration page. Furthermore, a new language variable <i>RegDisabled</i> is used. The variable should contain the appropriate error message which will be shown to users trying to register.</div></blockquote>
<br />
These things you can do easily with a small module (and some documented templates changes).<br />
<br />
Regards<br />
Oliver]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Thu, 15 May 2008 15:26:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,130169,130169#msg-130169</guid>
            <title>[5.2.7] Patch: Disable/Enable user registration</title>
            <link>https://www.phorum.org/support/read.php?20,130169,130169#msg-130169</link>
            <description><![CDATA[ Hello,<br />
<br />
I&#039;ve just installed Phorum and found it quite nice. I missed only one feature: Disabling the user registration. In the support forums I&#039;ve found the recommendation to delete registration.php, but I think that&#039;s not the best solution because all the links to the registration page will remain visible (and will be broken). So I&#039;ve made a patch.<br />
<br />
My patch adds a new configuration option <i>Enable registration</i> in the admin control panel under <i>General Settings</i> -&gt; <i>User Settings</i>. It this option is disabled, new users cannot register themselves, only confirming accounts is possible.<br />
The patch also defines a new template variable <i>RegEnabled</i> which makes it easy to hide any links that point to the registration page. Furthermore, a new language variable <i>RegDisabled</i> is used. The variable should contain the appropriate error message which will be shown to users trying to register.<br />
<br />
I&#039;ve already modified the three standard templates of Phorum and the English language file. I&#039;ve also changed the German language files of <a href="http://www.phorum.org/phorum5/read.php?65,129717" target="_blank" >Oliver Riesen</a>.<br />
<br />
You can download the patch for Phorum 5.2.7 <a href="http://www.ax86.net/media/blogs/ax86/phorum-patch/phorum-5.2.7_disable-registration.patch" target="_blank"  rel="nofollow">here</a>. Of course there is no warranty for correct operation. I&#039;m not responsible for any damage that can occur due the use of my patch, you are using it on your own risk.<br />
<br />
Installation instructions for Linux (and possibly other operating systems):<br />
<ul><li> <b>Back up your existing Phorum installation.</b> </li><li> Be sure to have the program <i>patch</i> installed. Normally you can install it with your package manager (e.g. apt, pacman, ...). </li><li> Download the patch file (above). </li><li> In Phorum&#039;s root directory (the directory which holds, for example, the files <i>common.php</i> and <i>register.php</i>), execute the following command: <i>patch -p1 &lt; path/to/the/patch-file.patch</i>. </li><li> You&#039;re done! Try to disable the registration to see if the patch works. </li></ul>
<br />
Please let me know what do you think about this patch.<br />
You can consider this thread as a feature request, if you wish. :-) It would be great if this feature would be included in future Phorum versions.<br />
<br />
Tblue<br />
<br />
P. S.: I&#039;m sorry if my english isn&#039;t the best, I&#039;m from germany. Feel free to correct me. :-)]]></description>
            <dc:creator>Tblue</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Wed, 14 May 2008 11:23:53 -0500</pubDate>
        </item>
    </channel>
</rss>
