The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Code:
<if condition="$post['field16']"><div class="smallfont">Name: $post[field16]</div></if> <if condition="$post['field46']"><img src="images/misc/$post[field46].gif" alt="$post[field46]"></div></if> |
|
#2
|
|||
|
|||
|
Code:
<if condition="$post['field16']"><div class="smallfont">Name: $post[field16]<if condition="$post['field46']"><img src="images/misc/$post[field46].gif" alt="$post[field46]"></if></div></if> |
|
#3
|
||||
|
||||
|
you could use a span instead of a div too
|
|
#4
|
||||
|
||||
|
and that won't freak out if someone doesn't have either field16 or 46 filled out?
|
|
#5
|
|||
|
|||
|
Forces both to be inputed:
Code:
<if confition="$post['field16'] AND $post['field46']"> <div class="smallfont"><if condition="$post['field16']">Name: $post[field16]</if><if condition="$post['field46']"><img src="images/misc/$post[field46].gif" alt="$post[field46]"></if></div></if> Code:
<if confition="$post['field16'] OR $post['field46']"> <div class="smallfont"><if condition="$post['field16']">Name: $post[field16]</if><if condition="$post['field46']"><img src="images/misc/$post[field46].gif" alt="$post[field46]"></if></div></if> |
|
#6
|
||||
|
||||
|
thanks, cos 46 is gender and 16 is name so i wanted to make sure that even if someone didn't put in their name it will still display their gender
|
|
#7
|
||||
|
||||
|
Code:
<if confition="$post['field16'] OR $post['field46']"><div class="smallfont"><if condition="$post['field16']">Name: $post[field16]</if><if condition="$post['field46']"><img src="images/misc/$post[field46].gif" alt="$post[field46]"></if></div></if> Quote:
line 54 is the above line |
|
#8
|
||||
|
||||
|
found the error it was a spelling mistake
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|