Announcement

Collapse
No announcement yet.

A little PHP help from my postbit template..

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A little PHP help from my postbit template..

    Hey there. Just a quick question. I've added a few custom fields from the user profile to my postbit template, like this:

    PHP Code:
        <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.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X