Ad below post

Ad below post 1.5

No permission to buy ($35.00)
Compatible XF 2.x versions
  1. 2.2
Premium upgrade:

This XF2 add-on along with the entire collection can be purchased for $35.00 USD. Your Premium upgrade will allow you to download as many XF2 add-ons as you like for one year. Please see the entire collection located in the Resources area at this URL:

https://www.xf2addons.com/

Description:

Displays ad below selected posts.

(Example of ad below 1st post)

pic001.jpg


(Example of Options page)

pic002.jpg


(Example of template code)

pic003.jpg


(Example of User group permissions)

pic004.jpg


Creating AdSense codes:

First AdSense code:
  1. Click Ads
  2. Click By ad unit
  3. Click Display ads
  4. Name your ad unit: fixed 728x90
  5. Click Responsive and select Fixed
  6. Enter 728 for the Width and 90 for the Height
  7. Click the Create button
  8. Copy code
  9. Click Done
Second AdSense code:
  1. Click Ads
  2. Click By ad unit
  3. Click Display ads
  4. Name your ad unit: fixed 300x50
  5. Click Responsive and select Fixed
  6. Enter 300 for the Width and 50 for the Height
  7. Click the Create button
  8. Copy code
  9. Click Done
Edit the andy_adbelowpost template:

Edit the andy_adbelowpost template and update the AdSense code with your code.

Editing the extra.less template:

Add the following code to your extra.less template:

Code:
// advertising responsive

.advertising-wide
{
    display: inline;
    text-align: center;
}

.advertising-narrow
{
    display: none;
}

@media (max-width: @xf-responsiveMedium)
{
    .advertising-wide
    {
        display: none;
    }
 
    .advertising-narrow
    {
        display: inline;
        text-align: center;
    }
}

User group permissions:

Normally you will set the following (Ad below post) user group permissions to Yes:

Registered
Unregistered / Unconfirmed

Question and answers:

Q: Which forum types are supported?
A: Only General discussion is supported.
  • Like
Reactions: Len and vwts
Author
AndyB
Views
1,891
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from AndyB

Latest updates

  1. See description

    Ad below post v1.5 changes: Now supports two fixed AdSense codes in order to show best size ads...
  2. See description

    Ad below post v1.4 changes: Added 2nd position to options page.
  3. See description

    Ad below post v1.3 changes: Now compatible with XF 2.2.

Latest reviews

The addon works as described and makes it much easier to properly place ads between posts (instead of in them like the default xf2 function). In addition, AndyB gives excellent support for all his addons and you should not hesitate to subscribe since you're getting a very good deal on many useful addons!
Top