Displaying Google Adsense ads on your IPB board is easy enough. Just copy and paste the code into your skins as you like. But this method doesn’t lend itself easily to updates, especially if you have several skins installed for your members to use. You have to update each skin every time you want to change the position of the ads or the ad code changes. I use a different method that allows for more easy control of ad placement and who sees what ads that I thought I’d share.
This method allows you to maintain code in just one place (two if you also use the IBP Portal), so is much easier to make updates. It also allows you to control who sees what ads, based on member group. This is especially useful if you offer subscriptions or want to display all or certain ads to anonymous visitors, but others or none to registered members or members in specific groups. I’ve use this method on Belchfire.net since IPB 1.3. The instructions below are for 2.04 but should also work for 2.1 (although I haven’t updated yet).
You’ll need shell access or FTP access to your IPB files and a text editor, perferrably one with syntax highlighting of PHP files. If you have shell access, use your favourite text editor (I use VIM). If using FTP and will be downloading files, try the free PSPad text editor.
Continue reading “How to control display of Google ads in IPB”