Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

get_post_info

Usage: array get_post_info (int postid)
Purpose: Returns information on a post.
Availability: IPB SDK 0.5

Returns information on post postid.

If the post postid does not exist FALSE will be returned.

Information will be returned in the following array structure:

Array (
      [pid] => 1
      [append_edit] => 0
      [edit_time] =>
      [author_id] => 1
      [author_name] => Pita
      [use_sig] => 1
      [use_emo] => 1
      [ip_address] => 127.0.0.1
      [post_date] => 1082968226
      [icon_id] => 0
      [post] => Hello, hello, nothing to see here...
      [queued] => 0
      [topic_id] => 2
      [post_title] =>
      [new_topic] => 1
      [edit_name] =>
      [post_parent] => 0
      [post_key] => 0
      [post_htmlstate] => 0
      [forum_id] => 1
      [topic_name] => G'day
      [usedohtml] => 0
      [id] => 1
      [name] => Pita
      [mgroup] => 4
      [legacy_password] => // md5 of password (only appears if upgraded from 1.x)
      [email] => [email protected]
      [joined] => 1075045010
      [posts] => 1
      [title] => Administrator
      [allow_admin_mails] =>
      [time_offset] =>
      [hide_email] => 0
      [email_pm] => 0
      [email_full] =>
      [skin] => 2
      [warn_level] => 0
      [warn_lastwarn] => 0
      [language] => en
      [last_post] => 1096387648
      [restrict_post] => 0
      [view_sigs] => 1
      [view_img] => 1
      [view_avs] => 1
      [view_pop] => 1
      [bday_day] =>
      [bday_month] =>
      [bday_year] =>
      [new_msg] => 0
      [msg_total] => 5
      [show_popup] => 0
      [misc] =>
      [last_visit] => 1096357292
      [last_activity] => 1096399992
      [dst_in_use] => 0
      [view_prefs] => -1&-1
      [coppa_user] => 0
      [mod_posts] => 0
      [auto_track] => 0
      [org_perm_id] =>
      [temp_ban] =>
      [sub_end] => 0
      [login_anonymous] => 0&1
      [ignored_users] =>
      [mgroup_others] =>
      [member_login_key] => // md5 login key, removed for security reasons
      [subs_pkg_chosen] => 0
      [signature] =>
      [avatar_size] => 64x64
      [avatar_location] => av-1.gif
      [avatar_type] => upload
      [vdirs] => in:Inbox;1|sent:Sent Items;0
      [location] => UK
      [msnname] => [email protected]
      [interests] => PHP
      [yahoo] => yahooaddy
      [website] => http://ipbsdk.sf.net
      [aim_name] => aimname
      [icq_number] => 12345657
      [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] =>
      [g_dohtml] => 0
      [g_edit_topic] => 0
      [g_email_limit] => 10:15
      [g_bypass_badwords] => 0
      [g_attach_per_post] => 0
      [g_can_msg_attach] => 0
      [member_id] => 1
      [updated] => 0
      [field_1] => Chips
      [field_2] => No
)

See Also: get_topic_info


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