update_photo
Usage: bool update_photo ([string photourl[, int height[, int width]]])
Purpose: Update the currently logged in user's photograph.
Availability: IPB SDK 0.5
Purpose: Update the currently logged in user's photograph.
Availability: IPB SDK 0.5
Sets the currently logged in member's photograph to photourl, with the height height (pixels) and the width width (pixels). If photourl is not specified, the current photo is removed. Returns TRUE on success.
If height or width are not specified, the default picture size will be used.
If the user is not currently logged in FALSE will be returned.
// Sets Currently Logged In Member's Photo to http://www.mydomain.com/picture.jpg
if ($SDK->update_photo("http://www.mydomain.com/picture.jpg")) {
echo 'Photo Updated!';
}
// Sets Currently Logged In Member's Photo to http://www.mydomain.com/picture.jpg with height and width of 200
if ($SDK->update_photo("http://www.mydomain.com/picture.jpg", "200", "200")) {
echo 'Photo Updated!';
}
if ($SDK->update_photo("http://www.mydomain.com/picture.jpg")) {
echo 'Photo Updated!';
}
// Sets Currently Logged In Member's Photo to http://www.mydomain.com/picture.jpg with height and width of 200
if ($SDK->update_photo("http://www.mydomain.com/picture.jpg", "200", "200")) {
echo 'Photo Updated!';
}
See Also: get_photo
User Contributed Notes
Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net
There are currently no user contributed notes for this page.