Thought someone might find this useful. The way thanks is used on the forums I run is that I like the thread to be bumped each time thanks is hit (so, thanks functions just like reply but without cluttering up the thread with useless posts). This is all it takes to make that happen:
In
post_thanks.php, find this chunk of code:
PHP Code:
add_thanks($postinfo);
($hook = vBulletinHook::fetch_hook('post_thanks_main_add_thanks_end')) ? eval($hook) : false;
Add the following chunk of code between those two lines:
PHP Code:
//bump thread when user hits thanks
$threadman =& datamanager_init('Thread', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$threadman->set_existing($threadinfo);
$threadman->set('lastpost', TIMENOW);
$threadman->save();
That's it!