Description:
- Tương Thích Với Xenforo:
- 1.2
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:
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:
Requirements: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);
?>
This add-on works on all versions of XenForo v1.2x and above.
Installation:
Note:
- Download titlecontrol_v1.3.zip and unzip it.
- Upload the Andy folder to your server. The correct location is library/Andy.
- 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.
Additional information about the this add-on can be found here:
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ự...
![[IMG]](http://lh4.ggpht.com/-UpTxAxxc4Qo/UojyppwhcTI/AAAAAAAAeAU/Jrpu8vlmXSw/s0/pic001.jpg)