@zerokilled no me funciono, no se si deva a que son eventos distintos, es decir, que una funcion llama a un evento y otra a otro. Lo intente asi y solo se ejecutaba el evento 1
Código PHP:
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"return thx({$post['pid']}) && hideuntilthanks_reload()\" href=\"showthread.php?action=thank&tid={$post['tid']}&pid={$post['pid']}\">
<img src=\"{$mybb->settings['bburl']}/{$theme['imgdir']}/postbit_thx.gif\" border=\"0\" alt=\"$lang->thx_main\" title=\"$lang->thx_main\" id=\"i{$post['pid']}\" /></a>";