你早該貼這一份出來的...
to lss,我貼完之後的內容如下:
{include file="$blogtemplate/header.template"}
<div id="Content">
<table border="0" align="center" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
{include file="$blogtemplate/main_left.template"}
</td>
<td id="Main" valign="top">
<!-- ######### Template:: Page original contents ######### -->
{if $showAll}
{if $stickyposts->isEnabled()}
<h2>Sticky Posts</h2>
{assign var=stickys value=$stickyposts->getArticles('sticky')}
{foreach from=$stickys item=post}
<h2 class="title"><a href="{$url->postPermalink($post)}">{$post->getTopic()}</a></h2>
{/foreach}
{assign var=stickyCategory value=$stickyposts->getCategory('sticky')}
<h4><a href="{$url->categoryLink($stickyCategory)}">more sticky posts</a></h4>
<h2>Announce Posts</h2>
{assign var=stickys value=$stickyposts->getArticles('announce')}
{foreach from=$stickys item=post}
<h2 class="title"><a href="{$url->postPermalink($post)}">{$post->getTopic()}</a></h2>
{/foreach}
{assign var=announceCategory value=$stickyposts->getCategory('announce')}
<h4><a href="{$url->categoryLink($announceCategory)}">more announce posts</a></h4>
{/if}
{if $showAll}
上面最後一行這個 {if $showAll} 應該是多餘的吧。
一個{if $showAll}配一個{/if}來close就好了
你後面又多加了一個{if $showAll},所以錯誤訊息裡才會說你又少了一個{/if}來做close的動作
還有,被{if $showAll}{/if}包起來的東西是「不在首頁的時候」會顯示的
如果你要「只在首頁顯示」要改一下,
請翻閱
http://forum.lifetype.org.tw/index.php?topic=657.0