Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

list_customfields

Usage: array list_customfields()
Purpose: Grab a list of custom profile fields, and it's properties.
Availability: IPB SDK 0.3

Returns a multi-dimensional array, with a list of the board's custom profile fields, and the properties of each custom profile field, such as the type, editable status, maxinput, show on registration etc.

Information is returned in the following array structure:

Array (
      [field_1] => Array (
            [pf_id] => 1
            [pf_title] => Do you like Ham?
            [pf_desc] => Do you like Ham or not?
            [pf_content] => y=Yes
|n=No
            [pf_type] => drop
            [pf_not_null] => 0
            [pf_member_hide] => 0
            [pf_max_input] => 1
            [pf_member_edit] => 1
            [pf_position] => 1
            [pf_show_on_reg] => 1
            [pf_input_format] =>
            [pf_admin_only] => 0
            [pf_topic_format] => {title} : {content}
      )

      [field_2] => Array (
            [pf_id] => 2
            [pf_title] => Favourite Ham
            [pf_desc] =>
            [pf_content] =>
            [pf_type] => text
            [pf_not_null] => 0
            [pf_member_hide] => 0
            [pf_max_input] => 0
            [pf_member_edit] => 1
            [pf_position] => 2
            [pf_show_on_reg] => 1
            [pf_input_format] =>
            [pf_admin_only] => 0
            [pf_topic_format] => {title} : {content}
      )
)


User Contributed Notes

There are currently no user contributed notes for this page.

Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net