Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..

Gracias.

La Administración de phpBB España.

Aumentar límite de carácteres del título de los TemasTema Solucionado

Dudas sobre estilos phpBB 3.0.x
Colaboraciones gráficas paquetes de rangos aquí y botones aquí.
Cerrado
Avatar de Usuario
mitch
Ex Staff
Mensajes: 4260
Registrado: 04 Sep 2005, 04:28
Género:

Aumentar límite de carácteres del título de los Temas  Tema Solucionado

#1

Mensaje por mitch »

Modificar el límite de carácteres del título de los Temas en phpBB3
Por defecto, phpBB permite solo 60 carácteres como máximo, para el título de tus Temas.

Si sueles colocar títulos muy largos, esto te puede ser útil.

:arrow: Primero, modificamos el archivo /includes/functions_posting.php

Buscar:

Código: Seleccionar todo

    // First of all make sure the subject and topic title are having the correct length.
    // To achieve this without cutting off between special chars we convert to an array and then count the elements.
    $subject = truncate_string($subject);
    $data['topic_title'] = truncate_string($data['topic_title']);
Reemplazar por:

Código: Seleccionar todo

    // First of all make sure the subject and topic title are having the correct length.
    // To achieve this without cutting off between special chars we convert to an array and then count the elements.
    // $subject = truncate_string($subject);
    // $data['topic_title'] = truncate_string($data['topic_title']);
:arrow: Y luego, modificas tu plantilla, con una de estas 2 modificaciones (dependiendo del estilo que uses):
  • Para plantillas basadas en Prosilver: Abrir /styles/prosilver/template/posting_editor.html
    Buscar:

    Código: Seleccionar todo

    <dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
    Reemplazar por:

    Código: Seleccionar todo

    <dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
  • Para plantillas basadas en Subsilver2: Abrir /styles/subsilver2/template/posting_body.html
    Buscar:

    Código: Seleccionar todo

    <td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>
    Reemplazar por:

    Código: Seleccionar todo

    <td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>
* Recordar que luego de editar los estilos, se debe limpiar el caché (basta con que lo hagas con el boton "Limpiar" del caché, que se encuentra en el índice del panel de administración).

Fuente: http://www.phpbb.com/community/viewtopi ... 5#p7090105

Cerrado

Volver a “Soporte para Estilos phpBB 3.0.x”