PHPost | Soporte, Descargas y Tutoriales de Risus Nova

Versión completa: BBcode XVideos (Act)
Actualmente estas viendo una versión simplificada de nuestro contenido. Ver la versión completa con el formato correcto.
[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' => 'xvideos''replace' => '<iframe src="Registrate o inicia tu sesión para ver este contenido{param}" frameborder="0" width="510" height="400" scrolling="no"></iframe>'), 


Quedaría así:

Código PHP:
array('tag' => 'success''replace' => '<div class="bbcmsg success">{param}</div>'),
array(
'tag' => 'xvideos''replace' => '<iframe src="Registrate o inicia tu sesión para ver este contenido{param}" frameborder="0" width="510" height="400" scrolling="no"></iframe>'), 


En c.core.php --> inc --> class --> c.core.php

Buscar:

Código PHP:
'success' 


Al lado agregar:

Código PHP:
'xvideos' 


En wysibb.css --> themes --> default --> css --> wysibb.css

Al final agregar:

Código PHP:
.xvideo {
background-repeatno-repeat;
background-position8px center;
padding1px 0 0px 7px;
background-imageurl('../images/xvideos.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:
xvideo"Insertar ID de XVideos"


Buscar:

Código PHP:
buttons"bold,italic,underline,strike,sup,sub,|,img,video, 


Agregar al lado:

Código PHP:
xvideo


Quedaría así:

Código PHP:
buttons"bold,italic,underline,strike,sup,sub,|,img,video,xvideo, 


Buscar:

Código PHP:
modal_video_text"URL del vídeo"


Debajo agregar:

Código PHP:
modal_xvideo_text:"ID del XVideo"


Buscar:

Código PHP:
transform: {
'<iframe src="Registrate o inicia tu sesión para ver este contenido{SRC}" width="640" height="360" frameborder="0" allowfullscreen></iframe>':'[swf=Registrate o inicia tu sesión para ver este contenido{SRC}]'
}
}, 


Debajo agregar:

Código PHP:
xvideo : {
titleCURLANG.xvideo,
buttonHTML'<span class="xvideo"></span>',
modal: {
titleCURLANG.xvideo,
width"500px",
tabs: [
{
input: [
 {
param"URL",title:CURLANG.modal_xvideo_text}
 ]
}
]
},
transform : {
'<iframe src="Registrate o inicia tu sesión para ver este contenido{URL}" frameborder="0" width="510" height="400" scrolling="no"></iframe>':"[xvideos]{URL}[/xvideos]"
}
}, 




Y subir esta imagen a la carpeta images con el nombre xvideos.png

[img]Registrate o inicia tu sesión para ver este contenido[/img]




Creditos: Rengo