Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding xprofile fields


  • ilyarogov
    Member

    @ilyarogov

    I need to add several fields to a member profile. I tried using xprofile_insert_field(), but it crashed the site. Is there a function I need to call before/after to add the necessary fields to the database? If someone could post a working code snippet that shows how to add a field for members to fill out, I would greatly appreciate it.

    Thanks

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

  • Hugo Ashmore
    Participant

    @hnla

    And why are you not simply using the backend ‘Profile Field Setup’ to add new profiles fields for users to complete, is there some particular requirement you have or is this a plugin you’re writing?


    ashneetg
    Member

    @ashneetg

    Hey.. Ilyarogov and I are both work on the same project.

    To clarify, we are creating a plugin. We will not be using the back-end as fields would be created dynamically on plugin installation.

    Thanks


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    Can you elaborate on “it crashed the site”, please?


    ilyarogov
    Member

    @ilyarogov

    Sure. I called xprofile_insert_field() passing in an array with all of the necessary parameters and when I reloaded the page I got “Fatal error: Call to undefined function xprofile_insert_field()”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding xprofile fields’ is closed to new replies.
Skip to toolbar