
En Sources/Subs.php
buscar
array(
'tag' => 'swf',
'type' => 'unparsed_content',
'content' => '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="425" height="350"><param name="movie" value="$1" /><param name="play" value="true" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="AllowScriptAccess" value="never" /><embed src="$1" width="425" height="350" play="true" loop="true" quality="high" AllowScriptAccess="never" /><noembed><a href="$1" target="_blank">[enlace]</a></noembed></object><br><a href="$1" target="_blank">[enlace]</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'), ),
agregar despues
pd:En donde dice cambia
http://tuweb.com por la direccion de tu pagina web 'content' => '<embed src="
http://tuweb.com/genericInstant_event.swf?color=ff0000&sound=$1">',
array(
'tag' => 'instant',
'type' => 'unparsed_content',
'content' => '<embed src="http://tuweb.com/genericInstant_event.swf?color=ff0000&sound=$1">',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'), ),
en el acciones-sp-1.1.js dentro de tu theme:
buscar
{name:'Citar', beforeInsert:function(h){ markit_quote(h); }},agregar despues
{name:'Insertar Boton con Sonido', beforeInsert:function(h){ markit_instant(h); }}Buscar
{name:'Citar', key:'C', openWith:'[quote]', closeWith:'[/quote]'},Agregar despues
{name:'Instant', openWith:'[instant]', closeWith:'[/instant]'}
Buscar
function markit_swf(h){
if(h.selection!='' && h.selection.substring(0,7)=='http://'){
h.replaceWith = '[swf]' + h.selection + '[/swf]\n';
h.openWith = '';
h.closeWith = '';
}else{
var msg = prompt('Ingrese la URL del archivo swf', 'http://');
if(msg != null){
h.replaceWith = '[swf]' + msg + '[/swf]\n';
h.openWith = '';
h.closeWith = '';
}else{
h.replaceWith = '';
h.openWith = '';
h.closeWith = '';
}}}Agregar despues
function markit_instant(h){
if(h.selection!='' && h.selection.substring(0,7)=='http://'){
h.replaceWith = '[instant]' + h.selection + '[/instant]\n';
h.openWith = '';
h.closeWith = '';
}else{
var msg = prompt('Ingrese la URL del Sonido', 'http://');
if(msg != null){
h.replaceWith = '[instant]' + msg + '[/instant]\n';
h.openWith = '';
h.closeWith = '';
}else{
h.replaceWith = '';
h.openWith = '';
h.closeWith = '';
}}}En el estilos-sp.css
buscar
.markItUp .markItUpButton15 a, .markitcomment .markItUp .markItUpButton9 a{background:transparent url('images/icons/bbcode.gif') no-repeat scroll left top;background-position:left -160px;height:10px;}agregar despues
.markItUp .markItUpButton16 a{background:transparent url('images/icons/instant.gif') no-repeat scroll left top;background-position:left -0px;height:10px;}Subir el archivo genericInstant_event.swf en la carpeta raiz del sitio que quede
www.tusitio.com/genericInstant_event.swfSubir el archivo instant.gif a la carpeta tutheme/images/icons