Altering the length of a post title

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
csat
Registered User
Posts: 78
Joined: Tue Aug 05, 2008 10:38 am

Altering the length of a post title

Post by csat »

OK, i have searched for posts about the length of post titles and not found anything relevant so thought I would start a post here. I have posted on my forum which uses the prosilver style but the title of the post is too long to fit in the title box and so the end of the title is cut off. How do I alter the maximum number of characters allowed for post titles?
Last edited by Josh on Mon Feb 22, 2010 1:37 am, edited 1 time in total.
Reason: Topic icon changed
User avatar
Josh
Former Team Member
Posts: 1882
Joined: Sun Jan 25, 2009 3:08 pm
Location: Melbourne, AUS
Name: Josh Simpson
Contact:

Re: Altering the length of a post title

Post by Josh »

in posting_editor.html - search

Code: Select all

<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->
60 for the topic starter - 64 is for the replies (as it needs to include "Re: ")
Josh Simpson- Formerly known as "HardStyle"
Styles: Submission Policy | Database | Knowledge Base | Demo
Please do not PM me for personal support.
Image
csat
Registered User
Posts: 78
Joined: Tue Aug 05, 2008 10:38 am

Re: Altering the length of a post title

Post by csat »

You are a star. Thank you ever so much.
csat
Registered User
Posts: 78
Joined: Tue Aug 05, 2008 10:38 am

Re: Altering the length of a post title

Post by csat »

Ok I have altered that but when when you view the message it doesnt show the longer title. Is there a file i need to alter to say how many characters can b viewed in the topic title? I'm assuming the file i have altered is just to alter the number of characters in the post editor rather than in the post viewer if that makes sense.
User avatar
Josh
Former Team Member
Posts: 1882
Joined: Sun Jan 25, 2009 3:08 pm
Location: Melbourne, AUS
Name: Josh Simpson
Contact:

Re: Altering the length of a post title

Post by Josh »

ahh, just realised there was more to it :P

open /includes/functions_posting.php - search

Code: Select all

$subject = truncate_string($subject); 
replace with

Code: Select all

$subject = truncate_string($subject, 70); 
number = the max characters you want.
Josh Simpson- Formerly known as "HardStyle"
Styles: Submission Policy | Database | Knowledge Base | Demo
Please do not PM me for personal support.
Image
Locked

Return to “[3.0.x] Styles Support & Discussion”