Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding xprofile fields

  • 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)
  • 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?

    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

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

    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