So now I find that with this mod, a user deleting their own thanks gets a permission denied error, but the thanks still gets deleted.
The block of code is on about line 116 and starts:
PHP Code:
if ($_REQUEST['do'] == 'post_thanks_remove_user')
{
($hook = vBulletinHook::fetch_hook('post_thanks_main_remove_user_thanks_start')) ? eval($hook) : false;
if (!(delete_thanks($postinfo, $vbulletin->userinfo['userid'])))
{
$using_ajax ? exit : print_no_permission();
}
So I altered the logic in that block and removed the bang from infront of delete_thanks() and it works fine now. Another bug in this hack... *sigh*
Oh and while we are on the subject, is anyone else having problems with this hack using AJAX? No matter what options I select adding or removing a Thanks causes a full page refresh.