顯示具有 lifetype 標籤的文章。 顯示所有文章
顯示具有 lifetype 標籤的文章。 顯示所有文章

2009年7月1日 星期三

tinymce 新增字型


要在編輯文章時可以設定不同字型...
修改  /js/tinymce/themes/advanced/editor_template.js
var nFonts='標楷體=標楷體,Andale Mono=andale mono,....

這樣就可以了....



2009年6月25日 星期四

修改全域設定

安裝完迴響表情圖示後,發表迴響時可以看的到
可是發表後會被濾掉,表情圖示出不來,,.
原來要到,...
管理介面中->全域站台管控->全域設定->一般設定->(在發表迴響評論時可以使用的HTML語法標籤。)
加入<a><i><br><br/><b><em><strong><img><u><strike><blockquote>
這樣迴響表情就可以出來了



2009年6月19日 星期五

新增表情圖示

下載 emotions.zip 檔案..
解開後 全部上傳到
web根目錄中/js/tinymce/plugins/emotions
蓋過原來的所有檔案...

images中各目錄中的所有圖檔均改成 chmod 644 *.*

管理介面中啟動表情圖示....

參考 阿欣的-新增張君雅小妹妹表情圖示



新增模版「FallingLeaves-randombanner」

下載模版檔案FallingLeaves-randombanner.zip
直接透過lifetype 管理介面新增模版...
image中的banner 可以換成29張部同輪播的banner照片
把他改成  960X300





2008年10月7日 星期二

顯示recent posts 文章

lifetype 模版修改..

將以下貼到 footer.template 中 或是panel.template中

<div class="sidetitle">
Recent posts</div>
<div class="side">
<ul>
{foreach from=$recentposts item=recentpost}
<li><a title="{$recentpost->getText()|truncate:100:"..."|strip_tags|escape}" href="{$url->postLink($recentpost)}">{$recentpost->getTopic()}</a></li>
{/foreach}
</ul>

</div>

就可以了




2008年9月18日 星期四

footer.template 模版修正最新迴響 tag問題

</div>
</div>

<div id="links">

<div class="side-log" align="center">

<a href="http://jam.fyjh.tpc.edu.tw/lifetype/admin.php">*登入-- 管理*</a><br/>

<a href="http://teacher.fyjh.tpc.edu.tw/~jam/gallery/" target=_blank>橘子工廠-相簿</a><br />
文章總數:{$blog->getTotalPosts()}<br />迴響總數:{$blog->getTotalComments()}
</div>
<a href="http://jas9.blogspot.com/2007/07/blog-post_9075.html" target="_blank"><img src="http://www.jas9.com/Jas9Taipei/images/Anti-Parrot-badge200x80.png" alt="網摘、引用、連結,不轉載" width="200" height="80" border="0"/></a>
<div class="sidetitle-comment">Recent Comments <br /></div>
<div class="side-comment">
{if $recentcomments->isEnabled()}
{assign var=comments value=$recentcomments->getRecentComments()}

{foreach from=$comments item=comment}
{assign var=commentpostid value=$comment->getArticleId()}
{assign var=commentpost value=$recentcomments->getArticle($commentpostid)}<img src="http://jam.fyjh.tpc.edu.tw/lifetype/imgs/comment_icon1.gif"> - <a title="View comments by {$comment->getUsername()}" href="{$url->postPermalink($commentpost)}#{$comment->getId()}"><b>{$comment->getUsername()}:</b>{$comment->getText()|truncate:100:"..."|strip_tags|regex_replace:"/http:[^ ]+/":"[link]"}</a><br />
{/foreach}

{/if}
</div>


{assign var=blogOwner value=$blog->getOwnerInfo()}
{assign var=AboutMyself value=$blogOwner->getAboutMyself()}
{if $blogOwner->hasPicture() && $AboutMyself}
<div class="sidetitle">{$locale->tr("about_myself")}</div>
<div class="side">
<ul>
{assign var=picture value=$blogOwner->getPicture()}
<li><img id="UserPicture" src="{$picture->getPreviewLink()}" alt="{$blogOwner->getUsername()}" /></li>
<li>{$AboutMyself}</li>
</ul>
</div>
{/if}
<div class="sidetitle">{$locale->tr("calendar")}</div>
<div class="sidecal">{$calendar}</div>

<div class="sidetitle">{$locale->tr("archives")}</div>
<div class="side">
<p>
<ul>
{foreach from=$archives item=archive}
<li><a href="{$archive->getUrl()}">{$archive->getName()}</a></li>
{/foreach}
</ul>
</p>
</div>

<div class="sidetitle">{$locale->tr("categories")}</div>
<div class="side">
<p>
<ul>
{foreach from=$articlecategories item=category}
<li><a href="{$url->categoryLink($category)}">{$category->getName()}</a></li>
{/foreach}
</ul>
</p>
</div>
<div class="sidetitle">
~推薦網誌~</div>
<div class="side">
對民宿旅遊有興趣的朋友,一定要來這裡看看<br />
<a target="new" href="http://www.wretch.cc/blog/playplay365/13063473">
<img border="" src="http://f5.wretch.yimg.com/playplay365/1/1909723870.jpg"></a><br />

