Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change how profile fields are displayed

  • Avatar of cyndimarie
    cyndimarie
    Participant

    @cyndimarie

    I want to alter the way the items in a checkbox profile field are displayed.

    Hypothetical profile field:
    Favorite fruits:
    []Apples
    []Bananas
    []Grapes

    How it is currently displayed:
    Favorite fruits: Apples, Bananas, Grapes

    How I would like it displayed:
    Favorite fruits:

    • Apples
    • Bananas
    • Grapes

    It would be great to have the field values returned as <li></li> items if at all possible.

    Any help would be appreciated!

Viewing 1 replies (of 1 total)
  • Avatar of cyndimarie
    cyndimarie
    Participant

    @cyndimarie

    After snooping around I can see that the tables for the profile fields are created in profile-loop.php and bp_the_profile_field_value is defined in bp-xprofile-template.php I’m not sure about editing these files though…

    I can’t seem to find the file that directs the items in a profile field to be separated by a comma, however I did find this topic: bp_the_profile_field_value and separating values

    Instead of separating the items in the <td class="data"><?php bp_the_profile_field_value(); ?></td> by commas, I want to make them into an un-ordered list.

    Any thoughts on how?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.