DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:media_attached

Differences

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

Link to this comparison view

Next revision
Previous revision
wiki:tips:media_attached [2007-10-13 14:00] – created achtips:media_attached [2014-06-09 18:04] (current) – old revision restored (2013-03-21 13:15) 2001:4dd0:ff00:8eb9:fc80:1329:b7d9:1c50
Line 24: Line 24:
    
 === tpl/*/media_attached.php === === tpl/*/media_attached.php ===
-<code>+<file php media_attached.php>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Line 94: Line 94:
 </html> </html>
  
- +</file>
-</code>+
  
 === lib/exe/media_attached.php === === lib/exe/media_attached.php ===
-<code>+<file php media_attached.php>
 <?php <?php
   if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');   if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
Line 287: Line 286:
 ?> ?>
  
-</code>+</file>
  
 ==== 2. edit ==== ==== 2. edit ====
 inc/html.php -- in function html_edit inc/html.php -- in function html_edit
-<code>+<code html>
  <table><tr><td>  <table><tr><td>
   <iframe class="mediaselect_attached" id="mediaselect1" src="lib/exe/media_attached.php?ns=<?php echo $ID; ?>" height="320" width="600" ></iframe>   <iframe class="mediaselect_attached" id="mediaselect1" src="lib/exe/media_attached.php?ns=<?php echo $ID; ?>" height="320" width="600" ></iframe>
Line 300: Line 299:
  
 inc/template.php -- after function tpl_mediauploadform() inc/template.php -- after function tpl_mediauploadform()
-<code>+<code php>
  function tpl_mediauploadform_attached(){  function tpl_mediauploadform_attached(){
   global $NS;   global $NS;
Line 326: Line 325:
 ==== 3b. edit ==== ==== 3b. edit ====
 inc/template.php -- after function tpl_mediafilelist() inc/template.php -- after function tpl_mediafilelist()
-<code>+<code php>
  function tpl_mediafilelist_attached(){  function tpl_mediafilelist_attached(){
   global $conf;   global $conf;
Line 424: Line 423:
  
 tpl/*/layout.css -- after /* ---------------  Media Selection  ----------------- */ tpl/*/layout.css -- after /* ---------------  Media Selection  ----------------- */
-<code>+<code css>
  
 .mediaselect_attached { .mediaselect_attached {
Line 434: Line 433:
 ==== 5. edit ==== ==== 5. edit ====
 lib/scripts/script.js -- after function mediaSelect(file) lib/scripts/script.js -- after function mediaSelect(file)
-<code>+<code javascript>
  
 function mediaSelect_attached(file){ function mediaSelect_attached(file){
Line 456: Line 455:
     field.value = field.value.substring(0, startPos)     field.value = field.value.substring(0, startPos)
                   + value                   + value
-                  + field.value.substring(endPos, field.value.length);+                  + field.value.substring(endPos);
  
     field.focus();     field.focus();
tips/media_attached.1192276835.txt.gz · Last modified: 2010-08-29 04:10 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki