SnippetsAñadir consejos de cómo escribir un post en el editor.

Ese foro es para snippets, pequeños mods, no suficiente grandes para ser Mods

Moderators: Carlos, Soporte en MODs, Soporte en phpBB

0
No votes
 
Total votes: 0

User avatar
Carlos
Admin
Admin
Posts: 159
Joined: 17 Jun 2012, 00:01
Bandera: Mexico
Nombre real: Carlos

Añadir consejos de cómo escribir un post en el editor.

Post by Carlos »

[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.
[mod=Carlos]Recuerda poner tus datos de soporte antes de pedir ayuda! Asi nos evitamos dramas y te ayudamos rapido [/mod]

Return to “Snippets”