Page 1 of 1

More characters in topictitel

Posted: Thu Jun 12, 2008 8:17 pm
by DaannO
Hi,

Phpbb3 has limited the amount of letters/characters you can use in the titel of a post or topic. Can any one make a mod so that it can be extend by a setting you wish. Or is there some where a way to change it in the code maybe?

Re: More characters in topictitel

Posted: Sat Jun 14, 2008 2:25 pm
by DaannO
Not possible right..

Re: More characters in topictitel

Posted: Wed Jun 18, 2008 8:59 pm
by DaannO
Still holding on..

Re: More characters in topictitel

Posted: Wed Jun 18, 2008 9:25 pm
by igorw
Hi,

that would have to be changed in the database. If you have phpMyAdmin, you can edit the fields in the phpbb_posts and phpbb_topics tables, but make sure you backup your database first in case you mess something up. ;)

Re: More characters in topictitel

Posted: Wed Jun 18, 2008 9:40 pm
by DaannO
Which do i need to edit?

post_subject from 100 to xxx
topic_title from 100 to xxxx?

Re: More characters in topictitel

Posted: Wed Jun 18, 2008 9:41 pm
by igorw
I believe that's all that's needed, yes. It's possible that it is cut off somewhere in PHP though.

Re: More characters in topictitel

Posted: Wed Jun 18, 2008 9:44 pm
by DaannO
I think so because the max is set at 60 and in the tables its 100 :X

Re: More characters in topictitel

Posted: Thu Jun 19, 2008 7:03 am
by mr.beery
includes/Function_posting.php

Code: Select all

find 
$subject = truncate_string($subject

editto $subject = truncate_string($subject, 120);

	// 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);

styles>prosilver>template>posting_editor.html

Code: Select all

fine
	<!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
	<dl style="clear: left;">
		<dt><label for="subject">{L_SUBJECT}:</label></dt>
		<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>


change 60 to 120 , 64 to 120