Quote:
Originally Posted by MarkFL
Create a plugin hooked at "newpost_process" with the following Plugin PHP Code:
PHP Code:
$title = strtolower($post['title']);
if (strpos($title, 'http://'))
{
$post['message'] = '';
$minchar = intval($vbulletin->options['postminchars']) <= 0 ? 1 : intval($vbulletin->options['postminchars']);
require_once(DIR . '/includes/functions_misc.php');
$errors[] = construct_phrase(fetch_phrase('tooshort', 'error'), $minchar);
}
What this does is if "http://" is embedded in the thread title, the content of the post will be erased, and the user will be told their post is too short.
--------------- Added [DATE]1475698223[/DATE] at [TIME]1475698223[/TIME] ---------------
A more complete solution can be found here:
Block Censored Words in Posts by BOP5 VB4
This product will allow you to check post titles/content for additionally censored words/strings. You can specifiy which forums in which it is active too. 
|
thanks for your reply, but i've never created a plugin so your post is a bit over my head.
i tried the BOP5 plugin, but it censors both thread titles and posts since it uses the vB built in censorship list, and therefore doesn't work to just censor titles.