</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>
2008年9月18日 星期四
footer.template 模版修正最新迴響 tag問題
<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="LifeType
http://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月16日 星期二
ostube 修正中文tag問題
原文-http://163.21.22.6/plog/post/1/378
修正中文無法作為標籤(tag)問題,tag請選css
將ostube/include/class.mediainformation.php中的function setTagsRaw($mid, $tags_raw)
由下方程式完全取代,約在961行左右:
function setTagsRaw($mid, $tags_raw){
$array = array();
$tags = array();
$pattern="#^\s*([^,\s]+)\s*$|^\s*([^,\s]+)\s*,|\s*([^,\s]+)\s*,|\s*([^,\s]+)\s*$#msi";
preg_match_all($pattern, $tags_raw, $array);
$tags = array();
each($array);
while(list($key, $arrayx) = each($array)){
while(list($key, $val) = each($arrayx)){
$tag = trim($val);
if(!empty($tag)) {
if(!in_array($tag, $tags)) {$tags[]=$tag; }
}
}
}
$this -> setTags($mid, $tags);
}
修正過後可以加入中文的tag 名稱,..可是tagcloud 並不會顯示出中文的tag
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: 文章標題
2008年8月13日 星期三
apache22 新的設定方法
apache22 的 httpd.conf 設定方法,...和原本的 apache2 的不一樣,
apache22 中httpd.conf 把一部份的東西放到 extra 的目錄中, user home directory
放到 http-userdir.conf 檔案中, 把httpd.conf 中
Include etc/apache22/extra/httpd-userdir.conf
前面的 # 取消掉...
再把 httpd-userdir.conf 中
改成 userDir www
<Directory "/home/*/www">
.............
......
就ok了
2008年7月15日 星期二
97新生抽籤程式
將原本安裝在win98的系統換成2000系統,..
1.用A7N266vm主機板(用教師辦公室的Ghost檔做)
2.安裝speaker 程式,
3.將97新生註冊的資料庫檔copy進去
4.先啟動speaker 程式
5.控制台->電腦管理-> 服務->ClipBook 設定成自動,啟動
這樣speaker在執行時就不會一直跳出錯誤
=================================
2.把舊的硬碟Ghost 到新的硬碟中
1.原本的硬碟有兩個開機選項,ghost後 沒辦法啟動,先用spfdisk-> 進階功能->將開機磁區修復-->修復後只能第一個開機磁區(剛好要用的就是在第一個開機磁區中)..
2.用P-III 800的電腦就可以直接使用
2008年7月14日 星期一
FireFox3 IE-Tab
遇到一些在 Firefox 顯示不正常的網頁,可以用這元件來開啟 IE 瀏覽。一、下載網頁:https://addons.mozilla.org/zh-TW/firefox/addon/1419
在網頁上按下右鍵,就可以選取
2008年6月26日 星期四
2008年6月13日 星期五
部落格預設模板修改
www 主機加裝了 mt blog系統m..
修改default-templates.pl檔,..
1.修改 迴響表情圖示,..
2.css樣式(預設為 summer)
3.css 中新增 blog2..迴響預覽,迴響錯誤,的blog標籤改成 blog2標籤
(以 note-book 改)
123123