The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Dear Sir,
Yes i am looking for new field. I create a new field in member profile area single text box.. And define the value in showthread.php like belwo $post['fieldx'] Now I want this field value in PostBit template but there is no value here Regards Jitender |
|
#2
|
|||
|
|||
|
<if condition $post['fieldx'];>$post['fieldx'];</if>
I think that should work. |
|
#3
|
||||
|
||||
|
Use instead:
Code:
<if condition="$post['fieldx']"> $post[fieldx] </if> |
|
#4
|
|||
|
|||
|
thanks for your reply...
but i change the $post['fieldx'] in showthread.php as below $post['my_variable']='text'.$post['fieldx']; now when i call the $post['my_variable'] in postbit there is no value Regards Jitender |
|
#5
|
|||
|
|||
|
You only need to add this to postbit, nothing else
|
|
#6
|
|||
|
|||
|
but in postbit i have no value
i am using below <if condition="!$post['my_variable']"> $post[my_variable] </if> |
|
#7
|
|||
|
|||
|
Quote:
Code:
<if condition="$post[fieldx]"> $post[fieldx] </if> If you wish to add a label before the contents of the field, simply add this text before the middle line of code and ensure you leave a space, otherwise it will all run into one. |
|
#8
|
||||
|
||||
|
Wow. Where did I go wrong? LOL.
|
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
||||
|
||||
|
No worries at all. I'm just having fun with it.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|