Quote:
Originally Posted by MoMan
I just checked reply_post.php in tapatalk and they conveniently have the hook commented out on line 190...
Add this code if you want thread bans to work:
PHP Code:
if (!empty($threadinfo['threadbans'])) { $btu = unserialize($threadinfo['threadbans']); if (isset($btu[$vbulletin->userinfo['userid']])) { if ($btu[$vbulletin->userinfo['userid']][1] == 0) { $return = array(6,'invalid thread id');
return return_fault($return); } elseif ($btu[$vbulletin->userinfo['userid']][1] > TIMENOW) { $return = array(6,'invalid thread id');
return return_fault($return); } else { unset($btu[$vbulletin->userinfo['userid']]); $vbulletin->db->query_write('UPDATE ' . TABLE_PREFIX . 'thread SET threadbans = \'' . $vbulletin->db->escape_string(serialize($btu)) . '\' WHERE threadid = ' . $threadinfo['threadid']); } } }
|
Thanks for this. Where must this code be placed? Anywhere in the file? Thanks.