Jump to content

Recommended Posts

Posted

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

Posted

limiting per member group, you would do this

<if test="IPSMember::isInGroup($this->memberData, array(1,2,3,4) )">{parse ad}</if>

IPSMember::isInGroup checks secondary group permissions

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
×
×
  • Create New...