The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Ok, I am trying to show two things using the "if condition" code.
For example: <if condition="$show['ad1']"> and then add <if condition="$show['ad2']"> But I want to combine both of those codes together into one line. Any help would be appreciated
|
|
#2
|
||||
|
||||
|
HTML Code:
<if condition="$show['ad1'] AND $show['ad2']"> what happens if both are true </if> |
|
#3
|
|||
|
|||
|
Code:
<if condition="$show['thumbnailattachment'] AND $show['imageattachment']AND $show['imageattachmentlink']">
<p class="bigusername" style="border-bottom: 2px solid rgb(204, 204, 204);">Screenshots</p>
</if>
<if condition="$show['thumbnailattachment']">
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</if>
<if condition="$show['imageattachment']">
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</if>
<if condition="$show['imageattachmentlink']">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</if>
|
|
#4
|
|||
|
|||
|
It didn't work Lynne...anything else?
|
|
#5
|
||||
|
||||
|
Saying it doesn't work doesn't tell me a thing. Post your code (use code tags). Tell me what you expect to happen and what is actually happening.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|