ok, I will make it a lot easier for you so you don't waste your time....
here is the code for
postbit_display_complete replace this with the one you have and save it...
Code:
require_once(DIR . '/includes/functions_post_thanks.php');
if (!(defined('LOCATION_BYPASS')) && !(post_thanks_off($this->thread['forumid'], $this->post, $this->thread['firstpostid'], THIS_SCRIPT)))
{
global $ids;
$thanks = fetch_thanks($this->post['postid'], $ids);
if (thanked_already($this->post) && $this->registry->options[post_thanks_delete_own])
{
$this->post['show_thanks_remove_option'] = true;
}
if ($this->post['post_thanks_amount'] > 0 && $this->thread['isdeleted'] == 0)
{
$this->post['post_thanks_bit'] = fetch_thanks_bit($this->thread['forumid'], $thanks);
$this->post['post_thanks_user'] = $post_thanks_user;
$this->post['post_thanks_amount_formatted'] = vb_number_format($this->post['post_thanks_amount']);
$post_thanks_box = fetch_post_thanks_template($this->post);
}
$templater = vB_Template::create('post_thanks_box');
$templater->register('post', $post);
$templater->register('post_thanks_box', $post_thanks_box);
$template_hook['postbit_end'] .= $templater->render();
}
if ($this->registry->userinfo['userid'] != 0 && !(defined('LOCATION_BYPASS')) && !(post_thanks_off($thread['forumid'], $post, $thread['firstpostid'], THIS_SCRIPT)))
{
$display_thanks_image = 'none';
if (can_thank_this_post($post, $thread['isdeleted']) && !thanked_already($post))
{
$display_thanks_image = '';
}
$templater = vB_Template::create('post_thanks_button');
$templater->register('post', $post);
$templater->register('display_thanks_image', $display_thanks_image);
$template_hook['postbit_thanks'] .= $templater->render();
}
if ($this->registry->options['post_thanks_show_stats_postbit'])
{
$post['post_thanks_user_amount_formatted'] = vb_number_format($post['post_thanks_user_amount']);
$post['post_thanks_thanked_times_formatted'] = vb_number_format($post['post_thanks_thanked_times']);
$post['post_thanks_thanked_posts_formatted'] = vb_number_format($post['post_thanks_thanked_posts']);
$templater = vB_Template::create('post_thanks_postbit_info');
$templater->register('post', $post);
//$template_hook['postbit_userinfo_right_after_posts'] .= $templater->render();
}
Then use this hook in your postbit_legacy,
Code:
{vb:raw template_hook.postbit_thanks}
place it after
Code:
{vb:raw template_hook.postbit_signature_end}
check it and see!!