Adjuntos


attachment_image

Uso: array attachment_image (nt attachmentid [, bool override_perms])
Propósito: Devuelve el código del HTML para un adjunto de la imagen.
Disponibilidad IPB SDK 1.5

Si no existe el attachmentid del adjunto, o no es una imagen, el valor FALSO será devuelto.

Si los override_perms se fijan en VERDAD, la función devolverá el código aunque que el adjunto sera desaprobado.

La información será devuelta en la estructura siguiente del array:

// For example, if you wanted to display attachment 32...
echo $SDK->attachment_image(32);
// If you wanted to display the unapproved attachment 61
echo $SDK->attachment_image(61,TRUE);



attachment_info

Uso: array attachment_image (nt attachmentid [, bool override_perms])
Propósito: Devuelve el código del HTML para un adjunto de la imagen.
Disponibilidad IPB SDK 1.5

Si no existe el attachmentid del adjunto, o no es una imagen, el valor FALSO será devuelto.

Si los override_perms se fijan en VERDAD, la función devolverá el código aunque que el adjunto sera desaprobado.

La información será devuelta en la estructura siguiente del array:

Array ( [attach_id] => 1
[attach_ext] => jpg
[attach_file] => av_88.jpg
[attach_location] => post-1-1097166834.jpg
[attach_thumb_location] => post-1-1097166834_thumb.jpg
[attach_thumb_width] => 87
[attach_thumb_height] => 100
[attach_is_image] => 1
[attach_hits] => 45
[attach_date] => 1097166834
[attach_temp] => 0
[attach_pid] => 829
[attach_post_key] => da359602f54b6e50d49657be0132505c
[attach_msg] => 0
[attach_member_id] => 1
[attach_approved] => 1
[attach_filesize] => 13839
)


attachment_thumb

Uso: array attachment_thumb (nt attachmentid [, bool override_perms])
Propósito: Devuelve el código del HTML para un adjunto de la imagen.
Disponibilidad IPB SDK 1.5

Si no existe el attachmentid del adjunto, o no es una imagen, el valor FALSO será devuelto.

Si los override_perms se fijan en VERDAD, la función devolverá el código aunque que el adjunto sera desaprobado.

La información será devuelta en la estructura siguiente del array:

// 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);


get_post_attachments

Uso: array get_post_attachments (nt attachmentid [, bool override_perms])
Propósito: Devuelve la información sobre los adjuntos de los postid de un mensage.
Disponibilidad IPB SDK 1.5

Si el postid del mensage no existe, no se devolverá ningunos adjuntos FALSOS.

Si los override_perms se fijan en VERDAD, la función devolverá los adjuntos desaprobados .

La información será devuelta en la estructura siguiente del array:

Array ( [0] => Array ( [attach_id] => 1
[attach_ext] => jpg
[attach_file] => av_88.jpg
[attach_location] => post-1-1097166834.jpg
[attach_thumb_location] => post-1-1097166834_thumb.jpg
[attach_thumb_width] => 87
[attach_thumb_height] => 100
[attach_is_image] => 1
[attach_hits] => 45
[attach_date] => 1097166834
[attach_temp] => 0
[attach_pid] => 829
[attach_post_key] => da359602f54b6e50d49657be0132505c
[attach_msg] => 0
[attach_member_id] => 1
[attach_approved] => 1
[attach_filesize] => 13839
)

[1] => Array
(
[attach_id] => 2
[attach_ext] => jpg
[attach_file] => bagpuss.jpg
[attach_location] => post-1-1097166846.jpg
[attach_thumb_location] => post-1-1097166846_thumb.jpg
[attach_thumb_width] => 100
[attach_thumb_height] => 82
[attach_is_image] => 1
[attach_hits] => 39
[attach_date] => 1097166846
[attach_temp] => 0
[attach_pid] => 829
[attach_post_key] => da359602f54b6e50d49657be0132505c
[attach_msg] => 0
[attach_member_id] => 1
[attach_approved] => 1
[attach_filesize] => 8481
)
)
}