Log in

View Full Version : Hide Unentered Profile Fields in Postbit


WitchyT
01-31-2005, 08:36 PM
I know there's a hack that allows unentered profile fields to stay hidden in the profile/getinfo page, but I was wondering, is there one that allows you to hide those in the postbit?

Like one of my custom fields is in my postbit template. If a person doesn't have that filled out, how can I make it so that when they post, that particular line/custom field stays hidden from the postbit area? Like make this hidden in the postbit if that field is not filled out in his/her profile:

<b>Side</b>: $post[field11]<br>

This is a vB2 question mostly.

noppid
01-31-2005, 09:07 PM
During the post build in showthread.php add something like this...


if( $post[field11] )
{
$post[field11] = " <b>Side</b>: " . $post[field11] . "<br />";
}



Then shorten your postbit to $post[field11].

miz
02-01-2005, 12:46 AM
better do :

in template :

<if condition="$post['field11'] != '' ">
<b>Side</b>: $post[field11]<br>
</if>