I would like to limit the number of characters entered in the subject title, the title is too long to affect the overall appearance
Sorry, English is not my native language
I do not know what to do, please help me, thanks
3.2.x Snippets ⇒ Topic title bar limit the number of characters
-
10086qq
- Users

- Status: Offline
- User theme: Dark
- Posts: 2
- Joined: Aug 14th, '17, 06:44
Topic title bar limit the number of characters
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
-
martin
- Admin

- Status: Offline
- User theme: Dark
- Posts: 5136
- Joined: Apr 6th, '14, 14:12
Re: Topic title bar limit the number of characters
Open styles/prosilver/template/posting_editor.html
find
phpbb is default to 120 chars for new messages and 124 for replies you can change it to what ever number you want but remember this will be a core edit also there must be 4 numbers higher on replies.
find
Code: Select all
<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" />
-
10086qq
- Users

- Status: Offline
- User theme: Dark
- Posts: 2
- Joined: Aug 14th, '17, 06:44
Re: Topic title bar limit the number of characters
thank you very muchmartin wrote: Aug 19th, '17, 18:33 Open styles/prosilver/template/posting_editor.html
findphpbb is default to 120 chars for new messages and 124 for replies you can change it to what ever number you want but remember this will be a core edit also there must be 4 numbers higher on replies.Code: Select all
<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" />
-
martin
- Admin

- Status: Offline
- User theme: Dark
- Posts: 5136
- Joined: Apr 6th, '14, 14:12
Re: Topic title bar limit the number of characters
Np moved topic to 3.2 snippets as others may use it.