Skip to:
Content
Pages
Categories
Search
Top
Bottom

What is xprofile?


  • imjscn
    Participant

    @imjscn

    I want to customize user’s profile page, not get a clue yet. I’ve heard people talking about xprofile. Is that the path for customizing profile page?

Viewing 7 replies - 1 through 7 (of 7 total)
  • What exactly do you want to customise? You can add new profile fields from the BP dashboard options


    imjscn
    Participant

    @imjscn

    #1. the header area beside avatar. I want to display some additional text (something like “about me”)
    #2. the profile tab — Is it posible to design a layout for one user and not touch other users?
    #3. To edit profile tab for one or for all, which file to edit?
    Thanks!

    xprofile is the internal name, if you like, of the bit of code that provides the Extended Profile Fields component.

    #1 look at the /members/single/member-header.php file in there you will see a commented out line of code that will enable display of extra profile fields, if you have created them – exact positioning of that data is down to where you decide to output it in the theme.

    #2 undoubtedly yes, but it’s a slightly big subject to give a simple explanation of. In a nutshell: given that we can check the displayed member id then in theory you could use that to run a conditional to render different markup depending on the member profile being viewed.

    #3 ? not sure what you mean by this.


    imjscn
    Participant

    @imjscn

    @hnla, Thanks! #3 already covered in your #1 & #2 answers.
    For #2, is there any reference or links to learn more about this subject?


    imjscn
    Participant

    @imjscn

    About #1, I’m using Child theme. According to BP Docs, “if you want to override a template file that is in a sub folder, you must also recreate the sub folder in your child theme”. So, should I copy the whole sub-folder of “/member/single” or “/single” into my child them, or I just create an empty sub-folder of “/member” or “member/single”?

    Essentially copy over the file you want to work on, while maintaining the folder/directory structure, if in doubt copy /members over.

    There is a fair bit of documentation in the codex and probably threads that cover a similar requirement.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘What is xprofile?’ is closed to new replies.
Skip to toolbar