歡迎光臨, 訪客. 請先 登入註冊一個帳號.
五月 14, 2024, 07:14:56 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: 1 2 3 [4] 5
46  支援 / 使用與操作 / Re: 中文的搜尋語法 於: 七月 26, 2006, 11:10:30 下午
謝謝 hsuzy 的回覆 開懷大笑

看起來似乎需要以程式對文字做編碼後才能查,
但這部分我並不熟悉,而且看來不像用戶端能做的,
所以是有看沒有懂 吐舌頭

目前每個 Blog 都有站內 Search 的機制,而輸入中文查詢也OK〈應是系統自動轉碼的吧?〉,
所以我想利用 Search 來集合將主題相關的文章,
但 Search 結果的網址都長一樣,沒有顯示語法或編碼後的文字,
好不容易找到語法,似乎還是不能用於中文,真可惜!

無論如何,謝謝 hsuzy!
47  支援 / 使用與操作 / 中文的搜尋語法 於: 七月 25, 2006, 03:04:58 下午
我從英文論壇找到搜尋連結的寫法,
http://forums.lifetype.net/viewtopic.php?t=3270&highlight=searchterms

格式如下:
http://www.yourhost.com/index.php?op=Search&blogId=XX&searchTerms=whatever

當關鍵字為英文時,例如:Lead,可正常搜尋;
http://demo.lifetype.org.tw/index.php?op=Search&blogId=57&searchTerms=Lead

但當關鍵字改為中文時,例如:單曲,便會出現錯誤。
http://demo.lifetype.org.tw/index.php?op=Search&blogId=57&searchTerms=單曲

請問我應如何修改,才能讓中英文皆正常搜尋呢?
48  支援 / 使用與操作 / Re: 註冊時未建立使用者,卻可建立網誌…… 於: 六月 08, 2006, 10:34:55 上午
回報好了 http://bugs.lifetype.net/view.php?id=942

希望欄位選項沒填錯 & 我的英文有人可看得懂 吐舌頭
49  支援 / 使用與操作 / Re: 註冊時未建立使用者,卻可建立網誌…… 於: 六月 08, 2006, 09:44:01 上午
好啊!終於可以幫上點忙 微笑

但我要先去研究一下 臭蟲追蹤系統 怎麼用,
我不會寫程式,也不是工程師,所以從來沒用過類似的系統。

希望不會太難 吐舌頭
50  支援 / 使用與操作 / Re: 註冊時未建立使用者,卻可建立網誌…… 於: 六月 08, 2006, 09:36:08 上午
會疑惑算不算 bug 是因為 Demo 1.0 的下面兩個列表都可正常顯示,
BlogList http://demo.lifetype.org.tw/?op=BlogList&page=2
UserList http://demo.lifetype.org.tw/?op=UserList&page=2

但在我們的平台中,BlogList 會因此而無法正常顯示,直接出現一堆我看不懂的錯誤訊息。
不過,之後我從後端把資料補填進去,前端畫面就正常了,
因為狀況不太一樣,而且我們有改過程式,所以才這麼問。

開懷大笑 開懷大笑 開懷大笑 開懷大笑 開懷大笑

這當然算 bug 啦(我是還沒試啦,如果真的可以這樣的話)

能請你到 臭蟲追蹤系統 去回報嗎?這樣開發團隊才不會漏掉。

lss
51  支援 / 使用與操作 / Re: 註冊時未建立使用者,卻可建立網誌…… 於: 六月 08, 2006, 09:26:13 上午
To: james

對呀~我就是輸入
http://demo.lifetype.org.tw/?op=RegisterStep3
直接跳到後面的步驟去完成註冊

我試第 2 次也不行,同樣的狀況我在學校的系統也試過了。

請問你是怎麼跳到後面的步驟呢??
直接輸入http://demo.lifetype.org.tw/?op=RegisterStep3 這個嗎?
我試者直接從上面的網址進入,填完所有資料,但是還是無法建立網誌.
系統會跳出錯誤訊息(使用者資料不正確無法建立)

因為正常狀況下,如果是從註冊步驟從頭開始的話,沒有填使用者相關資料是沒法進到下一步的。

可以詳細說明一下你的操作步驟嗎??
這樣對問題的釐清會有更大的幫助 微笑

