[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 194: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 199: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 267: Trying to access array offset on value of type bool
Añadir consejos de cómo escribir un post en el editor. - phpBBMexico
Ese foro es para snippets, pequeños mods, no suficiente grandes para ser Mods

Moderators: Carlos, Soporte en MODs, Soporte en phpBB

No votes
0%
#14
[align=center][infobox]Nombre Tutorial: Añadir consejos de cómo escribir un post en el editor.
Versión: x
Autor: Juanla
Url del Autor http://www.coloreatuforo.com

Basado en: PROSILVER (en subsilver2 debería de funcionar también buscando su sitio)

Descripción y uso:
Añadimos un bloque debajo del asunto donde podemos poner algunos consejos que a la hora de que el usuario postee tenga en cuenta. Como normas, etc..[/infobox][/align]
Screenshot:
[img]http://img441.imageshack.us/img441/1746/14912986.png[/img]
[img]http://img138.imageshack.us/img138/2200/76151507.png[/img]
Tutorial:
Abrimos el archivo styles/tuestilo/template/posting_editor.html

Buscamos:
Code: Select all
<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
        <!-- DEFINE $CAPTCHA_TAB_INDEX = 3 -->
        <!-- INCLUDE {CAPTCHA_TEMPLATE} -->
    <!-- ENDIF -->
    <!-- ENDIF -->  

Añadimos después (Lo hice en Modo Spoiler, pero puedes añadirlo sin él si quieres):
Code: Select all
  <div style="height:100%; margin:20px; padding: 15px;  background-color: #d5e3eb; border: 1px solid #095387; margin-top:5px">
    <div class="quotetitle"><b>Consejos</b>:&nbsp;<input class="button2 btnlite" type="button"  value="Ver" style="text-align:center;width:100px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';      this.innerText = ''; this.value = 'Esconder'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Mostrar'; }" />
    </div>
    <div class="quotecontent">
    <div style="display: none;">
        
            Tus consejos aquí
    
    </div>
    </div>
    </div>  
Adaptar a la respuesta rápida de phpBB (La oficial):
Abrir styles/prosilver/template/quickreply_body.html
Si tienes el MOD que añade los BBcodes busca esto:
Code: Select all
<!-- INCLUDE posting_buttons.html -->  
Si no lo tienes busca esto:
Code: Select all
<div id="message-box-ns">  
Añade arriba:
Code: Select all
<div style="height:100%; margin:20px; padding: 15px;  background-color: #d5e3eb; border: 1px solid #095387; margin-top:5px">
    <div class="quotetitle"><b>Consejos</b>:&nbsp;<input class="button2 btnlite" type="button"  value="Ver" style="text-align:center;width:100px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';      this.innerText = ''; this.value = 'Esconder'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Mostrar'; }" />
    </div>
    <div class="quotecontent">
    <div style="display: none;">
        
            Tus consejos aquí
    
    </div>
    </div>
    </div>  
Para añadirlo a un Mod de respuesta rápida como Evil quick reply abrimos el archivo posting_qr_body.html y buscamos:
Code: Select all
<!-- INCLUDE posting_buttons.html -->  
Agregaremos el código de los consejos arriba.
Duda sobre BBcode

ya preguntaste ahi? [ Post made via Sony Xperi[…]

[DUDA] Imagen en Foros

Hola, Puse imágenes propias como íc[…]

Hola! queria saber si existe un mod que te muestre[…]

Hola, me gustaria saber si es posible modificar al[…]