Adding GAD between ads in cats

Discussion in 'Customizations' started by EnergyFreak, Apr 26, 2010.

  1. EnergyFreak Customer

    Hey,

    Does anyone know how we add google adsense in between every 5 ads for example in each category? I remember that I was able to accomplish this on the last script I had. It turned out to be pretty good for business.

    Thanks.
  2. Eric Barnes Guest

    You can use something like this in the showlisting loop:
    Code:
    [COLOR=#000000]{if $smarty.foreach.foo.index % 5 == 0}
         ad code
    {/if}
    
    More information please see: Smarty
    [/COLOR]
  3. EnergyFreak Customer

    Where do I add this code in showlistings.tpl?

Share This Page