Tagged: status
Hi there-
I noticed that the Privacy Settings of Default status for Gallery/Media only seems to work in the back end, but if a member accesses the Create a Gallery page from the front end, this Default status is not set. Would it be possible for that setting to be set in both the back end and front end?
THE BIG PICTURE / ISSUE:
Our site DOES have a couple of Public galleries that need to remain public, but all members should only have 1 status option to set their profile and group galleries status to Logged in Users Only. We don’t want any group or member galleries to be public.Is there a way to do that? Would be nice if this could be set by component…Sitewide, Members and Group….or based on role maybe if for all Media/Gallery Statuses, totally open.
Thanks so much!
Hi Horton,
Thank you for posting.1. Using default status in the dropdown:- I have enabled it now.
https://github.com/buddydev/mediapress/commit/f5ec642d033d63322e4871b291a07b73651f212d2. Yes, It is possible to limit status per component, we haven’t put the settings UI yet.
We use a function
mpp_component_add_status_support( 'component_name', 'status_name'); e.g mpp_component_add_status_support('sitewide', 'public');
to add the support for a status with a component. Currently, It is enabled for all included components.
Until we put the UI, you can disable the support for a status by using the following code
function mpp_custom_disable_status_for_components() { mpp_component_remove_status_support('sitewide', 'public');//no public galleries for sitewide component //possible component names (groups, members,sitewide) //possible status names (public, loggedin,private,friendsonly, followersonly, followingonly, groupsonly) //public, loggedin,private applies to all components // friendsonly, followersonly, followingonly status only applies to members component //groupsonly only applies to groups } add_action( 'mpp_setup', 'mpp_custom_disable_status_for_components', 11 );
Hope that helps.
The topic ‘ [Resolved] Members need Logged In Users ONLY / Privacy Default Status Only Works on Backend’ is closed to new replies.