The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Trying to Display Profile Field On Post Bit
My Diesel: $post[field7]
Is what i have now and its working fine ,, How ever i wish to hide this if the profile filed is empty I found this code but it dont work <if condition"$post['field7']">My Diesel: $post[field7]<br /><else /></if> Please Guide me on how i can display My Diesel: $post[field7] Only if The Profile field is filled out TIA |
#2
|
|||
|
|||
get rid of <else /> and make sure you have the right number...
|
#3
|
||||
|
||||
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /data/9/1/38/132/1201621/user/1280413/htdocs/includes/adminfunctions_template.php(3596) : eval()'d code on line 61 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
#4
|
||||
|
||||
Code:
<if condition"!empty($post['field7'])">My Diesel: $post[field7]<br /></if> |
#5
|
||||
|
||||
Thanks I tried that and ...
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /data/9/1/38/132/1201621/user/1280413/htdocs/includes/adminfunctions_template.php(3596) : eval()'d code on line 61 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. I got it it was <if condition="$post['field7']">My Diesel: $post[field7]<br /></if> |
#6
|
||||
|
||||
Shouldn't it be:
PHP Code:
|
#7
|
|||
|
|||
,,,hehe... needs the = sign...
|
#8
|
|||
|
|||
Hi there. Have you tried this code? Change the filed's number.
Code:
<if condition="$post[field5]">Blah: $post[field5]</if> |
#9
|
||||
|
||||
<if condition="$post['field7']">My Diesel: $post[field7]<br /></if>
This worked and is working fine Thanks |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|