mantisbt:linked_attachments
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mantisbt:linked_attachments [2007/08/07 14:59] – DGtlRift | mantisbt:linked_attachments [2011/11/16 07:39] (current) – The page rendering was broken (maybe since new PHP version on mantisbt.org). Added new line to fix it at end of file. atrol | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Linked Attachments from YouTube, Flickr, and others ====== | ||
| + | |||
| + | **Author:** Victor Boctor | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | |||
| + | Mantis supports attaching files to issues and projects. | ||
| + | |||
| + | * YouTube videos (and possibly other video hosts like blip.tv, viddler, etc). | ||
| + | * Flickr images (and possible other image hosts like smugmug, tinypic, etc). | ||
| + | * Flash Files | ||
| + | |||
| + | The process of converting a link to an embedded object or tags should be done using a custom function. | ||
| + | |||
| + | ===== Design ===== | ||
| + | |||
| + | * Implement core/ | ||
| + | * embed_api.php also provides a function that takes a URL and generates the necessary HTML. | ||
| + | * Implement a custom function that calls the function that takes a URL and generates the necessary HTML. | ||
| + | |||
| + | ===== Storage in the Database ===== | ||
| + | |||
| + | * The URL attachments will be stored in the same tables as the normal files (i.e. mantis_bug_file_table and mantis_project_file_table) | ||
| + | * The file type will be " | ||
| + | * The file name will the link URL. | ||
| + | * diskfile, folder will be empty. | ||
| + | * filesize will be empty. | ||
| + | * The rest of the fields will remain as is. | ||
| + | |||
| + | ===== YouTube ===== | ||
| + | |||
| + | <code html> | ||
| + | |||
| + | Will be replaced with: | ||
| + | |||
| + | <code html> | ||
| + | <object width=" | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <embed src=" | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Feedback ===== | ||
| + | |||
| + | * Please provide ideas and feedback in this section. | ||
| + | * In the example above, how will mantis know the dimensions of the movie URL? In fact, how does it know it's a movie? | ||
