Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
filter.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2009 at 14:42 UTC
Updated:
20 Oct 2009 at 04:35 UTC
Hi, I have locally hosted ads running fine with this ad module, but tried to copy and paste a Google adsense Javascript code into the html and the google ads don't display. Also on trying to edit the node with the javascript code caused a white page and the browser to stall whilst loading the page. Tried changing the setting to Raw and got only a box saying "view count". I have filters for full html set. Would love to mix Google Adsense banners with locally hosted banners. Thanks
Comments
Comment #1
jeremy commentedI don't use AdSense, so I have no way to test. Patches welcome.
Comment #2
jeremy commentedPerhaps related:
#433404: Adsense problem
Comment #3
tjb74 commentedThe white page whilst trying to edit may well be a duplicate. The ads not showing is something else, and perhaps a javascript issue? I cannot create a normal page node and paste the adsense javascript and see the ads either, however using the Drupal adsense module works perfectly, with the ads showing in the blocks immediately. But I want to rotate adsense ads with my hosted ads using the ad module....
Comment #4
brazorf commentedI have the following problem; perhaps it will help find out more about the cause.
This is what i tried:
1. Create a HTML ad, using Filtered HTML input format, fill the textarea with the adsense code.
Result: ad wont show at all.
2. Create a HTML ad, using Full HTML input format, fill the textarea with the adsense code.
Result: ad wont show.
3. Create a HTML ad, using PHP code input format, fill the textarea with the adsense code.
Result: ad is correctly showing on the front page, but i cannot access the ad editing page anymore.
What is happening is that i get a full blank screen at the address http://localhost/node/10/edit?destination=admin/content/node.
Anyway, if BEFORE getting back to the editing page i do refresh the frontpage, allowing the ads to show themselves, when i go back to editing page its working again..for just one time. If i want to edit a second time i need to go front, refresh, then back again on edit.
Sometime another thing is happening aswell: edit page is opening, but in the HTML form tab i see nothing, neither i can open or close the tab, and every form control below (status combo boxes and other tabs) is not loaded on the page, it doesnt exists anymore. To make it show again i have to modify directly via database the textarea content, i.e. enclosing content in "
" "". In this case i can still edit the ad, but its not showing anymore.Hope this can help fix the matter.
Regards,
Fabrizio
Comment #5
ctalley5 commentedsame problem here
Comment #6
spookypld commentedI'd same problem.
I've got redirection or blank screen or Error:Invalid Address, no matter of HTML input or PHP.
What I've found is weird. Check this out:
If didn't noticed, that < symbol is replaced with HTML name
<I know similar issuewith Blogger. When I tried to inject AdSense code into Blogger posts I've found than nothing shows up. General solution was to change < > and " symbol with HTML name equivalent. I've done it and it worked.
Here we had something similar, but I can't mind why it worked that way.
I'm thinking of Why does AdSense code is like that. I'mean why comments are into
<script>?If You've got similar problem please review Your's site code and post it here!
Cheers.
p.s. sorry for my English grammar, I forget a lot since my school-years...
edit:
Know I far more concerned. I think this is Drupal issue, or maybe just input format issue. I've changed Default Input Format to PHP and know it is fine. Ads shows.
Comment #7
jenlamptonI'm having the same problem, but it's not related to google ads. This happens for any JavaScript add that has a html comment tag within the script tags. You can test with something like this:
and then view the source code when the ad is displayed.
Comment #8
jenlamptonFound the problem, it actually has nothing to do with Ad, it's a flaw in htmlcorrector filter. Patch here:
http://drupal.org/node/222926
Comment #9
jenlamptonwhoopsie.