MyBB Community Forums

Full Version: Display threads in the next line in threadlist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry for making a new thread as my query has changed.

I have somehow displayed threads as grids in the threadlist. But i am not able to display threads after 6 or 7 threads in the next line like this site

http://www.pogama.com/


My forum link

http://bit.ly/1E9A6dK

My forumdisplay_thread code

<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><if $fid == '4' or $fid == '5' or $fid == '6' then><a href="{$thread['threadlink']}"><img class="prodimage" src="{$GLOBALS['threadfields']['image']}"  width="150" height="110" /></a></if>	<div>
          <span>{$prefix} <span style="background-color:red;border-radius:5px;color:white;font-weight:bold">{$GLOBALS['threadfields']['tag']}</span>  {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><a href="{$thread['threadlink']}">{$thread['subject']}</a></span>{$thread['multipage']}</span>
   <if $fid == '4' or $fid == '5' or $fid == '6' then>    <div style="color: #ff0000">{$GLOBALS['threadfields']['comments']}</div>     <br> 





  COUPON - "{$GLOBALS['threadfields']['coupon']}" <br><br>
         <span style="background-color:black;border-radius:5px;color:white;font-weight:bold"><a href="{$GLOBALS['threadfields']['dealurl']}"target="_blank"> SHOP NOW </a></span> 
    <br> <a href="{$forumurl_q}filtertf_store={$GLOBALS['threadfields']['store']}">{$GLOBALS['threadfields']['store']}</a> <br><a href="{$forumurl_q}filtertf_department={$GLOBALS['threadfields']['department']}">{$GLOBALS['threadfields']['department']}</a>
        </if>
		</div> 
  <div class="author smalltext">Posted by - {$thread['profilelink']}</div>
		<span class="lastpost smalltext">{$lastpostdate}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>

  </td>
	      {$modbit}