在 commentform.template中最後的地方加入
{if $remembercommentdata->isEnabled()}
{$remembercommentdata->show()}
{/if}
在 commentform.template中最後的地方加入
{if $remembercommentdata->isEnabled()}
{$remembercommentdata->show()}
{/if}
如果是迴響時間月份有問題,就改 postandcomments.template 檔
在版面上加上
{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 src="{$url->resourcePreviewLink($picture)}" title="{$blogOwner->getUsername()}" /><br>
{/if}
{if $blogOwner->getfullName()!=""}
About:{$blogOwner->getAboutMyself()}
{/if}
1.設定上傳檔案大小
全部站台控管 -> 全域設定 -> 上傳設定 -->
maximum_file_upload_size --> 2048000 (2M)
再修改 /usr/local/etc/php.ini
246 memory_limit 32M
388 post_max_size 16M
upload_max_filesize 2M
2.全部站台控管 -> 全域設定 -> 檔案中心設定
resources_quota --> 104857600 (100MB)
1.將模版下載解壓縮後,上傳到 /usr/local/www/data-dist/lifetype/templates/ 下..
2.將 該模版的擁有者改為www
cd roodo-spring-templates
chown www *
3. 到 全部站台管控 --> 新增模版 --> 掃描模版 --> ok
1.下載洋蔥頭表情符號,..使用lss打包過的 tiny_mce2.0.1,請使用這個連結 emotions.zip 下載囉
2.將emotions的資料夾 複製到 /usr/local/www/data-dist/lifetype/js/tinymce/jscripts/tiny_mce/plugins 下蓋過原來的emotions資料夾就可以了
3.如過發表新文章時沒有出現,按重新整理網頁就可以了
迴響記住暱稱,不用每次都要再輸入暱稱(電腦的cookie 要打開)
1.在commentform.template 模版中
<form id="NewComment" name="NewComment" action="{$url->getBaseUrl()}/index.php" method="post">
改成紅色的部份
在</form>最後加上
{if $remembercommentdata->isEnabled()}
{$remembercommentdata->show()}
{/if}然後在個人網誌設定 --> Appearance Management --> Remember Comments Data -->勾選啟動--> ok
新增的步驟如下:
<form id="NewComment" name="NewComment" ....>
<textarea id="CommentText" name="CommentText" ....>
之前在安裝[外掛:最新迴響、最新引用] 時,便已檢查過,因此這回省事不少。
</textarea>
的後面。 {if $smileys->isEnabled()}
<script type="text/javascript" src="{$url->getBaseUrl()}/plugins/smileys/js/smileys/smileys.js"></script>
{$smileys->generateSmileysBar()}<br />
{/if}
原則上,外掛的安裝應到此結束,但因目前從 SourceForge.net 下載的版本並非最新,因此有些問題需參照論壇的說明自行手動修復。
*/plugins/smileys/class/smileys/smileys.class.php
function smileys
alt="$smiley"
function smileys( $blogInfo, $text, $setName, $smileySet )
{
$rg =& RequestGenerator::getRequestGenerator( $blogInfo );
foreach( $smileySet as $smiley => $icon ) {
$iconTag = "<imgalt="$smiley"src="".
$rg->getUrl( "/plugins/smileys/icons/".$setName."/".$icon."" />" );
$text = str_replace( $smiley, $iconTag, $text );
}
除 [模板:buggy] 因無迴響的設計,未加上 [表情符號] 外,其餘模版均已修改完畢。
另外,這個外掛是針對迴響設計的,因此發表內文時無法使用,而且似乎僅支援 IE。
gallery2 使用起來有點麻煩
改成安裝 coppermine
1.先在資料庫中建立coppermine 所須的資料庫 cpg
2.將 include albums 資料夾改成 777
3.albums中的 userpics 及 edit(owner www) 都改成777
4.install.php 改成 755可執行(安裝完畢後移除這個檔案)
5.安裝完成後 --> 設定
6.設定群組的quota
在 commentform.template 模版中加入...
{if $authimage->isEnabled()}
<div><label for="authImage">請輸入驗證碼</label><input type="text" name="authImage" id="authImage" value="" /> {$authimage->show()}</div>
{/if}
LifeType的預設首頁就是你第一個成立的網誌,例如以瀏覽器輸入http://your_ip/plog-1.0.1,出現的是blog_Id=1的網誌
而摘要頁是在http://your_ip/plog-1.0.1/summary.php
若希望以瀏覽器輸入http://your_ip/plog-1.0.1,就會自動連結到summary.php這一頁。
去編輯/plog-1.0.1/.htaccess 這檔案,最後一行加
DirectoryIndex summary.php