- XF Compatibility
- 2.2.x
- Summary
- The product allows users to manage the appearance of thread titles by using an External File option that includes a PHP file for customizing title outcomes, such as removing exclamation marks. It only affects newly created or edited titles after the add-on is activated.
Thread title manager lets you manage the appearance of thread titles by using an External File option that includes a PHP file for customizing title outcomes, such as removing exclamation marks. It only affects newly created or edited titles after the add-on is activated
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:
Questions and answers:
Q: Does this change old thread titles, or only new ones after the add-on is installed?
A: Only new or edited thread titles after the add-on is installed.
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:
<?php
if (substr_count($title, '!') > 0)
{
$patterns[0] = '/\!/';
$replacements[0] = '';
$title = preg_replace($patterns, $replacements, $title);
}
Q: Does this change old thread titles, or only new ones after the add-on is installed?
A: Only new or edited thread titles after the add-on is installed.