歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 29, 2024, 05:56:54 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  開發  |  模版設計  |  請問 LSS 兄關於 almost-spring 這個模版 « 上篇主題 下篇主題 »
頁: [1] 2
作者 主題: 請問 LSS 兄關於 almost-spring 這個模版  (閱讀 24029 次)
catseyes
一般會員
***
文章: 189


是我啦是我啦!


檢視個人資料 個人網站
« 於: 十一月 17, 2005, 07:57:43 下午 »

想請問 LSS 一下這個模版的問題...

我是在原作者 mit 的網誌下載的置個模版...almost-spring

但是安裝之後卻發現它呈現出來是整個偏向左邊的...不像你的會置中

同樣的....ocadia 這個模版也有頁面有點亂掉的情況.....

不知道 LSS 兄在安裝 almost-spring 是否也發生同樣的問題呢!?
已記錄

我的 B-LOG
http://blog.catseyes.com.tw/index.php?blogId=1

虛擬主機資訊
24cc.com 主機
主機系統  Linux
主機類型  i686
Apache 版本 1.3.34 (Unix)
PHP 版本 4.4.1
MySQL 版本 4.1.14-standard-log
=======================
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #1 於: 十一月 17, 2005, 08:14:35 下午 »

hi catseyes:

我一開始沒有做任何修改之前,他天生就置中了 吐舌頭

你有使用這兩個模版的網址嗎?po 出來看一下。

有一種可能,文章裡面有出現前面一半的<div>標籤,後面一半被 truncate 掉了,但是沒有 strip_tags ,造成版面亂掉。以前看過有人問題與你相似,是上述原因造成的。

參考一下。
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
catseyes
一般會員
***
文章: 189


是我啦是我啦!


檢視個人資料 個人網站
« 回覆文章 #2 於: 十一月 17, 2005, 08:30:48 下午 »

有的 ^^ 我把我的模板換成了 almost-spring 這一個...

整個都偏向左邊 @.@ 怪怪的....

LSS 兄方便的話可以打包一下你正再使用的那一個 almost-spring 檔案借我裝看看嗎!?

ocadia 這個模版在華龍國小的學習網誌 http://plog.hlps.tcc.edu.tw/plog/2 就看的到了 ^^

ocadia 這個模版中右邊有個方框是偏左的....不知道是故意的還是不小心的 @.@ 我的也是這樣....

我的網誌 http://blog.catseyes.com.tw/index.php?blogId=1
« 最後編輯時間: 十一月 17, 2005, 08:39:36 下午 由 catseyes » 已記錄

我的 B-LOG
http://blog.catseyes.com.tw/index.php?blogId=1

虛擬主機資訊
24cc.com 主機
主機系統  Linux
主機類型  i686
Apache 版本 1.3.34 (Unix)
PHP 版本 4.4.1
MySQL 版本 4.1.14-standard-log
=======================
bibicall
LifeType 中文發展團隊
超級會員
*****
文章: 640


我是豬老大


檢視個人資料 個人網站
« 回覆文章 #3 於: 十一月 17, 2005, 08:50:06 下午 »

Hi, catseyes
你會不會是改到了CSS而不自知啊?
我猜啦,你要不要檢查一下CSS

可是我看到的情形是置中的耶?
« 最後編輯時間: 十一月 17, 2005, 08:52:29 下午 由 bibicall » 已記錄

我的虛擬主機基本資料如下
Operating system: Linux
Apache version: 1.3.37
PHP version: 4.4.4
MySQL version: 4.1.21-standard
catseyes
一般會員
***
文章: 189


是我啦是我啦!


檢視個人資料 個人網站
« 回覆文章 #4 於: 十一月 17, 2005, 08:55:40 下午 »

我完全沒有動到 CSS 啊 @.@ 怎麼會這樣咧!!

你在你的瀏覽器看是置中的情況嗎!?怪了 XD 莫非又是我的電腦有問題....
已記錄

我的 B-LOG
http://blog.catseyes.com.tw/index.php?blogId=1

虛擬主機資訊
24cc.com 主機
主機系統  Linux
主機類型  i686
Apache 版本 1.3.34 (Unix)
PHP 版本 4.4.1
MySQL 版本 4.1.14-standard-log
=======================
bibicall
LifeType 中文發展團隊
超級會員
*****
文章: 640


我是豬老大


