How to increase the length of the subject/title of the topic?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
jmichae1
Registered User
Posts: 11
Joined: Thu Apr 15, 2021 1:29 pm
Name: Mikhail Jacques

How to increase the length of the subject/title of the topic?

Post by jmichae1 »

Hello,

I have a phpBB forum version 3.3.13.

I have discovered that the Topic/Subject/Title length when creating a post is limited to 60 characters. I want to increase it, e.g. to 100 characters. The database does not appear to be the issue since the phpbb_topics table's topic_title column is of type VARCHAR and its Length/Value is 255.

I suspect that the phpBB may enforce length limits when inserting or updating records. While topic_title is stored as VARCHAR(255), there could be a character limit enforced via SQL queries in phpBB.

Does anyone knows how to increase the length of the topic title/subject?

Thank you in advance

Michael
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3947
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: How to increase the length of the subject/title of the topic?

Post by Kailey »

jmichae1 wrote: Tue Nov 12, 2024 7:28 pm I have discovered that the Topic/Subject/Title length when creating a post is limited to 60 characters
It's 120 characters - viewtopic.php?t=2657989
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
warmweer
Jr. Extension Validator
Posts: 11854
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: How to increase the length of the subject/title of the topic?

Post by warmweer »

jmichae1 wrote: Tue Nov 12, 2024 7:28 pm I have discovered that the Topic/Subject/Title length when creating a post is limited to 60 characters. I want to increase it, e.g. to 100 characters. The database does not appear to be the issue since the phpbb_topics table's topic_title column is of type VARCHAR and its Length/Value is 255.
In stock phpBB the topic_title length = 120

see /includes/functions_posting.php

in phpBB 3.3.13
line 1688

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, 120);
	$data_ary['topic_title'] = truncate_string($data_ary['topic_title'], 120);
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
jmichae1
Registered User
Posts: 11
Joined: Thu Apr 15, 2021 1:29 pm
Name: Mikhail Jacques

Re: How to increase the length of the subject/title of the topic?

Post by jmichae1 »

warmweer wrote: Wed Nov 13, 2024 7:18 am
jmichae1 wrote: Tue Nov 12, 2024 7:28 pm I have discovered that the Topic/Subject/Title length when creating a post is limited to 60 characters. I want to increase it, e.g. to 100 characters. The database does not appear to be the issue since the phpbb_topics table's topic_title column is of type VARCHAR and its Length/Value is 255.
In stock phpBB the topic_title length = 120

see /includes/functions_posting.php

in phpBB 3.3.13
line 1688

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, 120);
	$data_ary['topic_title'] = truncate_string($data_ary['topic_title'], 120);
I now realize that the 60-character limit was in phpBB 3.0.14. In 3.3.13, it is 120 characters. So, I am all set. Thank you for your professional and detailed assistance!
jmichae1
Registered User
Posts: 11
Joined: Thu Apr 15, 2021 1:29 pm
Name: Mikhail Jacques

Re: How to increase the length of the subject/title of the topic?

Post by jmichae1 »

Kailey wrote: Wed Nov 13, 2024 4:23 am
jmichae1 wrote: Tue Nov 12, 2024 7:28 pm I have discovered that the Topic/Subject/Title length when creating a post is limited to 60 characters
It's 120 characters - viewtopic.php?t=2657989
I now realize that the 60-character limit was in phpBB 3.0.14. In 3.3.13, it is 120 characters. So, I am all set. Thank you for your help!

Return to “[3.3.x] Support Forum”