The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adding additonal info in postbit
Would this condition still work in vb 4:
PHP Code:
Thanks |
#2
|
||||
|
||||
nope but this would
Code:
<vb:if condition="$post['fieldX']"><div class="smallfont">Label for text: {vb:raw post.fieldX}</div></vb:if> |
#3
|
|||
|
|||
Thank you
|
#4
|
|||
|
|||
I am trying to use this code in a widget and it doesn't work? Any ideas?
Thanks |
#5
|
|||
|
|||
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> |
#6
|
||||
|
||||
Code:
<vb:if condition="$post['fieldX']"><dt>Level of Care:</dt> <dd>{vb:raw post.fieldX}</dd></vb:if> |
#7
|
||||
|
||||
Quote:
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 |
#8
|
|||
|
|||
Well I asked for the plugin to get updated but I have no issue doing a template edit as the plugin for 3.8 lacked if you were able to choose several options for one field and the text wrap was a bug but fixable.
Thanks for the info so I can start on this in my test forum. |
#9
|
|||
|
|||
Quote:
PHP Code:
It's just an alternative way of doing the same thing. |
#10
|
|||
|
|||
Thanks I may look into that one first.
--------------- Added [DATE]1262612293[/DATE] at [TIME]1262612293[/TIME] --------------- Quote:
--------------- Added [DATE]1262616491[/DATE] at [TIME]1262616491[/TIME] --------------- Also how would I go about making a notice to users so they know they need to edit their profile as I run a software support and making it mandatory. This way I will not be or need to mass email users. Kind of like a notice to users if condition isn't met is what I am looking for I do believe. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|