Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

get_advinfo

Usage: array get_advinfo ([int userid])
Purpose: Returns advanced information on a member.
Availability: IPB SDK 0.2

Can be used in the same way and is almost identical to get_info, but returns more information.

Returns an array with advanced information on member userid. If userid is not specified, information on the member currently logged in will be returned.

As of IPB SDK Version 0.3, Custom Profile Field Information is also returned by get_advinfo(). These will be avaliable as field_1, field_2, etc. in the array returned.

If current user information could not be retrieved, or an invalid member id is specified FALSE will be returned.

Information will be returned in the following array structure:

Array
(
      [id] => 1
      [name] => cow
      [mgroup] => 4

      // This will only be populated if you've upgraded from 1.*
      [legacy_password] => (legacy_password in md5 - removed for security purposes)

      [email] => [email protected]
      [joined] => 1037221185
      [ip_address] => 127.0.0.1
      [posts] => 43
      [title] => Administrator
      [allow_admin_mails] => 0
      [time_offset] => 0
      [hide_email] => 0
      [email_pm] => 0
      [email_full] => 0
      [skin] =>
      [warn_level] => 1
      [warn_lastwarn] => 1055519629
      [language] => en
      [last_post] => 1060256688
      [restrict_post] =>
      [view_sigs] => 1
      [view_img] => 1
      [view_avs] => 1
      [view_pop] => 1
      [bday_day] => 22
      [bday_month] => 5
      [bday_year] => 1989
      [new_msg] => 0
      [msg_total] => 7
      [show_popup] => 0
      [misc] =>
      [last_visit] => 1062520894
      [last_activity] => 1062589951
      [dst_in_use] => 1
      [view_prefs] => -1&-1
      [coppa_user] => 0
      [mod_posts] =>
      [auto_track] => 0
      [org_perm_id] =>
      [temp_ban] =>
      [sub_end] => 0
      [login_anonymous] => 0&1
      [ignored_users] => ,
      [mgroup_others] =>
      [member_login_key] => (login key in md5 - removed for security purposes)
      [subs_pkg_chosen] => 0
      [signature] => <b>Me</b><br>Or to you you.
      [avatar_size] => 64x64
      [avatar_location] => upload:av-3.gif
      [avatar_type] => upload
      [vdirs] => in:Inbox;12|sent:Sent Items;32|dir_2:Hamish;5
      [location] => PC :)
      [msnname] => [email protected]
      [interests] => Everything and Anything Intresting.
      [yahoo] => kwonlineuk
      [website] => http://www.global-centre.com
      [aim_name] => cowweb
      [icq_number] => 1234567
      [g_id] => 4
      [g_view_board] => 1
      [g_mem_info] => 1
      [g_other_topics] => 1
      [g_use_search] => 1
      [g_email_friend] => 1
      [g_invite_friend] => 0
      [g_edit_profile] => 1
      [g_post_new_topics] => 1
      [g_reply_own_topics] => 1
      [g_reply_other_topics] => 1
      [g_edit_posts] => 1
      [g_delete_own_posts] => 1
      [g_open_close_posts] => 1
      [g_delete_own_topics] => 1
      [g_post_polls] => 1
      [g_vote_polls] => 1
      [g_use_pm] => 1
      [g_is_supmod] => 1
      [g_access_cp] => 1
      [g_title] => Admin
      [g_can_remove] => 0
      [g_append_edit] => 1
      [g_access_offline] => 1
      [g_avoid_q] => 1
      [g_avoid_flood] => 1
      [g_icon] =>
      [g_attach_max] => 50000
      [g_avatar_upload] => 1
      [g_calendar_post] => 1
      [prefix] =>
      [suffix] =>
      [g_max_messages] => 50
      [g_max_mass_pm] => 6
      [g_search_flood] => 0
      [g_edit_cutoff] => 5
      [g_promotion] => -1&-1
      [g_hide_from_list] => 0
      [g_post_closed] => 1
      [g_perm_id] => 4
      [g_photo_max_vars] => 100:250:250
      [g_dohtml] => 1
      [g_edit_topic] => 0
      [g_email_limit] => 10:15
      [g_bypass_badwords] => 0
      [g_attach_per_post] => 0
      [g_can_msg_attach] => 0

      // Custom Profile Fields (Version 0.3 and Later Only)
      [field_1] => y
      [field_2] => Smoked
)
See Also: get_info


User Contributed Notes

thinglie
Don't forget this Function Return ALL the Info in the DB about a Member, so if you have New Rows in a Table then the Function will return that aswell!

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