Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

get_skin_info

Usage: array get_skin_info ([string skinid])
Purpose: Returns information on a skin.
Availability: IPB SDK 0.51

Returns information on the skin skinid.

Information is returned in the following array structure: (Note that some array values have been ommited due to practicality)

Array (
      [set_skin_set_id] => 1
      [set_name] => IPB Master Skin Set
      [set_image_dir] => 1
      [set_hidden] => 0
      [set_default] => 0
      [set_css_method] => 0
      [set_skin_set_parent] => -1
      [set_author_email] =>
      [set_author_name] =>
      [set_author_url] =>
      [set_css] => // Board CSS Here
      [set_wrapper] => // Board Wrapper Here
      [set_css_updated] => 1079109298
      [set_cache_css] => // Cached Board CSS Here
      [set_cache_macro] =>
      [set_cache_wrapper] => // Cached Board Wrapper Here
      [set_emoticon_folder] => default
)

// This function can be useful for allowing users to skin your website or something
// Let's use it to show a New Topic button in the user's current skin
$skininfo = $SDK->get_skin_info($SDK->get_skin_id());
echo 'http://yourdomain.com/forums/style_images/'.$skininfo['set_img_dir'].'/t_new.gif';

// Show name of the current skin $skininfo = $SDK->get_skin_info($SDK->get_skin_id());
echo $skininfo['set_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