Ok been banging my head on this for quite some time now and completely ready to throw in the towel. I dont know why vB had to make things so damn difficult! It used to be really easy and straight forward to extend vB but not so much now.
I just want to pull in my custom template for adding a value to the postbit userifo part using the template hook "postbit_userinfo_right_after_posts"
The variable $post[field5] is already pulled in as I can do the eval like so to test it in the plugin...
Code:
if ($post['field5'])
{
$templater = vB_Template::Create('postbit_name');
$template_hook['postbit_userinfo_right_after_posts'] .= $templater->render();
}
My templates phrases are eval'd and outputted in the hook location but $post[field5'] is blank yet how did it evaluate as true if its empty?
If I hard code the template instead of creating it it works fine but I want it to be properly developed and not hacked.
Thanks