How to add google adsense in phpnuke header



Hire Us!Download Video(0)Comments


I have shown you how to add adsence to a block, now I will show you how to add it to your header like at nukecops.com.

Files to edit :
themes/YOURTHEME/theme.php
themes/YOURTHEME/header.html[*if available]

Steps :
Open themes/YOURTHEME/theme.php and find the themeheader function similar to the example below.

Within this function is where we will put our google in a variable [$ws_google_ads].

As you can see all you need now is to replace the test google codes with yours. You can put those codes anywhere in the themeheader function but I placed it under the globals like the example below.

The last part is to now add the variable [$ws_google_ads] in the header.html where you want the ads to be displayed. (Note: If you do not see a header.html then the codes for the header is within that same themeheader function.). Open themes/YOURTHEME/header.html and add the variable anywhere you want the google ads to be shown. I added mine at the top of the codes like this.

That's it!! Save both files and you should now see your google ads in the header of your phpnuke portal.

For more help please visit the forums!


Hire Us!Download Video(0)Comments