歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 27, 2024, 04:53:52 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  開發 / 模版發表 / Re: 新模板 [清爽,快速,搜尋引擎友好] 於: 三月 07, 2008, 08:56:12 上午
已经更新了, 效果见
http://lifetype.chinese-blog.org/
2  支援 / 安裝與設定 / 如何設置show_posts_max 於: 二月 05, 2008, 10:38:32 上午
出處:
http://lifetype.chinese-blog.org/lifetype-blog/lifetype-show_posts_max-settings

如果把Number of items in the main page設成8, 在首頁顯示8篇blog會太擁擠,如果設置1,目錄頁及後台文章編輯頁也顯示1篇,這是否日lifetype設計上的不當?目錄頁如果1頁顯示1篇就不是目錄頁。
如果用More Tag來分隔,會使html source不連續。現成想到的唯一辦法是修改template,有沒有更好的方法?
3  支援 / 安裝與設定 / 搜尋引擎友好的 page title 於: 二月 04, 2008, 11:05:01 上午
原文:
http://lifetype.chinese-blog.org/lifetype-blog/lifetype-seo-firendly-page-title

默認的<title>{$pageTitle|escape:"html"}</title>顯示樣式像這樣:
<title>blog name | post name</title>
由於每篇post title開頭都blog name, 對搜索引擎看來每篇都在討論類似的主題。
可以改成這樣:

    <title>{if !empty($post)} {$post->getTopic()} {elseif !empty($category)} {$category->getName()} {else} {$pageTitle|escape:"html"} {/if}</title>

這也是 seo friendly templates 的默認設置。
seo friendly templates可以從這裡下載:
 http://lifetype.chinese-blog.org/lifetype-templates/seo-friendly-templates
demo:
http://lifetype.chinese-blog.org


4  開發 / 模版發表 / 新模板 [清爽,快速,搜尋引擎友好] 於: 二月 02, 2008, 05:54:01 下午
安裝lifetype後,沒有找到簡潔,快速,對搜尋引擎非常友好的模板,於是自己diy一個,在這裡與大家分享。
這也是 http://www.chinese-blog.org 唯一安裝的模板,會持續改進,請大家多提意見。(使用者請保留作者信息)

demo:
http://lifetype.chinese-blog.org

download:
http://www.chinese-blog.org/download/lifetype/seo-friendly-templates.zip

回響請到:
 http://lifetype.chinese-blog.org/lifetype-templates/seo-friendly-templates

screenshot:
5  支援 / 安裝與設定 / Re: 後台管理Blog Settings,Site Locales變成blank 於: 二月 02, 2008, 09:01:52 上午
已經解決,因為locale file不兼容造成的。 現在全站使用utf8 en_UK locale. 
6  支援 / 安裝與設定 / lifetype subdomain 設置詳細步驟 於: 一月 31, 2008, 11:21:48 上午
lifetype subdomain 設置詳細步驟

這篇發表在個人blog上,轉過來,希望對有的朋友有幫助。沒有中文翻譯,請見諒。
主要的設置:
引用
   4   Adminstration General:

    subdomains_enabled = Yes
    subdomains_base_url = http://{blogdomain}
    subdomains_available_domains = chinese-blog.org
    include_blog_id_in_url - No

經過設置,我們就得到對搜索引擎友好的二級域名網址。

