1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

counter problem in Smarty

Discussion in 'Black Hat SEO' started by Paul1427, Jun 1, 2015.

  1. Paul1427

    Paul1427 Registered Member

    Joined:
    Mar 24, 2012
    Messages:
    88
    Likes Received:
    2
    Gender:
    Male
    Hi all. I use php melody on my site and i don't know how can i make 1 thing.

    I have this code to print on index 30 post
    Code:
    {get_advanced_video_list assignto="new_videos" limit="30"}  {foreach from=$new_videos key=k item=video_data}
    I need after 5 post to put a div ( <div class="thumb-holder"> )

    so there be:
    <div class="thumb-holder"> post 1 post 2 post 3 post 4 post 5</div>
    <div class="thumb-holder">post6 post7 post8 post9 post10</div>
    <div class="thumb-holder">post11 post12 post13 post14 post15</div>
    .........................
    <div class="thumb-holder">post26 post27 post28 post29 post30</div>

    I tried more things, but nothing. If you know please help.

    PS: Is a .tpl file so classic php doesn't work :((