Member
Member
cqboy2003   2010-08-28, 17:45
#1

for example,my index has 4 rows albums ,I want insert ad between two rows albums?

Administrator
Administrator
acrylian   2010-08-28, 17:56
#2

Count the albums within the next_album loop and insert the ad after the 2nd album.

Member
Member
cqboy2003   2010-08-29, 04:11
#3

thank you,but what's the php code?

Administrator
Administrator
acrylian   2010-08-29, 08:12
#4

Set a variable like $count=''; before the loop and then put ´$count++;` within the loop. Then check if $count is 2 and put out your ad. That's it.

This is really basic php basics. You should really consider learn a few things, there are a lot places on the web to do so.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.