WordPress.org

Forums

Buddypress Xprofile Custom Fields Type
[resolved] Need a field which cannot be modified by a user (2 posts)

  1. per4mance
    Member
    Posted 2 years ago #

    Hi,
    How can I make a new field where a user cannot change anything? I want to use Drop Down Select Box with predefined entries. The user should only see what I entered but cannot change the content.

    How to make this?

    Regards,
    Thorsten

    http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/

  2. donmik
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    You can modify function: bxcft_edit_render_new_xprofile_field put this code:

    if (bp_displayed_user_id() == 'xxx') {
        disable the field or hide the form field.
    }

    You can disable the field you want, or just hide it, don't write html and that's all.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Buddypress Xprofile Custom Fields Type
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.