View Full Version : Show an adsense ad below every news post?
gsurface
12-07-2005, 10:47 PM
I want to show an Adsense ad below every news post. I tried editing adv_portal_newsbits and though adding the Adsense code into that template worked by showing an ad below each news post, it showed an Ad also above the first news post. So ads were being showed above each news post instead of below. Anyone know which template I would ad the Adsense code to to show an Ad BELOW every news post? Cheers.
Brian
12-08-2005, 05:40 PM
You would need to edit your adv_portal_module_shell template and add an <if condition> that looks something like this:
<if condition="$mods['identifier'] == 'news'">
Adsense code here
</if>
karabalsagun
03-25-2007, 06:10 PM
Thanks Brian, I've setup this perfectly.
here is another question, how can I limit it to show only one ad.
In forum I can simply use $postcount == 1, but what about this?
Thank you :)
Brian
03-26-2007, 02:22 PM
You would need to use "$newscount == 1" for the news module.
karabalsagun
03-26-2007, 02:35 PM
Thank you again and again :)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.