Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/15/2012 08:33:09 PM (14 years ago)
Author:
boonebgorges
Message:

First pass at per-field visibility/privacy for XProfile:

  • Allows admins to set default levels for specific fields
  • Allows users to set visibility/privacy on a field-by-field basis
  • Modifies the profile templates to show markup for editing visibility status

See #3695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-admin.php

    r5751 r5789  
    263263
    264264                unset( $_GET['mode'] );
     265               
    265266                xprofile_admin( $message, $type );
    266267            } else {
     
    270271                if ( 1 == $field_id )
    271272                    bp_update_option( 'bp-xprofile-fullname-field-name', $field->name );
     273
     274                if ( !empty( $_POST['default-privacy'] ) ) {
     275                    bp_xprofile_update_field_meta( $field_id, 'default_privacy', $_POST['default-privacy'] );
     276                }
    272277
    273278                unset( $_GET['mode'] );
Note: See TracChangeset for help on using the changeset viewer.