1
elveru
Problem with google adsense
  • 2007/2/26 8:47

  • elveru

  • Just popping in

  • Posts: 29

  • Since: 2006/11/8


Hello!

I'm trying to insert the code of google adsense in a block, I only paste the code but in the preview makes an error in the bottom of page:
");win.document.writeln("");win.document.writeln("");win.document.writeln("");win.document.writeln(""); win.focus(); win.document.close(); //-->

This is with "html" and "auto format" mode, but with "php" the block is empty, only with the title.

The code I insert is:







I'm using XOOPS 2.0.15.

Somebody can help me? Thanks a lot!!

2
MadFish
Re: Problem with google adsense
  • 2007/2/26 9:02

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


You should have the block set as HTML only. Do you get this error if you submit the block, or only with the preview?

3
DarinAllan
Re: Problem with google adsense

Just a question, the code you pasted above, isn't the full code is it, eg. the code you paste in the block should have a bit more to it.

Have you shortened the code for posting in this forum or is that code above the actual code you are pasting in the block.

Sorry just wanted to clarify because adsense works fine for me using the html option. When I create the same sized ad as you have it has a few more lines to it, this is why I wanted to clarify.

Cheers ;o)

4
DarinAllan
Re: Problem with google adsense

edit: double post, nothing to see here ;o)

5
elveru
Re: Problem with google adsense
  • 2007/2/26 9:13

  • elveru

  • Just popping in

  • Posts: 29

  • Since: 2006/11/8


This is all the code from google adsense. I only cut & paste.
And if submit the block not show error, but not show the block in the page.

Help!


Thanks!

6
DarinAllan
Re: Problem with google adsense

Ok maybe the ads I create are longer because of "custom pallettes" they show link, text, url, border and background colours in the code.

I can't remember what the default google ad pallette looks like, maybe that code is the default code?

My code has these extra lines

google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";

Cheers ;o)

7
MadFish
Re: Problem with google adsense
  • 2007/2/26 9:36

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


Quote:
And if submit the block not show error, but not show the block in the page.


Hmmm...have you checked that your custom block is set to display on your home page, and also have you set the group permissions so that anonymous users can see it?

8
elveru
Re: Problem with google adsense
  • 2007/2/26 10:57

  • elveru

  • Just popping in

  • Posts: 29

  • Since: 2006/11/8


Now works fine!

The problem was i put the block "center-rigth". Now i put it "center-center" and it works fine.

Lot of Thanks!!

Login

Who's Online

143 user(s) are online (42 user(s) are browsing Support Forums)


Members: 0


Guests: 143


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits