PDA

View Full Version : A little PHP help from my postbit template..


jcroft
Sun 26th Aug '01, 1:41am
Hey there. Just a quick question. I've added a few custom fields from the user profile to my postbit template, like this:


<smallfont>
Registered: $post[joindate]<br><br>
<b>City:</b> $post[field2]<br>
<b>State: </b> $post[field6]<br>
<b>Country: </b> $post[field7]<br><br>
<b>New Beetle:</b><br> $post[field5]<br><br>
<b>Posts:</b> $post[posts]
</smallfont>


How could I modify this to not show these lines if the user has not entered a value for them? For example, if a user failed ot enter his/her Country, I'd rather not see the line at all.

Any clues?

Thanks so much.