The bbPress Simple advert units is a plugin that allows you to place adverts at various points in a bbPress forum. Typically this might be adsense ads, but there is no reason you can’t use any advert code – just paste in the relevant snippet.
You can see it in action here.
How to use the Simple Advert Units Plugin
It’s easy to add advert units into bbPress with the Simple Advert Units plugin. Just follow these easy steps.
- Find the config screen, you’ll see it under the forum menu in your admin area.
- Create a new unit by pressing “Add New Unit”.
- On the unit config page, paste in your advert code. In fact you can add any HTML code you like here, so the plugin can be used to add navigation links, images, or whatever.
- Select the location for the ad unit, the locations are explained below.
- Decide if the unit should show to logged in users. Generally I recommend hiding ads to your regular users, they will quickly become “ad blind” anyway and it makes sense to give them the best forum experience you can.
- Save, you’ll see your units on the plugin’s admin page:
The plugin allow you to place advert units in the following locations:
- Topic->Header: Before a topic starts
- Topic->Between Posts: This appears between first post and second post
- Topic->In Original Post: Ad appears within body of first post
- Topic->Footer: End of a topic
- Forum->Header: Before list of topics
- Forum->Footer: End of list of topics
- Front Page->Header: Before of list of forums
- Front Page->Footer: End of list of forums
New in version 0.4, this plugin now supports shortcodes. So if you already use another advert plugin that can render adverts via a shortcode then this will now be supported.
I have used this new feature to display mobile responsive adsense ads using the mobile detect plugin. The plugin provides shortcodes that you can use to wrap around different size ads so that the right size one will display to the right users.
Advert Unit Example
In the example below, you can see adverts in the header and footer position, along with an ad appearing in the first post:
I am open to ideas for future updates. Please get in touch.