PDA

View Full Version : HTML Help Please


Ghostly24
08-22-2009, 01:44 AM
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 :)

Lynne
08-22-2009, 03:23 AM
<if condition="$show['ad1'] AND $show['ad2']">
what happens if both are true
</if>

MAD-DOG
08-22-2009, 03:36 AM
<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>


thats what u guys are using on vb.org thank for the help i asked the same question like 10 weeks ago...

Ghostly24
08-22-2009, 04:12 PM
It didn't work Lynne...anything else?

Lynne
08-22-2009, 06:57 PM
It didn't work Lynne...anything else?
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.