Hey everyone,
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.
<script type="text/javascript">
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>');
</script>
<style type="text/css">
#jQH_HideProfileMessage {
padding: 2em;
background-color: #DADFE9;
color: red;
font-size: 200%;
}
</style>
Cheers,
Gabet123
Permalink Reply by Scott McKee on January 24, 2013 at 11:02am 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.
Kos replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
Cindy replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
John Bizley replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
Lee Lawrence replied to Shannon's discussion 'VOTE - NING 2.0 or NING 3.0'
Deusdete Bandeira joined arqueologiadigital.com's group
Kos replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
Kos replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox© 2013 Created by Ning.
