I'm trying to use several of my user custom fields on a page in profile.php. I've got the template working and the page is displaying ok but I can't get the custom fields to display. I've tried a ton of stuff and just can't get it to work - would GREATLY appreciate any help you could provide. Here's what I'm doing now. This is the plug in code going into profile.php:
if ($_REQUEST['do'] == 'showsubscription')
{
echo 'test';
$customfields = array();
fetch_profilefields(0);
$page_templater = vB_Template::create('showsubscription');
$page_templater->register('customfields', $customfields);
}
in the template itself I'm putting in:
{vb:raw customfields.value11}
where I want to use the field. I've also tried customfields.field11 various permutation of userinfo, userfield, etc. I was able to do this in vb3 no problem but having a tough time getting it to work in vB4.
|