User Tools

  • Logged in as: anonymous (anonymous)
  • Log Out

Site Tools


mantisbt:linked_attachments

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mantisbt:linked_attachments [2007/05/19 17:42] – created vboctormantisbt: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 18: Line 18:
   * embed_api.php also provides a function that takes a URL and generates the necessary HTML.   * 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.   * 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 "URL".
 +  * 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 ===== ===== YouTube =====
  
-''http://www.youtube.com/watch?v=LBs3DsIcRYI''+<code html>http://www.youtube.com/watch?v=LBs3DsIcRYI</code>
  
 Will be replaced with: Will be replaced with:
  
-''<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/LBs3DsIcRYI"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/LBs3DsIcRYI" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>''+<code html> 
 +<object width="425" height="350"> 
 +  <param name="movie" value="http://www.youtube.com/v/LBs3DsIcRYI"></param> 
 +  <param name="wmode" value="transparent"></param> 
 +  <embed src="http://www.youtube.com/v/LBs3DsIcRYI" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed> 
 +</object></code> 
  
 ===== Feedback ===== ===== Feedback =====
  
-  * Please provide ideas and feedback in this section.  Also feel free to fill in details for other types of links to be supported.  Each section should have the original link, the HTML to generate and ideally the PHP code that does the conversion (optional). +  * Please provide ideas and feedback in this section.  Also feel free to fill in details for other types of links to be supported.  Each section should have the original link, the HTML to generate and ideally the PHP code that does the conversion (optional). 
 +    * In the example above, how will mantis know the dimensions of the movie URL? In fact, how does it know it's a movie?  Should mantis do a HEAD method on the URL and peek at the content type? 
mantisbt/linked_attachments.1179610930.txt.gz · Last modified: (external edit)

CC Attribution-Noncommercial-Share Alike 4.0 International Driven by DokuWiki