Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can users input hidden data?


  • Famous
    Participant

    @famous

    Can users input hidden data anywhere on the user profile? The blogroll gives this functionality for their blogs, but I haven’t found that functionality anywhere in buddypress???

    If someone knows of a way I would appreciate your help thanks…

Viewing 2 replies - 1 through 2 (of 2 total)

  • nandopax
    Participant

    @nandopax

    After hours working on that I found a solution, but isn’t definitive and already have a bug! Let’s go. Nicolas, don’t kill me – i’m trying to help! :-)

    In the line 728 on bp-xprofile-classes.php just copy and paste the code bellow:

    <div id="titlediv">

    <h3><label for="is_public"><?php _e("Is This Field Public?", 'buddypress') ?> *</label></h3>

    <select name="is_public" id="is_public" style="width: 30%">

    <option value="0"<?php if ( $this->is_public == '0' ) { ?> selected="selected"<?php } ?>><?php _e( 'Public', 'buddypress' ) ?></option>

    <option value="1"<?php if ( $this->is_public == '1' ) { ?> selected="selected"<?php } ?>><?php _e( 'Private', 'buddypress' ) ?></option>

    </select>

    </div>

    This code will add an opition in the field edit screen / at ProfileFields Admin – to keep the data private for “non friend users”

    But the problem is IF the field have data and you aren’t a friend, you will see the field name, but the data will be hidden. look at my birthday http://voiceover-casting.com/members/admin/

    I have tryed do the same with the Groups Fields but doesn’t work. Maybe someone can help me to create “Hidden Field Groups” and found a fix my newbie solusion for the “Private Fields” bug.

    Could be nice if in a new version the admin and the users can select “Who can see the data” like: “Public, Only Friends, Hidden (only visible for admin and the owner), “.

    Nicolas, I will donate for you soon for your great job.


    nandopax
    Participant

    @nandopax

    Don’t Work… I don’t know why but not working anymor.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can users input hidden data?’ is closed to new replies.
Skip to toolbar