PDA

View Full Version : Ads beteen posts in News Module


rluna559
05-27-2006, 09:51 PM
Hello,
I would like to be able to have a google ad between the first and second news post in my news module on my cmps index page. Does anyone know how I could do this?

Thanks

thejaxx
06-18-2006, 08:35 AM
I would be interested in this as well. But not for google ads, just ads in general dealing with in game companies.

Our Sponsors
 

hitmanuk2k
10-27-2006, 05:04 AM
Bump.

Anyone?

Brian
10-27-2006, 11:39 AM
Just add something like this to your adv_portal_newsbits template:

<if condition="$newscount == 1 OR $newscount == 2">
Banner code here
</if>

Our Sponsors
 

caliman
11-03-2009, 11:47 AM
Thanks for this Brian. If I wanted to have an ad after every 2 news stories, how would I do that?

Brian
11-03-2009, 11:54 AM
<if condition="!($newscount % 2)">

caliman
11-03-2009, 12:16 PM
Thank you!

caliman
11-26-2009, 11:41 PM
Hi Brian -
If I wanted to add something just after the 1st story would I do it like this?
<if condition="($newscount > 1)">

Brian
11-27-2009, 01:21 PM
If you only want it shown after the first news post then you would want to use "$newscount == 1".

caliman
11-27-2009, 03:06 PM
Ahhh. I see now that the other would repeat a lot. Thanks!