[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
Aumentar límite de carácteres del título de los Temas - phpBBMexico
Ese foro es para snippets, pequeños mods, no suficiente grandes para ser Mods

Moderators: Carlos, Soporte en MODs, Soporte en phpBB

#163
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
[openfile]/includes/functions_posting.php[/openfile]

[findcode]Buscar:
Code: Select all
    // 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:
Code: Select all
    // 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']);         
[/findcode]

:arrow: Y luego, modificas tu plantilla, con una de estas 2 modificaciones (dependiendo del estilo que uses):
  • Para plantillas basadas en Prosilver: [openfile]Abrir /styles/prosilver/template/posting_editor.html[/openfile]
    [findcode]Buscar:
    Code: Select all
    <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:
    Code: Select all
    <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>
    [/findcode]
  • Para plantillas basadas en Subsilver2: [openfile]Abrir /styles/subsilver2/template/posting_body.html[/openfile]
    [findcode]Buscar:
    Code: Select all
    <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:
    Code: Select all
    <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>
    [/findcode]
* 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).

Articulo original
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[…]