ElSanguinario escribió:emoticones/smilies/caritas se muestren en un popUP
Mostrar un pop-up es una característica que ya trae phpbb, cuando desde el ACP se dejan algunos ocultos.
Pero yo te entendí cuando hiciste referencia a ello hace un tiempo atrás en este tema :
Re: Ideas para hacer MODs
así que aquí van las instrucciones de la primera parte :
ElSanguinario escribió:Que aparezca en el postbody del viewtopic, de los MP
Prosilver
Abrir:
Agregar, al final del archivo
Código: Seleccionar todo
#ventana-flotante :after { content: ""; display: inline-block; left: 10px; position: absolute; top: -6px; }
#ventana-flotante { width: 18%; height: auto; top: -1000px; left: 100%; z-index:999; background-clip: padding-box; background-color: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 5px 5px 5px 5px; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); margin: 1px 0 0 -10px; min-width: 160px; padding: 0; z-index: 1000; display: inline-block; }
.section-ucp #ventana-flotante { width: 250px; }
#ventana-flotante .cerrar { float: right; border-bottom: 1px solid #bbb; border-left: 1px solid #bbb; color: #999; background: white; line-height: 17px; text-decoration: none; padding: 0px 14px; font-family: Arial; border-radius: 0 5px 0 5px; box-shadow: -1px 1px white; font-size: 18px; -webkit-transition: .3s; -moz-transition: .3s; -o-transition: .3s; -ms-transition: .3s; }
#ventana-flotante .cerrar:hover { background: #ff6868; color: white; text-decoration: none; text-shadow: -1px -1px red; border-bottom: 1px solid red; border-left: 1px solid red; }
#ventana-flotante .contenido { padding: 5px; margin: 5px; border-radius: 4px; overflow-y: auto; max-height: 136px; }
#ventana-flotante .contenido img { padding: 2px 2px 0 0; }
.oculto { z-index: -1; display: none; position: fixed; opacity: 0; -ms-opacity: 0; -moz-opacity: 0; }
.visible{ z-index: 1000; display: inline-block; position: absolute; opacity: 1; -ms-opacity: 1; -moz-opacity: 1; }
Abrir:
Buscar:
Reemplazar, por:
Código: Seleccionar todo
<a id="phpbbsmilies" href="#" onclick="changeClass('phpbbsmilies', 'ventana-flotante', 'visible', 'oculto'); return false;"><strong>{L_SMILIES}</strong></a>
<div id='ventana-flotante' class="oculto">
<a class='cerrar' href='#' onclick="changeClass('phpbbsmilies', 'ventana-flotante', 'visible', 'oculto'); return false;">x</a>
<strong class="contenido" onclick="changeClass('phpbbsmilies', 'ventana-flotante', 'visible', 'oculto'); return false;">{L_SMILIES}</strong>
<div class="contenido bg3">
Buscar:
Antes, agregar:
Abrir:
Buscar:
Debajo, agregar:
Código: Seleccionar todo
<!-- IF S_SMILIES_ALLOWED -->
function changeClass(paren, elem, className1, className2)
{
paren = (paren) ? paren : 'phpbbsmilies'
p = document.getElementById(paren);
e = document.getElementById(elem);
if (e.className == className1) {
e.style.top = '-1000px';
e.style.left = '100%';
e.className = className2;
} else {
var Top = p.offsetTop;
var Left = p.offsetLeft;
e.style.top = Top+'px';
e.style.left = Left+'px';
e.className = className1;
}
}
<!-- ENDIF -->
SubSilver2
Abrir:
Agregar, al final del archivo
Código: Seleccionar todo
#ventana-flotante :after { content: ""; display: inline-block; left: 10px; position: absolute; top: -6px; }
#ventana-flotante { width: auto; height: auto; top: -1000px; left: -1000px; z-index:999; background-clip: padding-box; background-color: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 5px 5px 5px 5px; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); margin: 1px 0 0 -10px; min-width: 160px; padding: 0; width: 18%; z-index: 1000; display: inline-block; }
.section-ucp #ventana-flotante { width: 250px; }
#ventana-flotante .cerrar { float: right; border-bottom: 1px solid #bbb; border-left: 1px solid #bbb; color: #999; background: white; line-height: 17px; text-decoration: none; padding: 0px 14px; font-family: Arial; border-radius: 0 5px 0 5px; box-shadow: -1px 1px white; font-size: 18px; -webkit-transition: .3s; -moz-transition: .3s; -o-transition: .3s; -ms-transition: .3s; }
#ventana-flotante .cerrar:hover { background: #ff6868; color: white; text-decoration: none; text-shadow: -1px -1px red; border-bottom: 1px solid red; border-left: 1px solid red; }
#ventana-flotante .contenido { padding: 5px; margin: 5px; border-radius: 4px; overflow-y: auto; max-height: 136px; }
#ventana-flotante .contenido img { padding: 2px 2px 0 0; }
.oculto {display: none; position: fixed; opacity: 0; -ms-opacity: 0; -moz-opacity: 0; }
.visible{display: inline-block; position: absolute; opacity: 1; -ms-opacity: 1; -moz-opacity: 1; }
Abrir:
Buscar:
Debajo, agregar:
Código: Seleccionar todo
<a id="phpbbsmilies" href="#" onclick="changeClass('phpbbsmilies', 'ventana-flotante', 'visible', 'oculto'); return false;" style="position: relative; top:0;"><strong>{L_SMILIES}</strong></a>
<div id='ventana-flotante' class="oculto">
<a class='cerrar' href='#' onclick="changeClass('phpbbsmilies', 'ventana-flotante', 'visible', 'oculto'); return false;">x</a>
<strong class="contenido" onclick="changeClass('phpbbsmilies', 'ventana-flotante', 'visible', 'oculto'); return false;">{L_SMILIES}</strong>
<div class="contenido bg3">
Buscar y eliminar:
Código: Seleccionar todo
<tr>
<td class="gensmall" align="center"><b>{L_SMILIES}</b></td>
</tr>
Buscar:
Debajo, agregar:
Abrir:
Buscar:
Debajo, agregar:
Código: Seleccionar todo
<!-- IF S_SMILIES_ALLOWED -->
function changeClass(paren, elem, className1, className2)
{
paren = (paren) ? paren : 'phpbbsmilies'
p = document.getElementById(paren);
e = document.getElementById(elem);
if (e.className == className1) {
e.style.top = '-1000px';
e.style.left = '-1000px';
e.className = className2;
} else {
var Top = p.offsetTop;
var Left = p.offsetLeft;
e.style.top = Top+'px';
e.style.left = (Left+10)+'px';
e.className = className1;
}
}
<!-- ENDIF -->
Guardar los cambios, subir los archivos al servidor y desde el ACP -> ESTILOS actualizar las plantillas y temas de cada estilo