tips:media_attached
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:tips:media_attached [2007-10-13 14:00] – created ach | tips: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/ | === tpl/ | ||
- | <code> | + | <file php media_attached.php> |
< | < | ||
" | " | ||
Line 94: | Line 94: | ||
</ | </ | ||
- | + | </file> | |
- | </code> | + | |
=== lib/ | === lib/ | ||
- | <code> | + | <file php media_attached.php> |
<?php | <?php | ||
if(!defined(' | if(!defined(' | ||
Line 287: | Line 286: | ||
?> | ?> | ||
- | </code> | + | </file> |
==== 2. edit ==== | ==== 2. edit ==== | ||
inc/ | inc/ | ||
- | < | + | < |
< | < | ||
<iframe class=" | <iframe class=" | ||
Line 300: | Line 299: | ||
inc/ | inc/ | ||
- | < | + | < |
function tpl_mediauploadform_attached(){ | function tpl_mediauploadform_attached(){ | ||
global $NS; | global $NS; | ||
Line 326: | Line 325: | ||
==== 3b. edit ==== | ==== 3b. edit ==== | ||
inc/ | inc/ | ||
- | < | + | < |
function tpl_mediafilelist_attached(){ | function tpl_mediafilelist_attached(){ | ||
global $conf; | global $conf; | ||
Line 424: | Line 423: | ||
tpl/ | tpl/ | ||
- | < | + | < |
.mediaselect_attached { | .mediaselect_attached { | ||
Line 434: | Line 433: | ||
==== 5. edit ==== | ==== 5. edit ==== | ||
lib/ | lib/ | ||
- | < | + | < |
function mediaSelect_attached(file){ | function mediaSelect_attached(file){ | ||
Line 456: | Line 455: | ||
field.value = field.value.substring(0, | field.value = field.value.substring(0, | ||
+ 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)