<if test="adCodeCheck:|:$post['post']['_adCode']">
{$post['post']['_adCode']}
</if>
<if test="adCodeCheck:|:$post['post']['_adCode']&&in_array( $this->request['f'],array(1,12,15) )">">
{$post['post']['_adCode']}
</if>
In the admin panel System Settings > System > Ad Code Integration
topic view - Code to display after first post
You will have to edit the template topic view > post to check for forums.
find:
change to:Code:<if test="adCodeCheck:|:$post['post']['_adCode']"> {$post['post']['_adCode']} </if>
he 1,12,15 are the forum numbers you want ads displayed in.Code:<if test="adCodeCheck:|:$post['post']['_adCode']&&in_array( $this->request['f'],array(1,12,15) )">"> {$post['post']['_adCode']} </if>
Alittle more complicated but yes.Nice
Is there any way to control after what posts to show it instead of just the 1st one? lets say i wanted to show it after the 1st post, 5th post and last post.
$adCodeSet = true;
// $adCodeSet = true;
<if test="adCodeCheck:|:in_array($post['post']['post_count'],array(1,5,count($post))&&in_array( $this->request['f'],array(1,12,15) ) ">
{$post['post']['_adCode']}
</if>
<if test="adCodeCheck:|:in_array($post['post']['post_count'],array(1,5,count($post))&&in_array( $this->request['f'],array(1,12,15) ) ">
http://***/torrent.php*****YOU_REFF&s={$topic['title']}&f={$topic['title']}
</if>
<!-- where code should have went -->