PDA

View Full Version : What's the proper way to display custom profile fields in postbit templates?


Quarantine
01-26-2010, 04:08 AM
Is this the correct code?:

<vb:if condition="$post['field11']"><div class="smallfont">Label text: $post[field11]</div></vb:if>

For some reason, when I implemented it in my postbit and postbit_legacy, it appears as:

Label text: $post[field11]

instead of

Label text: Actual text here

Any ideas? :/

Charlie98902
01-26-2010, 09:40 AM
I use this and just change the profile field number to yours. Make this a plugin.

if($post[field11]) $html .= '<dt>Version</dt> <dd>'.$post[field11].'</dd>';
if($post[field12]) $html .= '<dt>Plugin</dt> <dd>'.$post[field12].'</dd>';
$html .='<br /><br />';

$template_hook['postbit_userinfo_right_after_posts'] .= $html;