原文:
http://lifetype.chinese-blog.org/lifetype-blog/lifetype-1.26-subdomain-settings


    lifetype version: 1.26

    1   Let users register a Blog on my System
    The summary.php (http://www.chinese-blog.org/summary.php) within the root Folder contains all the desired Information like to register a new blog
    Add to .htaccess
    <IfModule mod_dir.c>
        DirectoryIndex summary.php index.php
    </IfModule>
   
    2   when subdomains are enabled, LifeType is trying to load whose user or title is "www" and if it doesn't exist, it will show an error.
    The way to get around this limitation is via Apache's mod_rewrite:
   
    # For Redirecting domains like www.myblog.mysite.com--> myblog.irxcom.com
    RewriteCond %{HTTP_HOST} ^www\.(.*)\.chinese\-blog\.org$ [NC]
    RewriteRule ^.*$ http://%1.chinese-blog.org [R=301,L]

    #For Redirecting www.irxblog.com --> www.mysite.com/summary.php
    #For Redirecting irxblog.com --> www.mysite.com/summary.php
    RewriteCond %{HTTP_HOST} ^chinese-blog\.org$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^www\.chinese\-blog\.org$ [NC]
    RewriteCond %{REQUEST_URI} ^/$ [NC]
    RewriteRule ^.*$ http://www.chinese-blog.org/summary.php [R=301,L]
   
   
    3   Administration URLs:
   
    
    permalink_format
    default: /blog/{blogname}/{catname}/{year}/{month}/{day}/{postname}$
    changed to :
    /{catname}/{postname}$

    category_link_format :
    default: /blog/{blogname}/{catname}$
    changed to :/{catname}$
   
    blog_link_format :
    default : /blog/{blogname}$
    changed to : $
   
   
    archive_link_format :
    default: /blog/{blogname}/archives/{year}/?{month}/?{day}
    changed to : /{blogid}/archives/{year}/?{month}/?{day}?
   
    user_posts_link_format :
    default : /blog/{blogname}/user/{username}$
    changed to : /{blogid}/user/{username}$
   
    post_trackbacks_link_format :
    default : /blog/{blogname}/post/trackbacks/{postname}$
    changed to : /{blogid}/trackbacks/{postname}$
   
    template_link_format :
    default : /blog/{blogname}/content/{templatename}$
    changed to : /{blogid}/content/{templatename}$
   
    album_link_format :
    default : /blog/{blogname}/album/{albumname}$
    changed : /{blogid}/albums/{albumname}$
   
    resource_link_format :
    default : /blog/{blogname}/resource/{albumname}/{resourcename}$
    changed to : /resource/{albumname}/{resourcename}$
   
   
    page_suffix_format :
    default : /pages/{page}$

    4   Adminstration General:

    subdomains_enabled = Yes
    subdomains_base_url = http://{blogdomain}
    subdomains_available_domains = chinese-blog.org
    include_blog_id_in_url - No
   
    5   configure "Search Engine friendly" URLs
   
    This feature only works on Apache servers and requires that .htaccess files are allowed. If this is the case, make sure that *ForceType* and *ErrorDocument* directives can be used within .htaccess files, as those two directives are the ones upon which the technique is built.

    On some Web Hosts, if PHP is running as CGI, ForceType may not be supported. In your .htaccess file replace all instances of:

    ForceType application/x-httpd-php
    with:

    SetHandler application/x-httpd-php
   
    Jan 28, 2008
7  支援 / 安裝與設定 / 後台管理Blog Settings,Site Locales變成blank 於: 一月 31, 2008, 11:11:19 上午
後台管理Blog Settings,Site Locales變成blank


    安裝lifetype1.26,數據庫設置成utf-8, 默認locale zh_CN
   
    第一個blog帳戶設置完成,blog locale zh_CN。一切操作正常。
   
    接著創建第二個用戶,第二個blog, blog的locale設置成en_UK, 登錄後台發現有的地方亂碼,就把locale/locale_en_UK.php中的
    $messages['encoding'] = 'iso-8859-1';
    改成:
    $messages['encoding'] = 'utf-8';
    用記事本打開,另存為utf8編碼,并上傳。
   
    接著問題就出現:
    1   後台管理,"Control Center", "Settings", "Blog Settings" 變成空白
    2   後台管理,"Administration", "Manage Locales", "Site Locales" 變成空白(其他管理操作正常)
    3   blog(en_UK locale) 頁面頂部多出子空白行
     重新把encoding改成iso-8859-1後正常。但後台管理問題依舊。
   
   
   
    試過以下方法,問題沒有解決:
   
    1 登錄PHPMyAdmin, 打開lt_blogs, 把en_UK blog的:
   
引用
s:5:"en_US";
    改成:
   
引用
s:5:"zh_CN";
   
   
    2 打開php.ini, 原來memory_limit=16M, 改成memory_limit=32M
   
    3  由於前面曾安裝hiddeninput, 安裝後回響不成功,已經停用
     再把hiddeninpun移動到plugins目錄外頁,并清除緩存,不成功。
   
    4  手動刪除tmp目錄所有內容
   
    5   把locale/locale_en_UK恢復到原來,清除緩存

    6   重新上傳admin.php
   
    7   vi  /var/log/httpd/chinese-blog.org_error_log
   得到error log, 看不出問題在哪裡
   
[Wed Jan 30 02:12:06 2008] [error] [client 60...] PHP Notice:  Undefined index:  flerror in /home/chineseblogs/public_html/class/net/xmlrpcclient.class.php on line 57, referer: http://lifetype.chinese-blog.org/admin.php?op=newPost
[Wed Jan 30 02:12:27 2008] [error] [client 60...] PHP Notice:  Undefined variable: defaultFiltersRegistered in /home/chineseblogs/public_html/class/security/pipeline.class.php on line 132, referer: http://lifetype.chinese-blog.org/
[Wed Jan 30 02:12:27 2008] [error] [client 72.13...] PHP Notice:  Undefined variable: defaultFiltersRegistered in /home/chineseblogs/public_html/class/security/pipeline.class.php on line 132
[Wed Jan 30 02:12:29 2008] [error] [client 72.13...] PHP Notice:  Undefined variable: defaultFiltersRegistered in /home/chineseblogs/public_html/class/security/pipeline.class.php on line 132
[Wed Jan 30 02:12:30 2008] [error] [client 72.13...] File does not exist: /home/chineseblogs/public_html/lifetype-blog
[Wed Jan 30 02:12:30 2008] [error] [client 72.13...] PHP Notice:  Undefined variable: defaultFiltersRegistered in /home/chineseblogs/public_html/class/security/pipeline.class.php on line 132
[Wed Jan 30 02:12:32 2008] [error] [client 66.249...] File does not exist: /home/chineseblogs/public_html/robots.txt   


   
    個人分析,可能不是記憶體限制的問題,因為原來操作一切正常,系統就兩個blog用戶,且後台管理絕大部分操作正常, 部分操作出現空白頁,頁面source什么也沒有。
   
    是否兩blog設置成不同的locale,造成什么文件出現問題?到底哪個文件呢?誠心請教。
   
    blog網址:
    http://lifetype.chinese-blog.org
    http://official.chinese-blog.org/
   
   
    Jan 31, 2008
頁: [1]