Adsense problem solved may be of help to Newbies
Posted: Mon Mar 17, 2008 4:16 pm
I could not get the CMSMS {Adsense} tag to work as described in help files and in the forum on my site (v1.2.3 "Black Rock") using the code provided by Google. I spent a lot of time playing around with the script provided by Google within the {Adsense} tag. May be something related to the use of two javascript functions in the script provided by Google Adsense.
In the end I created my own User Defined Tag (UDT) by placing the script exactly as provided by Google within an echo function:
echo ' the javascript provided by Google in here ';
see below for formatting.
Note need to start and end the echo function with quotes character ( ' ) and follow the end quotes character with semi colon ( ; )
echo '
';
Note: [src="http://...... changed to src="hXXp://...... to avoid creating clickable link in this forum]
Once you have saved your UDT you can call it in templates or in page content blocks as usual {my UDT} .
I hope this helps those of you who have also had problems with the {Adsense} tag
www.accountswizard.co.uk
In the end I created my own User Defined Tag (UDT) by placing the script exactly as provided by Google within an echo function:
echo ' the javascript provided by Google in here ';
see below for formatting.
Note need to start and end the echo function with quotes character ( ' ) and follow the end quotes character with semi colon ( ; )
echo '
';
Note: [src="http://...... changed to src="hXXp://...... to avoid creating clickable link in this forum]
Once you have saved your UDT you can call it in templates or in page content blocks as usual {my UDT} .
I hope this helps those of you who have also had problems with the {Adsense} tag
www.accountswizard.co.uk