[AndyB] Ad below post

Free XF2 Add-ons [AndyB] Ad below post 1.7
Displays ad below selected posts.

Compatible XF 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)

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:
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:mktapel888, berkaybe__ and Kalendar
Author
FateKid
Downloads
2
Total Views
356
Released
Version
1.7
Rating
0.00 star(s) 0 ratings

More files from FateKid

Share this resource

Similar resources

[AndyB] Access log FateKid
Shows a list of bots, guests and members accessing your forum.
0.00 star(s) 0 ratings
Downloads
2
[AndyB] Account upgrade purchase history FateKid
Allows members to view their account upgrade purchase history.
0.00 star(s) 0 ratings
Downloads
1
[AndyB] Admin notes FateKid
Adds a note area in the Admin Control Panel.
0.00 star(s) 0 ratings
Downloads
1