Jump to content

How to show ads only in certain forums


Administrator
 Share

Recommended Posts

wrap the {parse advertisement='x'} in an IF statement on your board index template

 

Example

<if test="in_array($this->request['f'], array(1,2,3,4))">{parse ad}</if>

Replace the 1,2,3,4 with the ID's in the array should the the forum(s) you do NOT want the ad to display.

 

Do this for each ad

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...