Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Problem in disable editing a profile field… Heeelp

  • Avatar of Hope
    Hope
    Participant

    @amalsh

    Guys,

    I’m trying to disable editing for one of the profile fields & it’s not working :( The field is a selectbox and has the name “Type”, what am doing is adding a short condition in the edit.php file in the fields loop as follows: if(bp_the_profile_field_name()==’Type’) then disabled

    with the right php tags of course but here tags are not allowed…

    What’s wrong with it? Heeelp :S

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Hope
    Hope
    Participant

    @amalsh

    If I put if(true) or if(1) it works but with the condition it doesn’t!!! Did I miss anything?

    Avatar of Hope
    Hope
    Participant

    @amalsh

    Forget it.. Using bp_get_the_profile_field_name() instead of bp_the_profile_field_name() solved it…

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

You must be logged in to reply to this topic.