- Compatible versions
- 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.
Description:
Displays ad below selected posts.
(Example of ad below 1st post)
(Example of Options page)
(Example of template code)
(Example of User group permissions)
Creating AdSense codes:
First AdSense code:
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:
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.
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.
Description:
Displays ad below selected posts.
(Example of ad below 1st post)
(Example of Options page)
(Example of template code)
(Example of User group permissions)
Creating AdSense codes:
First AdSense code:
- Click Ads
- Click By ad unit
- Click Display ads
- Name your ad unit: fixed 728x90
- Click Responsive and select Fixed
- Enter 728 for the Width and 90 for the Height
- Click the Create button
- Copy code
- Click Done
- Click Ads
- Click By ad unit
- Click Display ads
- Name your ad unit: fixed 300x50
- Click Responsive and select Fixed
- Enter 300 for the Width and 50 for the Height
- Click the Create button
- Copy code
- Click Done
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:
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.