1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Placing ads: what are the options?

Discussion in 'XenForo Questions and Support' started by Shamufish, Jun 26, 2011.

  1. Shamufish

    Shamufish Member

    Hi, so I intend to support my forum using ads.
    Problem is, I'm not sure how to go at it in terms of technical implementation.

    What did you guys choose? Is there a straightforward, elegant way to integrate the .js from the ads providers to xenforo?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Sign up for Google AdSense.

    Copy the code provided into the ad_ templates.
  3. Shamufish

    Shamufish Member

    Hi Brogan, so the thing is... can't really use adsense or the other major providers because my site is an adult one. Is ad_ templates still the best option for a custom .js?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    If the .js is common to all ad's then you can include one .js template in the PAGE_CONTAINER template.

    If it's different for each ad then add it to each ad_ template or create a .js template for each one and call them all in the PAGE_CONTAINER template.
    Shamufish likes this.
  5. Shamufish

    Shamufish Member

    Thank you :D

Share This Page