3.2.x SnippetsTopic title bar limit the number of characters

Snippets
Previous topicNext topic
User avatar

Topic Author
10086qq
Users
Users
    Windows 7 Chrome
Magic user status: Offline
Posts: 2
Joined: Aug 14th, '17, 06:44

Topic title bar limit the number of characters

Post by 10086qq »

20170820013139.png
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
You do not have the required permissions to view the files attached to this post.
User avatar

martin
Admin
Admin
    Ubuntu Chrome
Magic user status: Offline
Posts: 4690
Joined: Apr 6th, '14, 14:12

Re: Topic title bar limit the number of characters

Post by martin »

Open styles/prosilver/template/posting_editor.html
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" />
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.
Use this to install an ext on your board no more ftp or path making.
Path too install this ext is ext/boardtools/upload
Download is here Make it easy for us to solve your issues
User avatar

Topic Author
10086qq
Users
Users
    Windows 7 Chrome
Magic user status: Offline
Posts: 2
Joined: Aug 14th, '17, 06:44

Re: Topic title bar limit the number of characters

Post by 10086qq »

martin wrote: Aug 19th, '17, 18:33 Open styles/prosilver/template/posting_editor.html
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" />
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.
thank you very much
User avatar

martin
Admin
Admin
    Ubuntu Chrome
Magic user status: Offline
Posts: 4690
Joined: Apr 6th, '14, 14:12

Re: Topic title bar limit the number of characters

Post by martin »

Np moved topic to 3.2 snippets as others may use it.
Previous topicNext topic