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

XF 1.4 how do i insert advertisement code in my comment ?

Discussion in 'XenForo Questions and Support' started by garry420, Dec 26, 2015.

  1. garry420

    garry420 Active Member

    Hello All,

    I want to know how can i put advertisement code in comment box of any thread ?
    something like adsense code in comment of the thread ?
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. whynot

    whynot Well-Known Member

    Would Goggle accept this?
  4. garry420

    garry420 Active Member

    I saw that in some forum where the id posting it was named as advertisement and above the ad also it was written advertisement.
    doesn't google accept it ?
  5. garry420

    garry420 Active Member

  6. Martok

    Martok Well-Known Member

    It should do, using the ad_message_body template and that guide should place ads where you want them.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    It works fine for me on my site.
  8. Tracy Perry

    Tracy Perry Well-Known Member

    You mean something similar to this?

    Screen Shot 2015-12-27 at 2.49.40 AM.png

    If so, then yes, the ad_message_below template works fine.
    garry420 likes this.
  9. garry420

    garry420 Active Member

    after putting this code what do i need to do ?
  10. Tracy Perry

    Tracy Perry Well-Known Member

    Uh, it's not as simple as just inserting the Google ads.. you will have to create a wrapper in it to contain it. Mine is specific to the UI.X style, and I'll shamelessly admit to stealing it from an example that @Brogan posted many moons ago.

Share This Page