</div>
<div class="sidetitle">{$locale->tr("links")}</div>
<div class="side">
<p>
<ul>
{foreach from=$mylinkscategories item=linkcategory}
<li><b>{$linkcategory->getName()}</b>
<ul>
{foreach from=$linkcategory->getLinks() item=link}
<li><a href="{$link->getUrl()}" title="{$link->getDescription()}">{$link->getName()}</a></li>
{/foreach}
</ul>
</li>
{/foreach}
</ul>
</p>
</div>

<div class="sidetitle-url">~好友聯播~<a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=RSS_URL_HERE"><br /><img runat="server" src="http://www.newsgator.com/images/ngsub1.gif" alt="Subscribe in NewsGator Online" border="0" /></a>

</div>
<div class="side-url">
<script src="http://64.78.155.106/ngws/headlines.aspx?uid=43155&mid=4"></script></div>
<div class="sidetitle">{$locale->tr("menu")}</div>
<div class="side">
<ul>
<p>
<li><a href="{$url->blogLink()}">{$locale->tr("main")}</a></li>
<li><a href="{$url->albumLink()}">{$locale->tr("albums")}</a></li>
</ul>
</p>
</div>

<div class="sidetitle">{$locale->tr("syndicate")}</div>
<div class="side">
<ul>
<p>
<li><a class="nodecoration" title="Link to the RSS 0.90 feed." href="{$url->rssLink("rss090")}"><img src="{$url->getUrl("/imgs/rss090_logo.gif")}" style="border:0px;" alt="RSS 0.90" /></a></li>
<li><a class="nodecoration" title="Link to the RSS 1.0 feed." href="{$url->rssLink("rss10")}"><img src="{$url->getUrl("/imgs/rss10_logo.gif")}" style="border:0px;" alt="RSS 1.0" /></a></li>
<li><a class="nodecoration" title="Link to the RSS 2.0 feed." href="{$url->rssLink("rss20")}"><img src="{$url->getUrl("/imgs/rss20_logo.gif")}" style="border:0px;" alt="RSS 2.0" /></a></li>
<li><a class="nodecoration" title="Link to the Atom 0.3 feed." href="{$url->rssLink("atom")}"><img src="{$url->getUrl("/imgs/atom_logo.png")}" style="border:0px;" alt="Atom 0.3" /></a></li>
<li><a class="nodecoration" title="Link to the Atom 0.3 feed." href="http://jam.fyjh.tpc.edu.tw/lifetype/rss.php?blogId=1&profile=rss20comments"><img src="http://jam.fyjh.tpc.edu.tw/~jam/pic/rsscomment.png" style="border:0px;" alt="RssComments" /></a></li>
</p>
</div>
<div class="powered">
Powered by <a href="LifeTypehttp://www.lifetype.net">LifeType</a><br />
</div>

</div>
</body>
</html>



postandcomments.template 修正迴響tag

lifetype - 修正迴響 tag 問題

在 postandcomments.template 模版中

加入{$comment->getId()}"



{include file="$blogtemplate/header.template"}
{assign var="poster" value=$post->getUserInfo()}
{assign var="postDate" value=$post->getDateObject()}
<h2 class="date">{$locale->formatDate($postDate, "%A, %B %d, %Y")}</h2>
<div class="blogbody">
<!-- {$url->postTrackbackLink($post)} -->
<p>{include file="$blogtemplate/post.template"}</p>
{pager style="links"}
</div>
{foreach from=$comments item=comment}

<div class="blogbody-com">
<p class="com-title">
<a name="{$comment->getId()}"></a>  <img src="{$url->getUrl("/imgs/comment_icon1.gif")}"/> {$comment->getTopic()} <span class="categoryinfo">[<a href="{$url->replyCommentLink($post,$comment)}">{$locale->tr("reply")}</a>]</span>
</p>

{if $comment->IsPosterAuthenticated()}
{assign var=poster value=$comment->getUser()}
{if $poster->hasPicture()}
{assign var=posterimg value=$poster->getPicture()}
<img src="{$posterimg->getPreviewLink()}" alt="{$poster->getUserName()}" align="right" class="poster_avatar"/>
{/if}
{/if}
{$comment->gettext()}
<div class="posted">
{assign var="commentDate" value=$comment->getTimestamp()}
Comment by
{if $comment->getUserUrl() != "" }
<a href="{$comment->getUserUrl()}">{$comment->getUsername()}</a>
{else}
{$comment->getUsername()}
{/if}
({$locale->formatDate($commentDate, "%m/%d/%Y %H:%M")})</div></div>
{/foreach}
{if $post->getCommentsEnabled()}
<p>
<div style="padding-left: 20px">
<h3>{$locale->tr("add_comment")}</h3>
{include file="$blogtemplate/commentform.template"}
</div>
</p>
{/if}
{include file="$blogtemplate/footer.template"}


2008年9月9日 星期二

commentform.template 設定

迴響的模版 commentform.template 放在

/usr/local/www/apache22/data/lifetype/templates/default/下

找到下面....加入value="Re:{$post->getTopic()}"

<input tabindex="1" id="subject" name="commentTopic" value="Re:{$post->getTopic()}" >

如此一來,就會預設出現 Re: 文章標題