I'm lost here guys. Does anyone have an idea why the code shows and not the ad? Health Bits I recently changed the template and had to redo a few things, as I expected. When I added the adsense code to the editor (which I did witht the last template) I just get the code in the top place. I've tried with the WYSIWYG editor on and off. It's a Joomla template by the way. Thanx, Marco ps: I am working on a personalized banner in Photoshop and will be changing it as soon as I'm done.
1. VALIDATE your pages !! http://validator.w3.org/check?uri=h...+automatically)&doctype=Inline&ss=1&verbose=1 start from TOP there you have html4.01 tags where xhtml tags sould be then look at the beginning of your adsense code it starts < hence that way it shows the CODE OREIGINAL G adsense code starts with < modifying code is against TOS may be google knows why
It got character encode by the CMS: <script type="text/javascript"><!- Code (markup):
Hans - I'll correct those issues that came up during the validation. Thanks for the tip. Also, I didn't change the code for the ad. As you suggested I'll contact google and see what they say. Tops30 - So Joomla added code to the ad? I still only see what I got from the ad generator at google: <script type="text/javascript"><!-- google_ad_client = "pub-****************"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; //--></script> <script type="text/javascript" xsrc="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Code (markup):
No, they didn't add anything, they encoded it. > becomes > so it is displayed literally, not as a tag.
Ah! I see what you mean... Do you know why and/or how to fix it? I've asked at the Joomla forum and have gotten no answers. It's funny that it worked for a few months but now it's all decoded.
Tops30 - So Joomla added code to the ad? I still only see what I got from the ad generator at google: <script type="text/javascript"><!-- google_ad_client = "pub-****************"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; //--></script> <script type="text/javascript" xsrc="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Code (markup): [/QUOTE] MrMarco teh code yoiu had displaqyed - was the code as seen in the browser but when showing SOURCE in the firefox you had the FIRST < displaqyed as < that mighht come from a wrong editor - wrong copy and past or using wysiwig where soiurce code mode would have beed needed. I don't know the software you use and where you have this adsense code let's assume you have it somewhere in a template file then just open that template file manually with a clean editor - even wordpad can do if you use XP replace the < by < or just copy and paste the full code again - in editor mode = NO wysiwig more !!! upload and it al should work fine if you copy and pase code into aq page while in wysiwig mode you nomrlally may get such display. always enter code in source code-editor mode - NEVER in wysiwig !! I see now you have all code removed ... its just a matter of a minute or so