James.
52  支援 / 使用與操作 / 註冊時未建立使用者,卻可建立網誌…… 於: 六月 07, 2006, 09:24:42 下午
前台的註冊有點問題,因註冊程式已被修改,
所以上 Demo 1.0 測試,想釐清原因,
但卻愈試愈混,便上來問一下狀況 吐舌頭

我在 Demo 1.0 註冊時,如未建立使用者,直接跳到後面的步驟,
例如http://demo.lifetype.org.tw/?op=RegisterStep3

只要確實填寫後續各欄位的資料,還是會產生部落格的,
例如:http://demo.lifetype.org.tw/index.php?blogId=39

而下面兩個列表也都可正常顯示,
BlogList http://demo.lifetype.org.tw/?op=BlogList&page=2
UserList http://demo.lifetype.org.tw/?op=UserList&page=2

只是因未建立使用者,而某些資料呈現空白,
當然使用者因無帳號、密碼,所以無法使用啦!

請問這樣算正常或是有瑕疵呢?

不過同樣的狀況再試第 2 次,就沒辦法通過了。
53  支援 / 使用與操作 / Re: 用数字作用户名,访问博客不存在 於: 五月 19, 2006, 03:23:32 下午
你是裝在那個目錄,如果是在  /lifetype 目錄,那麼就要上下都加上 lifetype。如果是在根目錄,那麼上下都要改成 /

Mark

Hi, Mark

我看過論壇中的討論,也知道一般而言上下都要設一樣的目錄,
但幾經測試就是行不通,這就是讓我十分傷腦筋的地方 疑惑

我將測試過的結果寫下,希望不會太贅言太多,但真的很詭異 吐舌頭

Jeany

====

C:\AppServ\www\lifetype\.htaccess

測試一
RewriteBase /lifetype

ErrorDocument 401 /lifetype/error.php
ErrorDocument 403 /lifetype/error.php
ErrorDocument 404 /lifetype/error.php

結果一
X http://網址/帳號  ==> HTTP 404 找不到網頁
X http://網址/帳號/ ==> HTTP 404 找不到網頁

====

測試二
RewriteBase /lifetype

ErrorDocument 401 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php

結果二
○ http://網址/帳號  ==> OK 開懷大笑
X http://網址/帳號/ ==> HTTP 404 找不到網頁

====

測試三
RewriteBase /

ErrorDocument 401 /lifetype/error.php
ErrorDocument 403 /lifetype/error.php
ErrorDocument 404 /lifetype/error.php

結果三
X http://網址/帳號  ==> ERROR: The blog does not exist.
X http://網址/帳號/ ==> HTTP 404 找不到網頁

====

測試四
RewriteBase /

ErrorDocument 401 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php

結果四
X http://網址/帳號  ==> ERROR: The blog does not exist.
X http://網址/帳號/ ==> HTTP 404 找不到網頁"
54  支援 / 使用與操作 / Re: 用数字作用户名,访问博客不存在 於: 五月 18, 2006, 12:31:15 下午
Sorry!我前篇寫錯了,更正紅色部分 吐舌頭

當 RewriteBase /lifetype
○ http://網址/帳號
X http://網址/帳號/ 出現 "找不到網頁"

RewriteBase /
X http://網址/帳號 出現 "ERROR: The blog does not exist."
X http://網址/帳號/ 出現 "找不到網頁"

Mark 說要注意的地方,我試過了,不行。
就是,上下設一樣時,便完全不行,很詭異。
55  支援 / 使用與操作 / Re: 用数字作用户名,访问博客不存在 於: 五月 17, 2006, 11:19:24 上午
在還沒人能幫忙解答時,我又繼續測試,
在自訂網址時,{blogowner} 如為純數字還是有問題,
目前的狀況如下:

當 RewriteBase /lifetype
○ http://網址/帳號
X http://網址/帳號/ 出現 "找不到網頁"

當 RewriteBase /lifetype
當 RewriteBase /
X http://網址/帳號 出現 "ERROR: The blog does not exist."
X http://網址/帳號/ 出現 "找不到網頁"

盼有人可以幫忙解答,謝謝!

.htaccess 的設定
====

DirectoryIndex summary.php index.html index.php

<Files .htaccess>
deny from all
</Files>

<Files config.properties.php>
deny from all
</Files>

