I am building a site for a company that wishes to keep the forum for internal purposes. I selected in the tab manager to only allow members to access the forum. This works to make the forum tab hide from non members but it doesn't keep someone from typing in yourdomainname/forum and gaining access. So first I created a new tab called projects and set it to point to an existing URL which would be /forum . That appears to keep the activity feed from posting activity in the forum. Then I went on a hunt here on creators and found a script located HERE
It was bigger than I needed so I tweeked it. Here is the resulting script that you can copy and paste into your custom code box.
if ((ning.CurrentProfile == null) && (
(x$(".xg_widget_forum").length > 0)))
x$("#xg_body").html('<div id="jQH_HideProfileMessage">Sorry! Please <a href="http://YOURDOMAINNAME.ning.com/main/authorization/signIn?target=http%3A%2F%2FYOURDOMAINNAME.ning.com%2F">Sign In</a> to access this page!</div>');
Thank you so much! Our members have been asking me to make Forum section private and I was very close to making the whole site inaccessible to the public to fix the problem! You just made me look smart which is no small task I can assure you! Thanks again!
No problem! I have been trying to figuere that out for a long time. Im glad it worked for you. I run a site called http://hodinfo.com if you see other things that you like on that site shoot me a message and I will share how I did it.
Take the code above and place it in your custom code box that is located in your backend managment area. Replace the red text with your domain name. When logged out it will restrict access to the forum. If you don't want the forum to appear in the activity feed then you will need to make a tab named something other than forum and link it to an existing page /forum. Also hide the tab from non members by selecting it to be viewable by only members in the tab viewing preferences.