View Single Post
  #3  
Old 10-25-2005, 04:17 PM
Lizard King's Avatar
Lizard King Lizard King is offline
Senior Member
 
Join Date: Oct 2005
Location: Istanbul
Posts: 555
Geek Article and Review System License Holder Geek Gazette License Holder 
Default

I am not sure if it is totally the correct way to do but i prepared the template but how can put a <tr> after every 3 threadbits ?
This is the template i got
PHP Code:
<td class="alt1">
<
div>
<
table cellpadding="0" class="alt2" align="center" cellspacing="0" width="200">
<
tr>
    <
td class="tcat" id="t$thread[threadid]" title="$thread[preview]" align="center" valign="top" width="100%" style="padding: 5px">
    <
a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>
    </
td>
</
tr>
</
table>
<
table cellpadding="0" class="alt2" cellspacing="0" border="0" width="200">
    <
tr>
        <
td class="alt2" align="center" valign="top" style="padding: 5px;" >
        <if 
condition="$show['GARS_attach_as_header_image']">
        <if 
condition="$thread['attachid']">
                <
a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><img src="attachment.php?attachmentid=$thread[attachid]&stc=1&thumb=1" border="0" style="border: 2px #000000;padding:2px;"></a>
        <else />
                <
a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><img src="$show[GARS_default_header_image]" border="0" style="border: 2px #000000;padding:2px;"></a>
        </if>
        <else />
        <if 
condition="$thread['header_image']">
                <
a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><img src="$thread[header_image]" border="0" style="border: 2px #000000;padding:2px;"></a>
        <else />
                <
a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><img src="$show[GARS_default_header_image]" border="0" style="border: 2px #000000;padding:2px;"></a>
        </if>
        </if>
        <
div class="smallfont">
        
$thread[synopsis]
        </
div>
        </
td>
    </
tr>
    <
tr>
        <
td class="alt2" align="center" valign="middle" style="padding: 5px;">
        <
div class="smallfont">
        <
span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">G&#246;nderen $thread[postusername]</span>
        
<br />
        
$vbphrase[GARS_last_activity$thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if>
        <
phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>  <a href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
        </
div>
        </
td>
    </
tr>
</
table>

</
div>

</
td
I am not sure if it is the best way to prepare this template also :P
Reply With Quote