Hi I have some problems inserting a googlelAd into the header of my Hemingway theme...
The ad is required by my host, and if i put the banner in one of the top menus, it screws up the layout somehow... Si I'd like to put the ad on top of the three top menus...
Another weird thing is that i can't insert the ad code without either getting T_STRING errors or nothing at all.. so a little help with that also would be appreciated!
<!--
ads by exstreamhost
start -->
<script language='
JavaScript' type='
text/javascript'
src='http://
exstreamhost.com/
ads/adx.js'></
script>
<script language='
JavaScript' type='
text/javascript'>
<!--
if (!
document.phpAds_used
)
document.phpAds_use
d = ',';
phpAds_random = n
ew String (Math.rand
om());
phpAds_random = php
Ads_random.substring
(2,11);
I went through the entire code, removing all weird characters that somehow got in there, and pasted it into a file called adsense.php and placed that file in my e107_images/banners folder.
After that i just enabled that file as a banner image in the admin section and HEY PRESTO! There it was! And since the ad-code resides in it's very own php-file there's no need to escape(\) or change any quotes...
Note that the Hemingway theme had no {BANNER} shortcodes, so those had to be added for each of the layouts for the banner image to work.
Thanx for all help I received here, (and elsewhere) it was much appreciated!