Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 25, 200915 yr 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" />
August 25, 200915 yr 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 ) ); }
Archived
This topic is now archived and is closed to further replies.