Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
fatherofpain Posted August 25, 2009 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" />
Josh Posted August 25, 2009 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 ) ); }
fatherofpain Posted August 25, 2009 Author Posted August 25, 2009 Now is working perfectly. Thanks master you are the best.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.