Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Forum Module /

Discuss the Forum Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Disable User Registration

Go to End

6 Posts   2164 Views


Community Member, 22 Posts

3 May 2011 at 12:45pm

Hi all, using the forum module for the first time and I have a question. Is it possible to disable the user registration function? For this particular site, users will be created manually from the back-end, so I would like to remove/hide the registration feature. Is this possible? I'd still like users to be able to edit their forum profiles, if they're logged in.


Forum Moderator, 5523 Posts

3 May 2011 at 9:41pm

Without editing any of the core files you could either:

* Create a director rule to redirect ForumMemberProfile/register to something like a 404 page (you could put this in your _config.php). Wiki has info about rules.
* Override the template into your theme and remove the $Form and have some comment explaining why people can't register.


Community Member, 25 Posts

22 July 2011 at 9:02am

Is that a secure solution? If a user actually hand-crafted the POST data, would both of the solutions reject them? My understanding is that only the first tip would actually prevent from registration.


Forum Moderator, 5523 Posts

22 July 2011 at 9:23am

AFAIK SS would reject hand crafted POST data due to the SecurityToken being required for that form.


Community Member, 95 Posts

7 October 2011 at 9:48pm

Could you explain a bit further the part of how can I use redirect in _config.php to disable member registration?
I like the way it sounds, but I couldn't find how to set the director rule in _config.php
So plz give me a link to what I need or just the code I have to save in _config.php

thank you all!


Community Member, 12 Posts

21 October 2011 at 11:21pm

mysite _config.php

look at this code

Director::addRules(1, array(
	'ForumMemberProfile/register ' => 'registrationsdisabledmessagepage',

you might have to out in in forums/_config.php not sure