[buddypress-trac] [BuddyPress Trac] #8734: Introduce simple "Private Site" toggle

buddypress-trac noreply at wordpress.org
Mon Oct 10 00:56:02 UTC 2022


#8734: Introduce simple "Private Site" toggle
-----------------------------+-----------------------
 Reporter:  dcavins          |       Owner:  (none)
     Type:  feature request  |      Status:  assigned
 Priority:  normal           |   Milestone:  11.0.0
Component:  Core             |     Version:  10.4.0
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+-----------------------

Comment (by sbrajesh):

 Great job on this @imath .
 I had a look at your patch and it seems the idea of unsetting the
 $bp->pages is not a good idea.

 A private community does not mean it is not a !BuddyPress community/page.
 It means that it is a !BuddyPress page but inaccessible to the current
 user. In other words, we need an extra flag there.

 So, all the things like current_action, current_component and pages should
 be set but the code that replaces the post content should know that the
 current page is private and either not replace the content with BP one or
 should provide a way to load a privacy template.

 Another minor enhancement would be to either have dynamic visibility
 options( filterable array as suggested by JJJ above or have an action on
 the settings page where options are rendered in
 bp_admin_setting_callback_community_visibility to allow extending it.


 I believe this is a great start for having a privacy for community
 feature. Keep it up.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8734#comment:19>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list