Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

set_user_skin

Usage: bool set_user_skin (int skinid[, int userid])
Purpose: Changes the current user's skin.
Availability: IPB SDK 1.0

Sets member userid's skin to skinid. If userid is not specified, the skin of the currently logged in user will be updated. Returns TRUE on success.

// Check if a skin id is valid.
if ($SDK->set_user_skin ($skinid)) {
      echo 'Your skin has been changed.';
}


User Contributed Notes

cow
Although it's possible to use update_member to do this, set_user_skin provides extra checking to make sure the skin exists. It is recommended you therefore use set_user_skin.

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