Page 1 of 1

Adsense problem solved may be of help to Newbies

Posted: Mon Mar 17, 2008 4:16 pm
by gallowstree_merlin
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

SOLVED : Adsense problem solved may be of help to Newbies

Posted: Thu May 22, 2008 10:21 pm
by WebGirl
Hi there gallowstree_merlin,

I tried your technique but alas it doesn't work for me  :(

I have no idea why ... (pps - ignore name of UDT :) - I was going to use 125 wide, then went with 468 for this example

Image

I then used the tag {google-125w} in my cmsms page but nothing appears - either on the live page OR in the html of the live page.

Any ideas?

=== SOLVED! ===

I totally forgot that CMSMS doesn't like DASHES/HYPHENS in UDT, so when I changed it to an underscore, it worked :)

Re: Adsense problem solved may be of help to Newbies

Posted: Sun Jun 08, 2008 4:12 pm
by gallowstree_merlin
Great news.  I have not been following the posts recently since it is some time since it was posted.