Options -Indexes
Options +FollowSymLinks

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /lifetype

# Permalink to the blog entry (i.e. /plog/1_userfoo/archive/3_title-foo-bar.html)
RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]+)_[^.]+\.html$ index.php?op=ViewArticle&blogId=$1&articleId=$2 [L,NC]

# Monthly archive (i.e. /plog/1_userfoo/archive/200401.html)
RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{6})\.html$ index.php?blogId=$1&Date=$2 [L,NC]

# Daily archive (i.e. /plog/1_blogfoo/archive/20040101.html)
RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{8})\.html$ index.php?blogId=$1&Date=$2 [L,NC]

# Album (i.e. /plog/88_userfoo/albums/34_title-foo-bar.html)
RewriteRule ^([0-9]+)_[^/]+/albums/([0-9]+)_[^.]+\.html$ index.php?op=ViewAlbum&blogId=$1&albumId=$2 [L,NC]

# Albums (i.e. /plog/88_userfoo/albums/)
RewriteRule ^([0-9]+)_[^/]+/albums/$ index.php?op=ViewAlbum&blogId=$1&albumId=0 [L,NC]

# Category view (i.e. /plog/88_userfoo/categories/4_cat-foobar.html)
RewriteRule ^([0-9]+)_[^/]+/categories/([0-9]+)_[^.]+\.html$ index.php?blogId=$1&postCategoryId=$2 [L,NC]

# Category-Feeds (i.e. /plog/3_userfoo/feeds/categories/2_category/atom)
RewriteRule ^([0-9]+)_[^/]+/feeds/categories/([0-9]+)_[^.]+/(.*)$ rss.php?blogId=$1&categoryId=$2&profile=$3 [L,NC]

# Feeds (i.e. /plog/3_userfoo/feeds/atom)
RewriteRule ^([0-9]+)_[^/]+/feeds/(.*)$ rss.php?blogId=$1&profile=$2 [L,NC]

# Trackbacks (i.e. /plog/3_userfoo/trackbacks/34_title-foo-bar.html)
RewriteRule ^([0-9]+)_[^/]+/trackbacks/([0-9]+)_[^.]+\.html$ index.php?op=Trackbacks&blogId=$1&articleId=$2 [L,NC]

# Comment form (i.e. /plog/88_userfoo/comment/34_title-foo-bar.html)
RewriteRule ^([0-9]+)_[^/]+/comment/([0-9]+)_[^.]+\.html$ index.php?op=Comment&blogId=$1&articleId=$2 [L,NC]

# Resources (i.e. /plog/88_userfoo/resources/this-is-a-resource-name.pdf.html)
RewriteRule ^([0-9]+)_[^/]+/resources/([^.]+)\.([^.]+)\.html$ index.php?op=ViewResource&blogId=$1&resource=$2.$3 [L,NC]

# Download a resource (i.e. /plog/88_userfoo/get/this-is-a-resource-name.pdf)
RewriteRule ^([0-9]+)_[^/]+/get/(.+)$ resserver.php?blogId=$1&resource=$2 [L,NC]

# Static Pages (i.e /plog/3_userfoo/demosites)
RewriteRule ^([0-9]+)_[^/]+/(.+)$ index.php?op=Template&blogId=$1&show=$2 [NC]

# A non-default blog (i.e. /plog/88_userfoo)
RewriteRule ^([0-9]+)(_[^/]+)?$ index.php?blogId=$1 [L,NC]

# Daily archive (i.e. /plog/1_userfoo/archive/20040101.html)
RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{8})\.html$ index.php?blogId=$1&Date=$2 [L,NC]

</IfModule>



<Files post>
 ForceType application/x-httpd-php
</Files>

<Files archives>
 ForceType application/x-httpd-php
</Files>

<Files static>
 ForceType application/x-httpd-php
</Files>

<Files rss>
 ForceType application/x-httpd-php
</Files>

<Files category>
 ForceType application/x-httpd-php
</Files>

<Files trackbacks>
 ForceType application/x-httpd-php
</Files>

<Files comment>
 ForceType application/x-httpd-php
</Files>

<Files resource>
 ForceType application/x-httpd-php
</Files>

<Files get>
 ForceType application/x-httpd-php
</Files>

<Files album>
 ForceType application/x-httpd-php
</Files>

