PDA

View Full Version : Showthread ad?


Loget
09-02-2013, 06:20 PM
Hello,

I'm trying to add an ad above the poll / reply to thread area, but I am unable to do so using the following code:

<vb:if condition="in_array($forumid, array(102))">
<div style="padding: 10px;">
<center><a href="http://www.x.com/" target="_blank">
<img src="/images/">
</a></center>
</div>
</vb:if>

Any help please?

tbworld
09-02-2013, 08:03 PM
Make it a bit easier for us.. Template name? and the location or line number where you are positioning the code.

Loget
09-02-2013, 08:15 PM
SHOWTHREAD, and just below the {header}

BirdOPrey5
09-02-2013, 08:18 PM
Try-

<vb:if condition="in_array($GLOBALS['forumid'], array(102))">

Loget
09-03-2013, 12:27 PM
That works. Thanks BirdOPrey5 :)