Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

get_category_info

Usage: array get_category_info (int categoryid)
Purpose: Get Information on a Category.
Availability: IPB SDK 1.0

Returns information on a category in an array. Returns TRUE if the category does not exist.

Array (
      [1] => Array (
            [id] => 1
            [topics] => 0
            [posts] => 0
            [last_post] =>
            [last_poster_id] => 0
            [last_poster_name] =>
            [name] => A Test Category
            [description] =>
            [position] => 1
            [use_ibc] =>
            [use_html] =>
            [status] =>
            [password] =>
            [last_title] =>
            [last_id] =>
            [sort_key] =>
            [sort_order] =>
            [prune] =>
            [show_rules] =>
            [preview_posts] =>
            [allow_poll] => 1
            [allow_pollbump] => 0
            [inc_postcount] => 1
            [skin_id] =>
            [parent_id] => -1
            [sub_can_post] => 0
            [quick_reply] => 0
            [redirect_url] =>
            [redirect_on] => 0
            [redirect_hits] => 0
            [redirect_loc] =>
            [rules_title] =>
            [rules_text] =>
            [topic_mm_id] =>
            [notify_modq_emails] =>
            [permission_custom_error] =>
            [permission_array] => a:5:{s:11:"start_perms";s:1:"*";s:11:"reply_perms";s:1:"*";s:10:"read_perms";s:1:"*";s:12:"upload_perms";s:1:"*";s:10:"show_perms";s:1:"*";}
            [permission_showtopic] => 0
            [queued_topics] => 0
            [queued_posts] => 0
      )
)

// Display the name of a category
$info = $SDK->get_category_info("1");
echo $info['name'];


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