Change maximum topic subject length...

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
crechebaby
Registered User
Posts: 5
Joined: Sat Feb 25, 2006 5:49 am

Change maximum topic subject length...

Post by crechebaby »

I really need a way to change the maximum topic subject length on my board. I imagine its pretty simple, as I managed to do HALF the job by editing one of my template files.. but couldn't figure out the rest.

If this has already been requested a million times, or even done, I apologize.. don't hate me, the search function on the forums isn't working for me :/

I'm a girl, and I'm cute. So be nice :D

User avatar
Jaffery
Registered User
Posts: 238
Joined: Sat Oct 18, 2003 2:55 pm
Location: Yaar !!
Contact:

Post by Jaffery »

I think that will require some database field update.. You have to find out in which table is used for subject ..
BTw.. I think phpbb_config table containing feild config_name is one you shld look for .. it has current limit of 255 !
But.. I am not sure as not hav checked and I am also not a coder yet :P
Free fast Image Hosting at www.ImageTor.com | Linux Forum <--- LinuxSolved.com
Bodybuilding <--- Bodybuilding.name Forums
Shayari <---- Poetry Forum at Yoindia.com
Linux webhosting <---- Linux Webhosting at MGCyber.net

crechebaby
Registered User
Posts: 5
Joined: Sat Feb 25, 2006 5:49 am

Post by crechebaby »

I'm not a coder either, sadly--and am clueless when it comes to the database. Hence my request ;)

The limit I'm getting, though, is definitely not 255. It appears to be about 60.

Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Post by Merlin Sythove »

Database field is correct, that needs changing. You need phpMyAdmin to access your database, find the table phpbb_posts_text, the field post_subject, and change varchar(60) to varchar(255)
Find the table phpbb_topics, field topic_title, and make it exactly the same - the topic title is a copy of the post title of the first post.
You can now just use the template to limit the length again if you like:
find something similar to this in posting_body.tpl:
<input type="text" class="post" name="subject" size="45" maxlength="60"
and change maxlength to another number

Post Reply

Return to “[2.0.x] MOD Requests”