attachment_thumb
Usage: array attachment_thumb (int attachmentid [, bool override_perms])
Purpose: Returns the HTML code for an image attachment's thumbnail.
Availability: IPB SDK 1.5
Purpose: Returns the HTML code for an image attachment's thumbnail.
Availability: IPB SDK 1.5
Returns the HTML code of the thumbnail for image attachment attachmentid.
If the attachment attachmentid does not exist, or it is not an image FALSE will be returned.
If override_perms is set to TRUE, then the function will return the code even if the attachment is unapproved.
Information will be returned in the following array structure:
// For example, if you wanted to display the thumbnail of attachment 72...
echo $SDK->attachment_thumb(72);
// If you wanted to display the thumbnail of the unapproved attachment 31
echo $SDK->attachment_thumb(31,TRUE);
echo $SDK->attachment_thumb(72);
// If you wanted to display the thumbnail of the unapproved attachment 31
echo $SDK->attachment_thumb(31,TRUE);
See Also: attachment_info,
attachment_image
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.