Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

title character lenght

edited June 2011 in Vanilla 2.0 - 2.8
Hello! Please do me a favour.

How can i increase the number of title character? coz The default is 100 characters, but my community is in Khmer language so 1 Character of Khmer Unicode = 3 Characters of English. How can I increase?
Tagged:

Comments

  • ToddTodd Vanilla Staff
    edited June 2011
    You can edit /applications/dashboard/settings/structure.php and look for the Discussion table and Name column.

    To prevent future updates from crushing your new limit I'd recommend adding the following to your theme hooks or a plugin.
    public function Gdn_MySQLStructure_BeforeSet_Handler($Sender, $Args) {
    if ($Sender->TableName() == 'Discussion')
    $Sender->Column('Name', 'varchar(255)', FALSE, 'fulltext');
    }
Sign In or Register to comment.