I have a group that should only be viewed by members of that group. In the group Options, I have gone into the Home, Members, Forum, and Photos pages and changed the Who Can View to Group Members. Non-members can still see that group in the nav bar, and if they click on that group, they can see the Home page of that group. How can I hide the group's link in the nav bar from people who are not members of that group? Thank You, Dan.
You need to be a member of Ning Creators Social Network to add comments!
Replies
I found in the Group options > Edit Group the Visible option. I changed it to Selected Only and chose that group. Now, the group still appears on the nav bar, but when it is clicked (by someone not a member of the group) the following message is displayed:
Our apologies – this page was not found
How can I hide the group on the nav bar from non-members? Thank You, Dan.
Hi, Dan.
Unfortunately, there is no inbuilt way to hide the subtab of the link tab from being visible in the navigation bar. Also, there is no way to hide tab for the certain category of members, or for the members of the certain group. This could be accomplished only with help of javascript, however, it would be necessary to update the database of members each time someone joins it. I mean the database that would be used to check whether member belongs to the group or not.
Best regards,
Ning Team.
I used this script in a Ning 2.0 network that hides groups, modules and pages to users that are not listed in the script. You may try to adpat it to hide the ekement related to this specific group in the nav bar you'd like to hide. You would need to input the name of each member of the group, but there may be a way to adapt it to recgnize all users in case there are too many users in the group you'd like to hide.
<script type="text/javascript">
if (((ning.CurrentProfile.fullName == 'user1') || (ning.CurrentProfile.fullName == 'user2') || (ning.CurrentProfile.fullName == 'user3') || (ning.CurrentProfile.fullName == 'user4')) && ((x$(".xg_widget_profiles_profile_show").length > 0) ||
(x$(".xg_widget_photo_photo_show").length > 0) ||
(x$(".xg_widget_profiles_comment_list").length > 0) ||
(x$(".xg_widget_main").length > 0) ||
(x$(".xg_widget_main").length > 0) ||
(x$(".xg_widget_groups_index").length > 0) ||
(x$(".xg_widget_video_index").length > 0) ||
(x$(".xg_widget_forum_index").length > 0) ||
(x$(".xg_widget_photo_index").length > 0) ||
(x$(".xg_widget_leaderboards_index").length > 0) ||
(x$(".xg_widget_events_index").length > 0) ||
(window.location.href.indexOf('/group/service-delivery-support') > 0) ||
(window.location.href.indexOf('/group/byod-enterasys') > 0) ||
(window.location.href.indexOf('/group/sales-team') > 0) ||
(window.location.href.indexOf('/group/product-marketing') > 0) ||
(window.location.href.indexOf('/group/brigada-de-incendio') > 0) ||
(window.location.href.indexOf('/group/bid-alerta') > 0) ||
(window.location.href.indexOf('/group/solutions-technical-marketing') > 0) ||
(window.location.href.indexOf('/group/channel-develpment') > 0) ||
(window.location.href.indexOf('/group/project-management') > 0) ||
(window.location.href.indexOf('/groups/group/list') > 0) ||
(window.location.href.indexOf('/groups/group/new') > 0) ||
(window.location.href.indexOf('/chat') > 0) ||
(x$(".xg_widget_profiles_members_index").length > 0)))
x$("#xg_body").html('<div id="Hideexternausers">This page is only visible to employees.</div>')
</script>