Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

get_groupinfo

Usage: array get_groupinfo ([int groupid])
Purpose: Returns information on a group.
Availability: IPB SDK 1.0

Returns an array with information on group groupid. If groupid is not provided, information on the currently logged in member's group will be returned.

If the forum does not exist FALSE will be returned.

Information will be returned in the following array structure:

Array (
      [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
)


User Contributed Notes

Sonikku
The usage line should actually read this:
Usage: array get_groupinfo ([int groupid])
No underscore between 'group' and 'info'.

Pita
Yeah, i've fixed that smile.gif

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