Well... I always wonder "why pepole make so many troubles for itselfs"?

Yes but the gallery attaches the images to topics...


So how thay are served for articles??

What do you mean ? How articles are served for other objects than pages ? (which have "magic" attachment serving)

You can use for example $obj->serveattachment() to serve the attachment by filename, or use $obj->listattachments() to get fetchable list from which you can get ID of the attachment record and then mgd_serve_attchment() to serve it.

Remember to call exit() after serving attachments (and make sure to have no output before serving attachments), otherwise the normal output of the script is appended which can break the file.

/Rambo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to