這應該是你要的效果吧。
http://phys.idv.tw/plog/summary.php找到你的 summary 裡面的 recent.template
{foreach from=$posts item=post}
{include file="summary/post.template"}
{/foreach}
加上紅色字的部分:
{assign var="counter" value=1}
<table border="0" width="100%" id="table1" cellpadding="0" style="border-collapse: collapse">
{foreach from=$posts item=post}
{include file="summary/post.template"}
{assign var="counter" value="`$counter+1`"}
{/foreach}
</table>
然後找到 post.template,同樣也加上紅色字的部分吧
{assign var="blog" value=$post->getBlogInfo()}
{assign var="request" value=$blog->getBlogRequestGenerator()}
{if $counter%2!=0}
{if $counter%4==3}
<tr bgcolor="#F5F5F5">
{else}
<tr>
{/if}
<td valign="top">
{else}
<td valign="top" width="50%">
{/if}
<h5>{$post->getTopic()|strip_tags}</h5>
<div class="subtitle">
{$locale->tr("blog")} <a href="{$request->postPermalink($post)}">{$blog->getBlog()}</a>
</div>
<p>
{$post->getText()|strip_tags|truncate:200:"..."}
</p>
<div class="peu">
{assign var="postCategories" value=$post->getCategories()}
{assign var="postOwner" value=$post->getUserInfo()}
{assign var="postDate" value=$post->getDateObject()}
<a href="{$request->postPermalink($post)}" class="noborder">
<img src="imgs/post.png" width="10" height="11" alt="Permalink" />
</a>
{$locale->tr("posted_by")} {$postOwner->getUsername()}, {$locale->formatDate($postDate,"%e %B %Y")} |
<img src="imgs/comment.png" width="11" height="10" alt="{$locale->tr("comments")}" />
<a href="{$request->postPermalink($post)}#comments">{if $post->getTotalComments() eq 0}{$locale->tr("comment on this")}{else}{$post->getTotalComments()} {$locale->tr("comments")|capitalize}{/if}</a>
<br style="clear: both;" />
</div>
</td>
{if $counter%2==0}
</tr>
{/if}
這樣應該就OK了吧。