檢視個人資料 個人網站
« 回覆文章 #5 於: 十一月 17, 2005, 09:10:04 下午 »

用IE是靠左的,火狐狸正常
你還是要調整一下CSS了
lss老師的網頁在IE底下是正常的
lss有修改CSS嗎?如果沒有
你要不要跟lss要CSS來置換
看看會不會正常?
« 最後編輯時間: 十一月 17, 2005, 09:11:54 下午 由 bibicall » 已記錄

我的虛擬主機基本資料如下
Operating system: Linux
Apache version: 1.3.37
PHP version: 4.4.4
MySQL version: 4.1.21-standard
catseyes
一般會員
***
文章: 189


是我啦是我啦!


檢視個人資料 個人網站
« 回覆文章 #6 於: 十一月 17, 2005, 09:20:45 下午 »

我的 Opera 下也是正常的....IE 下就是靠左的....怪哉....

可是我是在原作者那裡下載的啊 XD 太詭異了....

LSS 兄~!!!借個 CSS 來用一下吧!!
已記錄

我的 B-LOG
http://blog.catseyes.com.tw/index.php?blogId=1

虛擬主機資訊
24cc.com 主機
主機系統  Linux
主機類型  i686
Apache 版本 1.3.34 (Unix)
PHP 版本 4.4.1
MySQL 版本 4.1.14-standard-log
=======================
catseyes
一般會員
***
文章: 189


是我啦是我啦!


檢視個人資料 個人網站
« 回覆文章 #7 於: 十一月 17, 2005, 09:25:59 下午 »

問題解決 @.@

http://blog.ysmis.cc/mit/2005/10/16/742#Post

果然是 IE 的問題...我重新下載過了....正在嚐試中!!
已記錄

我的 B-LOG
http://blog.catseyes.com.tw/index.php?blogId=1

虛擬主機資訊
24cc.com 主機
主機系統  Linux
主機類型  i686
Apache 版本 1.3.34 (Unix)
PHP 版本 4.4.1
MySQL 版本 4.1.14-standard-log
=======================
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #8 於: 十一月 17, 2005, 10:07:30 下午 »

hi catseyes:

我剛看你的網站,也是正常的。我是有改一點點 css ,不過只是讓 pannel 裡 rss feed 圖片不換行而已,沒改別的,應該不影響。而且,在我修改之前就是這樣了。

至於你說 ocadia 模板的偏左方框,是不是我附上截圖裡標示的紅線部分?如果是,那是原來模板設計就是這樣了,並不是偏左啦!

至於我自己用的 almost-spring 已經有針對一些 plugin 加入樣版碼,就不給你了,因為我也是從你找到的作者網站下載版開始改起的。
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
catseyes
一般會員
***
文章: 189


是我啦是我啦!


檢視個人資料 個人網站
« 回覆文章 #9 於: 十一月 17, 2005, 10:18:59 下午 »

我剛剛去替換過移植作者更新過的 CSS 了..所以目前情況正常了.....

讓 pannel 裡 rss feed 圖片不換行而已<--- 正想問你這個怎麼改的說 >.<!!

and~關於 ocadia 原來那是設計本來就是那樣啊 @.@ 難怪 IE 跟 Opera 都是歪一邊 @.@
« 最後編輯時間: 十一月 17, 2005, 10:21:36 下午 由 catseyes » 已記錄

我的 B-LOG
http://blog.catseyes.com.tw/index.php?blogId=1

虛擬主機資訊
24cc.com 主機
主機系統  Linux
主機類型  i686
Apache 版本 1.3.34 (Unix)
PHP 版本 4.4.1
MySQL 版本 4.1.14-standard-log
=======================
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #10 於: 十一月 18, 2005, 01:51:44 上午 »

and~關於 ocadia 原來那是設計本來就是那樣啊 @.@ 難怪 IE 跟 Opera 都是歪一邊 @.@

不會吧!你現在才知道他原本設計就是要歪一邊喔 吐舌頭 呵呵!

BTW,跟我第一次看到的感覺一樣。嘻嘻!

Mark
已記錄

lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #11 於: 十一月 18, 2005, 07:56:02 上午 »

