Quote:
Originally Posted by Kiros72
I haven't taken a look at the postbit template in a long while, but I just saw this and I've gotta wonder if it's really correct. I'm sure that it works properly, but should it really be this?
PHP Code:
<if condition="$post['field22']">
<div class=smallfont>
$userinfo[username] is $post[field22]
[<a href="profile.php?do=editprofile">Update</a>]
<else />
has not yet set status [<a href="profile.php?do=editprofile">Update</a>]
</div>
</if>
I was thinking that it might work better like this:
PHP Code:
<div class="smallfont">
<if condition="$post['fieldx']">
is $post[fieldx]
<else />
has not yet set status
</if>
[<a href="profile.php?do=editprofile">Update</a>]
</div>
(... where 'fieldx' is the correct field, like 'field22')
I haven't tested this, but I think it's correct.
|
Pretty much works the same, i've moved the coding around like you had it, and it doesn't change anything other than the "div class=smallfont" it doesn't work before the <if so either way works. And yes the "field22" will change it would be for anyone else "fieldx" where x is the field # I guess I assumed everyone would understand. But thanks!