Support Forums

Adding adsense in between ads in each category

This is a discussion on Adding adsense in between ads in each category within the Customizations forums, part of the Developer Forums category; Hey, I am wondering what would be the php needed to make an adsense ad appear after every 5 ads? ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

Reply
 
Thread Tools Display Modes
Old 10-25-2010, 09:30 PM   #1
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 206
Rep Power: 9
EnergyFreak is on a distinguished road
Default Adding adsense in between ads in each category

Hey,

I am wondering what would be the php needed to make an adsense ad appear after every 5 ads? I think I would need to put this in browse.tpl?

Thanks for any help.
EnergyFreak is offline   Reply With Quote
Old 10-26-2010, 12:23 AM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,136
Rep Power: 63
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

You already asked this question and it was answered (4/26/10)

Adding GAD between ads in cats
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-26-2010, 01:28 PM   #3
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 206
Rep Power: 9
EnergyFreak is on a distinguished road
Default

Yes indeed, i should of just replied to the thread. But do you have any idea before what or after what must I add this code that Eric gave me and in what file? browselistings.tpl or browse.tpl:

PHP Code:
{if $smarty.foreach.foo.index == 0}
     
ad code
{/if} 
EnergyFreak is offline   Reply With Quote
Old 10-26-2010, 03:02 PM   #4
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,136
Rep Power: 63
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Well, I haven't tried nor tested it, but I would certainly think that since it says in the code itself, "$smarty.foreach" I would say right after the foreach statement in the template. It also specifically says in Eric's answer to put it in the showlistings.tpl file.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-26-2010, 07:22 PM   #5
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 206
Rep Power: 9
EnergyFreak is on a distinguished road
Default

Okay this is a good start, I will give it a go.
EnergyFreak is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Subcats to category page (Browse) garysr Templates, HTML, CSS, and Design Help 2 06-08-2006 01:50 PM


All times are GMT -4. The time now is 08:12 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0