I have a hook to:
$plugins->add_hook("datahandler_post_validate_thread", "test");
Want function only affect new threads but nothing is happening???
$post->data['subject']
$post->data['message']
function allowed_charecters(&$post)
{
global $mybb;
if($post->data['subject'] > $test)
{
echo "works";
}
$plugins->add_hook("datahandler_post_validate_thread", "test");
Want function only affect new threads but nothing is happening???
$post->data['subject']
$post->data['message']
function allowed_charecters(&$post)
{
global $mybb;
if($post->data['subject'] > $test)
{
echo "works";
}