asi es como leyeron hoy estube implementando esto que vi en otros foros a sp ...espero les sirva.
ire poniendo los dos codigos a poner..el primero sera para el de los links y el segundo para la contraseña
dejo una cap para que vean como anda en el default.( aunque deberia poder instalarse en cualquiera ya que esta parte no varia mucho en el diseño.)
Busquen en el archivo subs.php dentro de la carpeta sources:
array(
'tag' => 'quote',
'before' => '<blockquote><div class="cita">Cita: </div><div class="citacuerpo">',
'after' => '</div></blockquote>',
'block_level' => true,
),
despues de eso agregen:
array(
'tag' => 'boxs',
'type' => 'unparsed_content',
'content' => '<table border="0" cellspacing="0" cellpadding="0"> <tr> <td height="39" colspan="3"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="123" background="Themes/default/images/boxs/pwd1.gif" height="39"> </td> <td background="Themes/default/images/boxs/pwd2.gif"> </td> <td width="48" background="Themes/default/images/boxs/pwd3.gif" height="39"> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="#C0DDFF" width="10"> </td> <td bgcolor="#C0DDFF"> <table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #3E9FC7" bgcolor="#FFFFFF"> <tr> <td style="font-family: Arial; font-size: 12px; color: #707070; text-align: center"> <p style="margin: 5px">$1</td> </tr> </table> </td> <td bgcolor="#C0DDFF" width="10"> </td> </tr> <tr> <td colspan="3"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td background="Themes/default/images/boxs/pwd4.gif" height="11" width="11"> <img border="0" src="Themes/default/images/boxs/space.gif" width="1" height="1"></td> <td bgcolor="#C0DDFF" height="11"> <img border="0" src="Themes/default/images/boxs/space.gif" width="1" height="1"></td> <td background="Themes/default/images/boxs/pwd5.gif" height="11" width="11"> <img border="0" src="Themes/default/images/boxs/space.gif" width="1" height="1"></td> </tr> </table> </td> </tr></table>',
),
o este para la pass ( recuerden que puse amboss asi ustedes deciden si ponen los ambos o uno solo )
array(
'tag' => 'pwd',
'type' => 'unparsed_content',
'content' => '<table border="0" cellspacing="0" cellpadding="0"> <tr> <td height="39" colspan="3"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="123" background="Themes/default/images/pwd/pwd1.gif" height="39"> </td> <td background="Themes/default/images/pwd/pwd2.gif"> </td> <td width="48" background="Themes/default/images/pwd/pwd3.gif" height="39"> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="#cdf4a3" width="10"> </td> <td bgcolor="#cdf4a3"> <table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #69ac00" bgcolor="#FFFFFF"> <tr> <td style="font-family: Arial; font-size: 12px; color: #707070; text-align: center"> <p style="margin: 5px">$1</td> </tr> </table> </td> <td bgcolor="#cdf4a3" width="10"> </td> </tr> <tr> <td colspan="3"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td background="Themes/default/images/pwd/pwd4.gif" height="11" width="11"> <img border="0" src="Themes/default/images/pwd/space.gif" width="1" height="1"></td> <td bgcolor="#cdf4a3" height="11"> <img border="0" src="Themes/default/images/pwd/space.gif" width="1" height="1"></td> <td background="Themes/default/images/pwd/pwd5.gif" height="11" width="11"> <img border="0" src="Themes/default/images/pwd/space.gif" width="1" height="1"></td> </tr> </table> </td> </tr></table>',
),
ahora en el acciones-sp-1.1.js de la carpeta default busquen por:
{name:'Citar', beforeInsert:function(h){ markit_quote(h); }}
antes de eso agregar: ( recuerden el primero es de los links y el segundo para los box de la clave)
{name:'Boxs Links', beforeInsert:function(h){ markit_boxs(h); }},
{name:'Box Contraseña', beforeInsert:function(h){ markit_pwd(h); }},
poco mas abajo buscar:
{name:'Citar', key:'C', openWith:'[quote]', closeWith:'[/quote]'}
agregar antes:
{name:'Boxs Links', beforeInsert:function(h){ markit_boxs(h); }},
{name:'Boxs Contraseña', beforeInsert:function(h){ markit_pdw(h); }}
buscar poco mas abajo:
function markit_quote(h){
y antes agregar:
function markit_boxs(h){
if(h.selection==''){
var msg = alert('Debes Seleccionar los links de descarga!');
}else {
h.replaceWith = '[boxs]' + h.selection + '[/boxs]';
h.openWith='';
h.closeWith='';
}
}
function markit_pwd(h){
if(h.selection==''){
var msg = prompt('Ingrese la CONTRASEÑA del archivo', '');
if(msg != null){
h.replaceWith = '[pwd]' + msg + '[/pwd]';
h.openWith = '';
h.closeWith = '';
}else{
h.replaceWith = '';
h.openWith = '';
h.closeWith = '';
}
}else {
h.replaceWith = '[pwd]' + h.selection + '[/pwd]';
h.openWith='';
h.closeWith='';
}
}
y por ultimo agregar al css ..busquen por:
.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;}
cambien el numero 15 de la busqueda por 16 o 17 dependiendo si agregan ambos bbcodes o solo uno
y luego agregen antes de eso esto
.markItUp .markItUpButton15 a{background:transparent url('images/icons/link_box.png') no-repeat scroll
left top;}
.markItUp .markItUpButton16 a{background:transparent url('images/icons/pass_box.png') no-repeat scroll
left top;}
quedarian 15 para el de links 16 para el de la contraseña y 17 el que estaba en el archivo
o solo 15 si instalan uno de los dos y luego 16 el que estaba en el archivo
y ahora dejo los archivos adjuntos por sepadaro... pwd.rar y boxs.rar
que deben ir dendro de images quedando asi
images/pwd/ aqui las imagenes de box contraseña
images/boxs/ aqui las imagenes de box contraseña
osea envien la carpeta completa dentro de images al descomprimirla :D
tambien la imagen para el bbcode, el cual debe ir en la carpeta images/icons/
espero es guste :biggrin:
pd: a la noche subo para ocultar automaticamente a visitantes ambas cosas