HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

ForceRedirect 1.3

Redirects all Guest users to the Signin page and keeps the parts you don't want to show, private.

This plugin simply forces all guests to go to sign in page if they try to access a forbidden part of the forum.

You can add or remove the page/controller you wish to add to be visible or remove them for no visibility and send people straight to the sign in page.

discussioncontroller=a specific discussion they can access by clicking the link on the discussions index

discussionscontroller=the discussions index

categoriescontroller=the categories index

categorycontroller=a specific category they can access by clicking the link on the categories index

plugincontroller=the controller for any plugins which have their own page such as ExtraPage, PrivacyNotice , Games, CustomPages etc.

activitycontroller=the activity page

entrycontroller=registration page

$ShowOnController = array('discussioncontroller','discussionscontroller','categoriescontroller','plugincontroller','entrycontroller');

If your forum is not in a subdirectory called forum please change this part so it works with your set up .


if it is in the root:


if it has another name:


Thanks to peregrine for his help correcting my errors and making this plugin work. And to hgtonight for giving me the controller array idea.

Version 1.1 added plugincontroller to the array of permitted pages to view. If you don't want it just remove it from the array.
Version 1.2 fixed a missing ')' **
**Version 1.3 added entrycontroller so the registration page could be viewed.

Tested on 2.2