為你的 pLog 加入個人資料顯示
| 七月 20, 2005 | 沒有迴響| 沒有引用| 2463 reads | Size: L, M, S | Edit: P, C, R || Category: LifeType. |
管理介面裡面有一個可以設定個人資料的地方,不過應該沒人看過顯示吧,只要在你的個人模板加入以下語法即可。
在你想要加入的地方,加入以下語法:
{assign var=blogOwner value=$blog->getOwnerInfo()}
{if $blogOwner->getfullName()==""}
Blogger:{$blogOwner->getUsername()}<br/>
{else}
Blogger:{$blogOwner->getfullName()}<br/>
{/if}
{if $blogOwner->hasPicture()}
{assign var=picture value=$blogOwner->getPicture()}
<img xsrc="{$url->resourcePreviewLink($picture)}" title="{$blogOwner->getUsername()}" /><br>
{/if}
{if $blogOwner->getfullName()!=""}
About:{$blogOwner->getAboutMyself()}
{/if}
並且參考你的其他區塊的標題加入適當的標題語法,例如:
<h2>標題</h2>
<ul>
{assign var=blogOwner value=$blog->getOwnerInfo()}
{if $blogOwner->getfullName()==""}
Blogger:{$blogOwner->getUsername()}<br/>
{else}
Blogger:{$blogOwner->getfullName()}<br/>
{/if}
{if $blogOwner->hasPicture()}
{assign var=picture value=$blogOwner->getPicture()}
<img xsrc="{$url->resourcePreviewLink($picture)}" title="{$blogOwner->getUsername()}" /><br>
{/if}
{if $blogOwner->getfullName()!=""}
About:{$blogOwner->getAboutMyself()}
{/if}</ul>
接著到你的首頁看看,應該出現了你設定的照片、你的暱稱、還有你個人介紹。
隨機文章:
» 為你的 pLog 加入「最新評論」和「熱門文章」及「最新引用」顯示
» 給我個私人的部落格
» 將每月彙整改成下拉選單
» Lifetype 自訂模板
» 讓 pLog 顯示部落格資料

