Quote:
Originally Posted by Charlie98902
So this entry would go under the posts field I assume in the postbit? I need 2 things to show in mine and I planned on making the profile fields for it and mandatory as well.
This code is what I am referring too.
Code:
<vb:if condition="$post['fieldX']"><div class="smallfont">Label for text: {vb:raw post.fieldX}</div></vb:if>
|
yes you can place it anywhere really, but either
postbit or postbit_legacy
Then ofcourse REPLACE fieldX where the x is the number of the userfield you created in
adminCP, so if you go and create a field now, after done in the userfield manager i would
says "EXSAMPLE" field5 and thats what the condition should see, and also what
vbraw shows on the screen.
If condition here, ONLY shows the content IF the user have something in the field,
if the field is blank, then it wont show in the posts.
All of this can allso just be dont with a plugin, which i feel is more "clean" and i use that myself.
plugins over template edits anyday