<Files blog>
 ForceType application/x-httpd-php
</Files>

<Files user>
 ForceType application/x-httpd-php
</Files>

ErrorDocument 401 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
56  支援 / 使用與操作 / Re: 用数字作用户名,访问博客不存在 於: 五月 12, 2006, 02:46:02 下午
自訂網址的設定經多次測試後,終於看來正常點,不論帳號是否為純數字,都可被檢視,但還是有點小問題。

○ http://網址/帳號
X http://網址/帳號/

只要在系統產生的連結後面加上 / 便無法檢視,
錯誤的訊息是 ERROR: The blog does not exist.
或是出現不正常的畫面(我本以為是 cache 造成,但清除 tmp 下的檔案還是沒用),
不論是哪種網址格式,都有這樣的問題,真傷腦筋 疑惑

論壇中有找到類似的狀況 http://forum.lifetype.org.tw/index.php?topic=367.0
但那時 1.0.1 尚未發布,目前我們已升級到 1.0.4,
不知我還有哪裡沒注意到呢?
57  支援 / 使用與操作 / Re: 用数字作用户名,访问博客不存在 於: 四月 28, 2006, 06:10:40 下午
你的網址在哪?

能不能給我看一些 example,就是像你描述那樣的情況。

Mark

Sorry!目前有困難耶!
發現有問題後,我們就改回一般網址,
目前已有老師讓學生試用,
如要再次測試,待下週通知老師後,會比較理想。

如上面所列的設定沒問題,我們會再試試看的,
謝謝 Mark 的幫忙 微笑
58  支援 / 使用與操作 / Re: 用数字作用户名,访问博客不存在 於: 四月 28, 2006, 04:50:48 下午
哇~還有希望,真好,感謝 開懷大笑

====
permalink_format
當使用自訂網址時,靜態連結網址格式。
/{blogowner}/post/{postid}$

category_link_format
當使用自訂網址時,網站連結分類網址格式。
/{blogowner}/{catid}$
/{blogowner}/category/{catid}$

blog_link_format
當使用自訂網址時,網誌連結網址格式。
/{blogowner}$

archive_link_format
當使用自訂網址時,文章彙整連結網址格式。
/{blogowner}/archives/{year}{month}{day}$

user_posts_link_format
當使用自訂網址時,特定使用者發表的文章連結網址格式。
/{blogowner}/user/{userid}$

post_trackbacks_link_format
當使用自訂網址時,引用連結網址格式。
/{blogowner}/trackbacks/{postid}$

template_link_format
當使用自訂網址時,自訂靜態模版連結網址格式。
/{blogowner}/static/{templatename}$

album_link_format
當使用自訂網址時,資料夾連結網址格式。
/{blogowner}/album/{albumid}$
/{blogowner}/resource/{albumid}$

resource_link_format
當使用自訂網址時,檔案連結網址格式。
/{blogowner}/resource/{albumid}/{resourceid}$

resource_preview_link_format
當使用自訂網址時,檔案預覽連結網址格式。
/{blogowner}/resource/{albumid}/preview/{resourceid}$

resource_medium_size_preview_link_format
當使用自訂網址時,中型檔案預覽連結網址格式。
/{blogowner}/resource/{albumid}/preview_med/{resourceid}$

resource_download_link_format
當使用自訂網址時,檔案下載連結網址格式。
/{blogowner}/resource/{albumid}/download/{resourceid}$
59  支援 / 使用與操作 / Re: 用数字作用户名,访问博客不存在 於: 四月 28, 2006, 04:21:39 下午
我們採用的是自訂網址

目前我們採用自訂網址,希望將 blog_link_format 的設定為 /{blogowner}$,
但經測試,學生的部落格都無法正常顯示,但教職員的可以。

學生的帳號為學號(純數字);教職員的帳號以人事編號(1~2位英文+數字)
60  支援 / 使用與操作 / Re: 用数字作用户名,访问博客不存在 於: 四月 28, 2006, 04:16:06 下午
Sorry!我有點搞糊塗了 疑惑
我們原先的設定,跟 Mark 所建議的應一樣,還是我會錯意了呢?

依 Mark 所言推斷,我們原先所想的設定應可行,
只是暫時還有未知的問題待解決 吐舌頭
頁: 1 2 3 [4] 5