Title Control 1.3

Kiểm soát tiêu đề cho bài viết với giới hạn: độ dài, lọc ký tự...

  1. MB
    Tương Thích Với Xenforo:
    • 1.2
    Description:

    The Title Control add-on will do the following:
    • Control maximum length of thread titles (Option)
    • Force the first character of the thread title to uppercase (Option)
    • Allows additional title control using external file (Option)

    Admin Options:

    [​IMG]

    External File:

    The External File option allows the use of a PHP file that can control any aspect of the thread title. Here's an example that will make the first character of each word uppercase:

    PHP:
    <?php

    // get title
    $title = $this->get('title');

    // convert all words to first character uppercase
    $temp = '';
    $temp = preg_split('/(\W)/', $title, -1, PREG_SPLIT_DELIM_CAPTURE );
    foreach (
    $temp as $key=>$word) {
        
    $temp[$key] = ucfirst(strtolower($word));
    }
    $title = implode('', $temp);

    // set title
    $this->set('title', $title);

    ?>
    Requirements:

    This add-on works on all versions of XenForo v1.2x and above.

    Installation:
    1. Download titlecontrol_v1.3.zip and unzip it.
    2. Upload the Andy folder to your server. The correct location is library/Andy.
    3. From your Admin Control Panel, go to the "Install Add-on" page. Upload the addon-TitleControl_v1.3.xml file and click the Install Add-on button.
    Note:

    Additional information about the this add-on can be found here: