

Does not work:
PHP Code:
$foroid = $vbulletin->forum['forumid'];
if ($foroid != 24)
{
$vbulletin->db->query_write("
INSERT INTO " . TABLE_PREFIX . "followusernotify (userid, message)
VALUES
($tousername, '$subject: <a href = $forumurl/showthread.php?t=$threadid&p=$postid>$threadtitle</a> $subject')
");}
Help Me!!
--------------- Added [DATE]1291304552[/DATE] at [TIME]1291304552[/TIME] ---------------
I explained wrong.
When user create a thread, calls this function
PHP Code:
$vbulletin->db->query_write("
INSERT INTO " . TABLE_PREFIX . "followusernotify (userid, message)
VALUES
($tousername, '$subject: <a href = $forumurl/showthread.php?t=$threadid&p=$postid>$threadtitle</a> $subject')
")
I want to do is:
if the user creates a thread in forum ID=24 is not fulfilled.
then I did so:
PHP Code:
$foroid = $vbulletin->forum['forumid'];
if ($foroid != 24)
{....}
but no work!!!
because, although the user create a thread in the forum ID=24 this is true