- Compatible XF 1.x versions
- 1.2
- 1.3
- 1.4
- 1.5
Description:
Allows complete thread title control. Change case, remove certain characters and more.
(Example of Options page)
External File:
The External File option allows the use of a PHP file that can control the final outcome of the thread title.
Here's an example that will remove the exclamation character:
Click the Discussion tab for other examples.
Multibyte:
This is used for languages that require a Multibyte PHP code.
Installation:
To find the environment path add this to your URL while viewing the tools tab:
?tools/phpinfo.php
Locate the "DOCUMENT_ROOT" and copy/paste to External File field in the Options page, also add the /misc/TitleControl.php.
How it works:
When a new thread or existing thread title is saved, the Title Control add-on will apply changes to the thread title.
Sending a donation:
If you like this add-on, please consider sending a small donation.
https://www.paypal.me/andybajka
Thank you.
Allows complete thread title control. Change case, remove certain characters and more.
(Example of Options page)
External File:
The External File option allows the use of a PHP file that can control the final outcome of the thread title.
Here's an example that will remove the exclamation character:
PHP:
<?php
// get title
$title = $this->get('title');
if (substr_count($title, '!') > 0)
{
$patterns[0] = '/\!/';
$replacements[0] = '';
$title = preg_replace($patterns, $replacements, $title);
}
// set title
$this->set('title', $title);
?>
Click the Discussion tab for other examples.
Multibyte:
This is used for languages that require a Multibyte PHP code.
Installation:
- Download titlecontrol_v1.7.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.7.xml file.
- Click the Install Add-on button.
To find the environment path add this to your URL while viewing the tools tab:
?tools/phpinfo.php
Locate the "DOCUMENT_ROOT" and copy/paste to External File field in the Options page, also add the /misc/TitleControl.php.
How it works:
When a new thread or existing thread title is saved, the Title Control add-on will apply changes to the thread title.
Sending a donation:
If you like this add-on, please consider sending a small donation.
https://www.paypal.me/andybajka
Thank you.