Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Google AdSense: Interresting information
  • Posted: 02.07.2006, 17:53
     
    ZarToXidE
    rank:
    Helper Helper
    registered:
     January 2005
    Status:
    offline
    last visit:
    09.02.08
    Posts:
    455
    I stumbled on a link on Google's AdSense help pages: Click

    Since the modules are PN's content system, and blocks not really are helpfull when the mediabot spiders a site, you can use tags too tell the mediabot on which content it should deliver ads.

    I often noticed some ads were placed on my site for words that are in the side blocks, which doesn't have anything to do with the article that is viewing.

    Wasn't sure where to put this, it might be interresting for module-authors such as forums, to exclude usernames, signatures and such. But could be interresting for template-designers, since i edited all my templates to use this function.

    --
    Doe Maar Freak
  • Posted: 02.07.2006, 18:24
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    Interesting...

    To get google adsense to only look at the output from the module, ignoring any blocks, in a Xanthia theme update your page templates (master.htm, home.htm etc.) with the following code

    Code

    <!-- google_ad_section_start -->
    <!--[$maincontent]-->
    <!-- google_ad_section_end -->


    -Mark
  • Posted: 02.07.2006, 18:39
     
    ZarToXidE
    rank:
    Helper Helper
    registered:
     January 2005
    Status:
    offline
    last visit:
    09.02.08
    Posts:
    455
    I allready edited all my templates files for the theme I'm using. The only thing I don't get is the (weight=ignore). Why should there be an ignore, if you can define where to start, and where to end?

    --
    Doe Maar Freak
  • Posted: 02.07.2006, 18:59
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    I posted the template addition for others reading the thread.

    The way I read the ignore option is that you'd use one or the other but not both. The first option is to look at one part of page ignoring the rest (in our case the module output). The second option is to exclude one part of a page including the rest.

    -Mark

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula