Dear s9009013
因為每一版內容有少許變動,可能參數有改動,或許是php版本問題(我自己想的),如果原來的summary註冊連結可用,將它移植過來最安全,只要留上下的template檔即可,我的registerstep2.template 模版檔案內容變成這樣:
{include file="summary/header.template" section=$locale->tr("register_step2_title")}<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="36"> <a href="">{$locale->tr("summary")}</a> → 用戶註冊 → {$locale->tr("step2")}</td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#E5E3E3">
<form name="createBlog" action="register.php" method="post">
<tr bgcolor="#7EA2E4">
<td colspan="2">{$locale->tr("step2")}</td>
</tr>
<fieldset class="inputField">
<legend>{$locale->tr("step2")}</legend>
{include file="summary/formvalidate.template" message=$locale->tr("error_adding_blog")}
<div class="field">
<label for="blogName">{$locale->tr("name")}</label>
<div class="formHelp">{$locale->tr("register_blog_name_help")}</div>
<input type="text" name="blogName" value="{$blogName}" id="blogName" size="40" />
{include file="summary/validate.template" field=blogName message=$locale->tr("error_invalid_blog_name")}
</div>
{if $blogDomainsEnabled}
<div class="field">
<label for="blogSubDomain">{$locale->tr("domain")}</label>
<div class="formHelp">{$locale->tr("register_blog_domain_help")}.</div>
<input type="text" name="blogSubDomain" id="blogSubDomain" value="{$blogSubDomain}" size="12" />
<select name="blogMainDomain" id="blogMainDomain">
{foreach from=$blogAvailableDomains item=domain}
<option value="{$domain}" {if $domain == $blogMainDomain}selected{/if}>
{if $domain == "?"}
{$locale->tr("subdomains_any_domain")}
{else}
.{$domain}
{/if}
</option>
{/foreach}
</select>
{include file="summary/validate.template" field=blogSubDomain message=$locale->tr("error_invalid_subdomain")}
{include file="summary/validate.template" field=blogMainDomain message=$locale->tr("error_invalid_domain")}
</div>
{/if}
<div class="field">
<label for="blogCategoryId">{$locale->tr("blog_category")}</label>
<div class="formHelp">{$locale->tr("blog_category_help")}</div>
<select name="blogCategoryId" id="blogCategoryId">
{foreach name=blogCategories from=$blogCategories item=blogCategory}
<option value="{$blogCategory->getId()}"{if $smarty.foreach.blogCategories.first} selected{/if}>{$blogCategory->getName()}</option>
{/foreach}
</select>
</div>
<div class="field">
<label for="blogLocale">{$locale->tr("language")}</label>
<div class="formHelp">{$locale->tr("blog_language_help")}</div>
<select name="blogLocale" id="blogLocale">
{foreach from=$locales item=localeObject}
<option value="{$localeObject->getLocaleCode()}" {if $defaultLocale == $localeObject->getLocaleCode()}selected="selected"{/if}>{$localeObject->getDescription()}</option>
{/foreach}
</select>
</div>
</fieldset>
<td colspan="2" align="center" bgcolor="#F7F7F7">
<div class="buttons">
<input type="submit" name="{$locale->tr("register_next")}" value="{$locale->tr("register_next")} »"/>
</div>
</td>
</form>
</table>
{include file="summary/footer.template"}
貼的落落長
這樣做應該較能確保註冊後的網誌不會衍生其它未知的問題
建議您在這樣做前先備份至少/templates/summary目錄一定要
因為有時網誌會莫名其妙變成空白一片(其實是自己的錯,因為並未完全認識LifeType)