01-25-2021, 03:10 PM
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
En bbcode.inc --> inc --> ext --> bbcode.inc
Buscar:
Código PHP:
array('tag' => 'success', 'replace' => '<div class="bbcmsg success">{param}</div>')
Agregar una coma al final y debajo añadir:
Código PHP:
array('tag' => 'soundcloud', 'replace' => '<embed width="580" height="200" scrolling="no" frameborder="no" src="Registrate o inicia tu sesión para ver este contenido{param}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>')
Quedaría así:
Código PHP:
array('tag' => 'success', 'replace' => '<div class="bbcmsg success">{param}</div>'),
array('tag' => 'soundcloud', 'replace' => '<embed width="580" height="200" scrolling="no" frameborder="no" src="Registrate o inicia tu sesión para ver este contenido{param}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>')
En c.core.php --> inc --> class --> c.core.php
Buscar:
Código PHP:
'success'
Al lado agregar:
Código PHP:
, 'soundcloud'
En wysibb.css --> themes --> default --> css --> wysibb.css
Al final agregar:
Código PHP:
.soundcloud {
background-repeat: no-repeat;
background-position: 8px center;
padding: 1px 0 0px 7px;
background-image: url('../images/soundcloud.png');
border-color: #DEDEDE;
color: #666666;
}
En wysibb.js --> themes --> default --> js --> wysibb.js
Buscar:
Código PHP:
video: "Vídeo de YouTube",
Debajo agregar:
Código PHP:
soundcloud: "Insertar Soundcloud",
Buscar:
Código PHP:
modal_video_text: "URL del vídeo",
Debajo agregar:
Código PHP:
modal_soundcloud_text: "Agregamos lo que sigue después de: Registrate o inicia tu sesión para ver este contenido",
Buscar:
Código PHP:
img,video,
Agregar al lado:
Código PHP:
soundcloud,
Buscar:
Código PHP:
goear: {
Agregar arriba:
Código PHP:
soundcloud : {
title: CURLANG.soundcloud,
buttonHTML: '<span class="soundcloud"></span>',
modal: {
title: CURLANG.soundcloud,
width: "500px",
tabs: [
{
input: [
{param: "URL",title:CURLANG.modal_soundcloud_text}
]
}
]
},
transform : {
'<iframe width="580" height="200" scrolling="no" frameborder="no" src="Registrate o inicia tu sesión para ver este contenido{URL}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>':"[soundcloud]Registrate o inicia tu sesión para ver este contenido{URL}[/soundcloud]"
}
},
Y subir esta imagen a la carpeta images con el nombre soundcloud.png
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Creditos: Rengo