Shamufish Member Jun 26, 2011 #1 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?
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?
Paul B XenForo moderator Staff member Jun 26, 2011 #2 Sign up for Google AdSense. Copy the code provided into the ad_ templates. Upvote 0 Downvote
Shamufish Member Jun 26, 2011 #3 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? Upvote 0 Downvote
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?
Paul B XenForo moderator Staff member Jun 26, 2011 #4 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. Upvote 0 Downvote
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.