fatherofpain Posted August 25, 2009 Share Posted August 25, 2009 It is possible to increase the number of characters in the description of a topic ? I increased the number of characters in the mysql table to 250 and the html of my template >> "postFormTemplate" changed from 70 to 250 as well but after submitting the post, just the first 70 characters of the description are sent to the database. in mysql database description is 250. Help me, please. <input id='topic_desc' class='input_text' type="text" size="50" maxlength="70" name="TopicDesc" value="{$formData['topicDesc']}" tabindex="0" /> <input id='topic_desc' class='input_text' type="text" size="50" maxlength="250" name="TopicDesc" value="{$formData['topicDesc']}" tabindex="0" /> Link to comment Share on other sites More sharing options...
Josh Posted August 25, 2009 Share Posted August 25, 2009 The description is also truncated in the code, you'll have to change it there as well. If you look at admin/applications/forums/sources/classes/posts/classPost.php, around line 411 you will find this function: You'll need to change the 70 to 255, to match the db column you changed. public function setTopicDescription( $topicDescription ) { $this->_topicDescription = IPSText::parseCleanValue( $topicDescription ); $this->_topicDescription = trim( IPSText::getTextClass( 'bbcode' )->stripBadWords( IPSText::stripAttachTag( $this->_topicDescription ) ) ); $this->_topicDescription = preg_replace( "/&(#{0,}([a-zA-Z0-9]+?)?)?$/", '', IPSText::mbsubstr( $this->_topicDescription, 0, 70 ) ); } Link to comment Share on other sites More sharing options...
fatherofpain Posted August 25, 2009 Author Share Posted August 25, 2009 Now is working perfectly. Thanks master you are the best. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.