Ads

You can use various plugins that can be downloaded from MyBB's mods database at http://mods.mybb.com/mods . If you want some advanced plugins I would suggest you checking out MyBB-Plugins and MyBBCentral, both have one advanced advertisement rotation plugin.
 
Code:
    <div align="center"><script type="text/javascript" language="javascript">function swg_fa_randomads() {var ads = new Array();

    // List of banners, first item = banner url, second item = link url
    ads[0] = new Array('ImageLink', 'Link');
    ads[1] = new Array('ImageLink', 'Link');
    ads[2] = new Array('ImageLink', 'Link');

    // do not edit
    i=Math.floor(Math.random()*ads.length);document.write('<a href="'+ads[i][1]+'" target="_blank"><img src="'+ads[i][0]+'" border="0" width="468" height="60"></a>');} swg_fa_randomads();</script></div>
 
Matt. said:
Where do I add that?
If you wish to display advertisements in the header then you need to add that into the header template, if you want to display them after each post, then you need to add to the postbit template and if you want to display them at the bottom of the page you need to add that code to the footer template.
 
Back
Top Bottom