Quote:
Originally Posted by vbboarder
Andrew, is there a LDM function I can call from a plugin to determine the filetype of an entry? If so, can you tell me what's the function and in what file? Thanks.
|
I tend to use the vbulletin function file_extension($filename), which is in functions.php. If you want to check if a filetype is defiend in the attachments table, i.e. a recognised ldm upload/download, then use ldm_known_filetype($type) in includes/local_links_includes.php.
Your info on id3 entities is accurate. I'm irritated at myself for ignoring one of the golden rules of database design - don't drop information about field names into multiple database records. I will sort this out.