AndyB
Well-known member
Purpose:
The purpose of this thread is to provide additional information on the Title Control v1.0 add-on. To download and install this add-on please visit the following XenForo Resource:
http://xenforo.com/community/resources/title-control.2485/
Description:
The Title Control add-on will do the following:
Admin Options:
Path to PHP:
This feature allows admins to create an optional PHP file that can control any aspect of the thread title. Here's an example that will remove all quotes from the thread title:
The purpose of this thread is to provide additional information on the Title Control v1.0 add-on. To download and install this add-on please visit the following XenForo Resource:
http://xenforo.com/community/resources/title-control.2485/
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 PHP file (Option)
Admin Options:
Path to PHP:
This feature allows admins to create an optional PHP file that can control any aspect of the thread title. Here's an example that will remove all quotes from the thread title:
PHP:
<?php
// get title
$title = $this->get('title');
// remove quotes
if (substr_count($title, '"') > 0){
$patterns[0] = '/\"/';
$replacements[0] = '';
$title = preg_replace($patterns, $replacements, $title);
}
// set title
$this->set('title', $title);
?>
Last edited: