Simple:Press Documentation

Hiding the FORUM page from non-SPMS members

Sometimes, instead of hiding just the forum content or portions of the forum content, you might want to hide the entire forum page complete from users who don’t have a particular SPMS membership.  This can be done – but you need the SPMM plugin as well in order to get it done.

Assuming you have both the SPMM and SPMS plugins installed and activated, here are the steps you need to hide the forum page.

Enable the use of ROLES in SPMS

  • Go to MEMBERSHIPS->SETTINGS->COMPONENTS and turn on the setting under the SPMS roles section.
  • If its not already turned on, you will need to disable and re-enable the SPMS plugin to generate the roles.
  • After the roles are generated, you’ll get one role for each Membership Level.

Set up a new WordPress page

Set up a  new WordPress page to store the message you want to show the user if they do not have access to the page:

  • You can do this under PAGES->ADD NEW.

Set up the role restriction in SPMM

  • Go to PAGES and edit the FORUM page
  • At the bottom of the page you will see a section called SPMM CONTENT RESTRICTION.
  • In this section turn on the  checkbox labelled RESTRICT ACCESS TO THIS CONTENT.
  • Then, in the WHO CAN ACCESS THIS CONTENT FIELD, choose Logged in users.
  • Now you will see a list of roles.  Check the roles that correspond to the membership levels for which you would like to restrict the forums – only the checked levels will be allowed to see the forum page.
  • In the WHAT HAPPENS WHEN USERS TRY TO VIEW THE CONTENT drop-down, choose the Redirect Users option.
  • In the REDIRECT URL field, put the full path to the message page you set up earlier.