Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: crozDOTca on March 15, 2016, 05:34:54 PM

Title: I want to be able to write longer titles that the limit which I understand is 80
Post by: crozDOTca on March 15, 2016, 05:34:54 PM
See? Why can't I write longer titles for my posts? Can I fid the code to allow this? WHy is this an issue. Seems a trivial thing but maybe it is not.
Title: Re: I want to be able to write longer titles that the limit which I understand is 80
Post by: Kindred on March 15, 2016, 06:00:35 PM
you have to change it inthe post template, in the post source and in the database....
Title: Re: I want to be able to write longer titles that the limit which I understand is 80
Post by: nend on March 15, 2016, 06:28:27 PM
The database limit I believe is 255, may just have to change the form on the template.
Title: Re: I want to be able to write longer titles that the limit which I understand is 80
Post by: Pipke on March 15, 2016, 06:39:00 PM
Replace in code from Post.template.php below the 80 by whatever you want.


// Now show the subject box for this post.
echo '
<dt>
<span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
</dt>
<dd>
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
</dd>
<dt class="clear_left">
', $txt['message_icon'], ':
</dt>
<dd>
<select name="icon" id="icon" onchange="showimage()">';


think you need to edit it for poll post also etc just look in that file and seach for 80
Title: Re: I want to be able to write longer titles that the limit which I understand is 80
Post by: crozDOTca on March 15, 2016, 06:49:21 PM
Thank you! Where, exactly, is that file located?
Title: Re: I want to be able to write longer titles that the limit which I understand is 80
Post by: crozDOTca on March 15, 2016, 06:58:04 PM
Thank you , so it is in the forums folder and then Themes > default
Title: Re: I want to be able to write longer titles that the limit which I understand is 80
Post by: Pipke on March 15, 2016, 07:03:23 PM
Quote from: crozDOTca on March 15, 2016, 06:58:04 PM
Thank you , so it is in the forums folder and then Themes > default

yep, if you using the default theme ortherwise the file is in the theme youre using atm.
Title: Re: I want to be able to write longer titles that the limit which I understand is 80
Post by: Steve on March 15, 2016, 08:22:02 PM
Marking solved then. If you have further questions on this issue mark this thread unsolved and ask away. :)