BuddyDev

Search

[Resolved] Members need Logged In Users ONLY / Privacy Default Status Only Works on Backend

Tagged: 

  • Participant
    Level: Initiated
    Posts: 15
    Horton on #2709

    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!

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #2711

    Hi Horton,
    Thank you for posting.

    1. Using default status in the dropdown:- I have enabled it now.
    https://github.com/buddydev/mediapress/commit/f5ec642d033d63322e4871b291a07b73651f212d

    2. 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.

  • Participant
    Level: Initiated
    Posts: 15
    Horton on #2720

    Exactly what I needed, works great, thanks much!

    • This reply was modified 8 years, 10 months ago by Horton.
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #2722

    Thank you.
    Marking the topic as resolved 🙂

The topic ‘ [Resolved] Members need Logged In Users ONLY / Privacy Default Status Only Works on Backend’ is closed to new replies.

This topic is: resolved