1
Zap_English
Xoops Banners and Google Adsense

XOOPS Version XOOPS 2.5.7.2
PHP Version 5.4.45
mySQL Version 5.5.50
xbootstrap theme

I have several banners on my site and I wanted to add Google Adsense

I created the client "Google"

I added the banner and set the content to html, and nothing shows.

How can I get the xoops banner system to work with adsense?

Quote:



style="display:block"
data-ad-client="ca-pub-xxxxx"
data-ad-slot="xxxxx"
data-ad-format="auto">




Maybe Google Adsense should be a built in feature of Xoops future versions

2
Mamba
Re: Xoops Banners and Google Adsense
  • 2016/6/7 13:03

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


To use GoogleAds in XOOPS, place the Google code in a block, and select HTML as type of block.

However, I never tried to use the banner system for that, for different clients, interesting idea...
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
Zap_English
Re: Xoops Banners and Google Adsense

Setting it in a block won't work if you're using the xoops banner system. The banner is built into xbootstrap

The banner system has the option "Use HTML code?"

So why does it work in a block but not in the core?

Things like being able to use adsense, OGP and multiple system languages should really be inherent in the core. They're all basic requirements in any website these days

4
Runeher
Re: Xoops Banners and Google Adsense
  • 2016/6/8 14:31

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


I have no problem using adsense via the banner system...

5
Mamba
Re: Xoops Banners and Google Adsense
  • 2016/6/8 17:31

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
I have no problem using adsense via the banner system...

I hope, you can help him to get this done, as he wants it...
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

6
Runeher
Re: Xoops Banners and Google Adsense
  • 2016/6/8 20:27

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


I would if I knew what the problem is, but as I said it works well on all my sites, using both the Bootstrap theme and other themes. Never had any problems with it.

7
Zap_English
Re: Xoops Banners and Google Adsense

I just get a blank space when it cycles to a google ad

8
Runeher
Re: Xoops Banners and Google Adsense
  • 2016/6/13 14:06

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


Can you post a link to your site?

9
Zap_English
Re: Xoops Banners and Google Adsense


10
Runeher
Re: Xoops Banners and Google Adsense
  • 2016/6/13 18:31

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


From the source code it seems your adsense code is not configured correctly. This is what it should look like in the banner system:



style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-xxxxxxxxxxxx"
data-ad-slot="xxxxxx">



Notice:

style="display:inline-block;width:468px;height:60px"

Login

Who's Online

311 user(s) are online (179 user(s) are browsing Support Forums)


Members: 0


Guests: 311


more...

Donat-O-Meter

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

Latest GitHub Commits