PHP-Nuke and Google AdSense

Another approach is to add a Google AdSense banner on the top of every module. You can include the AdSense Javascript code in a separate file, call it adsense.php, and then just include this file from your module, as we did for the News sections above.

Once you have adsense.php in the includes directory, it becomes trivial to use its code in every module you choose. For every module where you would like to add the Google AdSense, look for the following code:

require_once("mainfile.php");and place the following line after that:require_once("includes/adsense.php");