Skip to:
Content

BuddyPress.org

Changes between Version 2 and Version 3 of Ticket #4728, comment 2


Ignore:
Timestamp:
12/21/2012 06:14:05 AM (12 years ago)
Author:
chrisclayton
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4728, comment 2

    v2 v3  
    66I know there are a lot of people who want privacy extended to other components and i think its smarter if we use a generalised API, rather than building from scratch for individual components as many functions can be reused and filtered by the individual component when appropriate.
    77
    8 Edit: We can assume most components will want the same, logged in, friends only, public etc levels, can't we? and if a component needs extra they can filter it in. For example, the code used in Boones example (https://github.com/boonebgorges/bbg-custom-bp-field-visibility/blob/master/bbg-custom-bp-field-visibility.php) will add/remove the levelmfpr all components (we could possibly add component to the array to enable devs to easily modify the levels for an individual component.)
     8Edit: We can assume most components will want the same, logged in, friends only, public etc levels, can't we? and if a component needs extra they can filter it in. For example, the code used in Boones example (https://github.com/boonebgorges/bbg-custom-bp-field-visibility/blob/master/bbg-custom-bp-field-visibility.php) will add/remove the level for all components (we could possibly add component to the array to enable devs to easily modify the levels for an individual component.)