PDA

View Full Version : Custom user fields not showing in custom template


MrToasty
03-13-2010, 07:44 AM
Hi All,

I have a custom template called "Postbit Extras" which I have being called at hook location "postbit_display_complete" as per below:-

$templater = vB_Template::create('postbit_extras');
$templater->register('postbit_extras ', $postbit_extras);
$template_hook['postbit_userinfo_right_after_posts'] .= $templater->render();

and also have a plugin to cache the template called Postbit Extras Cached being called at "cache_templates"

$cache[] = 'postbit_extras';Can anyone help a n00b? If anyone can, it'd be much appreciated! :)

However, when I try and call a userfield it doesn't display

IE
<vb:if condition="$post['fieldX']"><dt>Custom Field</dt> <dd>{vb:raw post.fieldX}</dd></vb:if>

It works if I place this code in the postbit template, but it will not work through my called template. My custom template works if I have static text in it.

Any help would be greatly appreciated! :)

MrToasty
03-15-2010, 12:09 PM
No love? (read: bump)

MrToasty
03-21-2010, 01:43 PM
No one?