Publicidad

Autor Tema: BBC Botón con Sonido  (Leído 639 veces)

Desconectado 123123sondow123123

  • Newbie
  • *
  • Mensajes: 10
  • Power: 4
    • Ver Perfil
    • Email
BBC Botón con Sonido
« en: Julio 09, 2011, 09:12:28 pm »

En Sources/Subs.php
buscar
Código: [Seleccionar]
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">',
Código: [Seleccionar]
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
Código: [Seleccionar]
		{name:'Citar', beforeInsert:function(h){ markit_quote(h); }},
agregar despues
Código: [Seleccionar]
		{name:'Insertar Boton con Sonido', beforeInsert:function(h){ markit_instant(h); }}
Buscar
Código: [Seleccionar]
		{name:'Citar', key:'C', openWith:'[quote]', closeWith:'[/quote]'},
Agregar despues
Código: [Seleccionar]
		{name:'Instant', openWith:'[instant]', closeWith:'[/instant]'}
Buscar
Código: [Seleccionar]
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
Código: [Seleccionar]
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
Código: [Seleccionar]
.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
Código: [Seleccionar]
.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.swf
Subir el archivo instant.gif a la carpeta tutheme/images/icons
« última modificación: Julio 15, 2011, 06:08:14 pm por 123123sondow123123 »

Desconectado shake

  • Hay tanto por hacer y queda tan poco tiempo.
  • Staff Director
  • *
  • Mensajes: 6291
  • Power: 294
  • Sexo: Masculino
  • ¿Yo buena onda? ¡Gracias locas!
    • Ver Perfil
    • G+
Re: BBC Botón con Sonido
« Respuesta #1 en: Julio 09, 2011, 09:55:22 pm »
Muy bueno se vé.

+1

Desconectado Jesús

  • México!
  • Moderador Global
  • *
  • Mensajes: 4698
  • Power: 941
  • Sexo: Masculino
  • La imaginación es más importante que el saber.
    • Ver Perfil
    • Spirate
Re: BBC Botón con Sonido
« Respuesta #2 en: Julio 10, 2011, 12:20:29 am »
¿Pero si los dos BBCs tienen la misma key:'C'  no habría problemas?
Los niños de ahora no saben leer. u.u

Desconectado 123123sondow123123

  • Newbie
  • *
  • Mensajes: 10
  • Power: 4
    • Ver Perfil
    • Email
Re:BBC Botón con Sonido
« Respuesta #3 en: Julio 22, 2011, 07:42:29 pm »
¿Pero si los dos BBCs tienen la misma key:'C'  no habría problemas?
Ya lo corregi hace rato fijate

Desconectado Jesús

  • México!
  • Moderador Global
  • *
  • Mensajes: 4698
  • Power: 941
  • Sexo: Masculino
  • La imaginación es más importante que el saber.
    • Ver Perfil
    • Spirate
Re:BBC Botón con Sonido
« Respuesta #4 en: Julio 24, 2011, 05:45:32 pm »
Se ve bueno y servirá para que varios aprendan a hacer nuevos BBCs pero no lo usaría.
Gracias
Los niños de ahora no saben leer. u.u

Desconectado Sir_German

  • Hero Member
  • *****
  • Mensajes: 515
  • Power: 139
  • Sexo: Masculino
  • Germancho!!! ?
    • Ver Perfil
    • http://www.descargatelofree.net
    • Email
Re:BBC Botón con Sonido
« Respuesta #5 en: Julio 25, 2011, 06:25:49 am »
che esto funca??
Para mas Info escanea   :-D
<b><center>???_g?????<b></center>

Desconectado Traiciel

  • Inquilino de SP
  • ********
  • Mensajes: 3379
  • Power: -65531
  • Sexo: Femenino
  • Sin prisa, pero traicionando
    • Ver Perfil
    • software windows
Re:BBC Botón con Sonido
« Respuesta #6 en: Julio 25, 2011, 07:27:33 pm »
Se ve bueno y servirá para que varios aprendan a hacer nuevos BBCs pero no lo usaría.
Gracias

Es verdad, +1 porque el topic ayuda a crear un bbc propio basándose en este.