Adsense problem solved may be of help to Newbies

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
gallowstree_merlin
New Member
New Member
Posts: 8
Joined: Fri Aug 11, 2006 6:59 pm

Adsense problem solved may be of help to Newbies

Post 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
.... as we know, there are known knowns; there are things we know we know.

We also know there are known unknowns; that is to say we know there are some things we do not know.

But there are also unknown unknowns - the ones we don't know we don't know.

DR 12 Feb 2002
WebGirl

SOLVED : Adsense problem solved may be of help to Newbies

Post 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 :)
Last edited by WebGirl on Thu May 22, 2008 11:10 pm, edited 1 time in total.
gallowstree_merlin
New Member
New Member
Posts: 8
Joined: Fri Aug 11, 2006 6:59 pm

Re: Adsense problem solved may be of help to Newbies

Post by gallowstree_merlin »

Great news.  I have not been following the posts recently since it is some time since it was posted.
.... as we know, there are known knowns; there are things we know we know.

We also know there are known unknowns; that is to say we know there are some things we do not know.

But there are also unknown unknowns - the ones we don't know we don't know.

DR 12 Feb 2002
Post Reply

Return to “Tips and Tricks”