.............
讓 pannel 裡 rss feed 圖片不換行而已<--- 正想問你這個怎麼改的說 >.<!!
.............
改這個:
引用
#sidebar ul ul li a {
   display: block;
   margin: 0 0 0 -10px;
   padding: 2px 10px 0 10px;
   width: 190px;
   voice-family: "\"}\"";
   voice-family: inherit;
   width: 170px;
}
紅色那行拿掉。
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
catseyes
一般會員
***
文章: 189


是我啦是我啦!


檢視個人資料 個人網站
« 回覆文章 #12 於: 十一月 18, 2005, 09:53:14 上午 »

還有個小問題....

我想加入近期迴響的欄位...我使用了

程式碼:
<li>
<h2>近期迴響</h2>
<ul>
{if $recentcomments->isEnabled()}
<li>
{assign var=comments value=$recentcomments->getRecentComments()}
{foreach from=$comments item=comment}
{assign var=commentpostid value=$comment->getArticleId()}
{assign var=commentpost value=$recentcomments->getArticle($commentpostid)}
{assign var=commentdate value=$comment->getDateObject()}
</li>
</ul>

這樣卻無法加入呢 @.@ 好怪...可是在其他的模板卻是都可以加入啊......
出現的錯誤訊息
引用
Fatal error: Smarty error: [in ./templates/blog_1/jc_almost-spring/panel.template line 137]: syntax error: unclosed tag {foreach} (opened line 68). (Smarty_Compiler.class.php, line 303) in /home/.anabel/joskcat/catseyes/blog/class/template/smarty/Smarty.class.php on line 1108

怎麼會這樣呢!?
已記錄

我的 B-LOG
http://blog.catseyes.com.tw/index.php?blogId=1

虛擬主機資訊
24cc.com 主機
主機系統  Linux
主機類型  i686
Apache 版本 1.3.34 (Unix)
PHP 版本 4.4.1
MySQL 版本 4.1.14-standard-log
=======================
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #13 於: 十一月 18, 2005, 10:24:59 上午 »

我保證你拿到其他模版也不能用  :-P應該是

引用
<li>
<h2>近期迴響</h2>
<ul>
{if $recentcomments->isEnabled()}
<li>
{assign var=comments value=$recentcomments->getRecentComments()}
{foreach from=$comments item=comment}
{assign var=commentpostid value=$comment->getArticleId()}
{assign var=commentpost value=$recentcomments->getArticle($commentpostid)}
{assign var=commentdate value=$comment->getDateObject()}
....
....

</li>
</ul>

我上面標成粗體的地方,你少 copy 了一些程式。在仔細看一下原本 recentcomments 的 readme.txt 檔。

readme.txt 中的 example

程式碼:
Example:
Add the following code to footer.template or header.template:
{if $recentcomments->isEnabled()}
<h2>Recent Comments</h2>
{assign var=comments value=$recentcomments->getRecentComments()}
<ul>
{foreach from=$comments item=comment}
{assign var=commentpostid value=$comment->getArticleId()}
{assign var=commentpost value=$recentcomments->getArticle($commentpostid)}
<li><a title="View comments by {$comment->getUsername()}" href="{$url->postPermalink($commentpost)}#{$comment->getId()}"><b>{$comment->getUsername()}:</b>{$comment->getText()|truncate:100:"..."|strip_tags}</a></li>
{/foreach}
</ul>           
{/if}

Mark
已記錄

lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #14 於: 十一月 18, 2005, 10:53:15 上午 »

......................
這樣卻無法加入呢 @.@ 好怪...可是在其他的模板卻是都可以加入啊......
出現的錯誤訊息
引用
Fatal error: Smarty error: [in ./templates/blog_1/jc_almost-spring/panel.template line 137]: syntax error: unclosed tag {foreach} (opened line 68). (Smarty_Compiler.class.php, line 303) in /home/.anabel/joskcat/catseyes/blog/class/template/smarty/Smarty.class.php on line 1108

怎麼會這樣呢!?

hi catseyes:

你有點不夠用心哦!錯誤訊息已經寫的很清楚了---- unclosed tag {foreach} ---- 意思就是成對的{foreach}標籤少了結尾的{/foreach},連行號 68 {foreach}的位置都告訴你了哦!

大家覺得是不是應該出一篇「如何看懂錯誤訊息」的文章啊?!
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
頁: [1] 2
LifeType 中文開發論壇  |  開發  |  模版設計  |  請問 LSS 兄關於 almost-spring 這個模版 « 上篇主題 下篇主題 »
    前往: