列出文章
|
頁: [1] 2 3 4
|
5
|
測試 / LifeType 1.1 測試 / Re: LT 1.1 simplified URL (簡潔綱址) problem
|
於: 九月 17, 2006, 09:39:24 上午
|
my .htaccess it is original, only changed: ErrorDocument 401 / lifetype/error.php ErrorDocument 403 /lifetype/error.php ErrorDocument 404 / lifetype/error.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 /
# Permalink to the blog entry (i.e. /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. /1_userfoo/archive/200401.html) RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{6})\.html$ index.php?blogId=$1&Date=$2 [L,NC] # -- same as above but with paging included RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{6})\.html\.page\.([1-9]+)$ index.php?blogId=$1&Date=$2&page=$3 [L,NC]
# Daily archive (i.e. /1_blogfoo/archive/20040101.html) RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{8})\.html$ index.php?blogId=$1&Date=$2 [L,NC] # -- same as above but with paging included RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{8})\.html\.page\.([1-9]+)$ index.php?blogId=$1&Date=$2&page=$3 [L,NC]
# Album (i.e. /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] # -- same as above but with paging included RewriteRule ^([0-9]+)_[^/]+/albums/([0-9]+)_[^.]+\.html\.page\.([1-9]+)$ index.php?op=ViewAlbum&blogId=$1&albumId=$2&page=$3 [L,NC]
# Albums (i.e. /88_userfoo/albums/) RewriteRule ^([0-9]+)_[^/]+/albums/$ index.php?op=ViewAlbum&blogId=$1&albumId=0 [L,NC]
# Category view (i.e. /88_userfoo/categories/4_cat-foobar.html) RewriteRule ^([0-9]+)_[^/]+/categories/([0-9]+)_[^.]+\.html$ index.php?blogId=$1&postCategoryId=$2 [L,NC] # -- same as above but with paging included RewriteRule ^([0-9]+)_[^/]+/categories/([0-9]+)_[^.]+\.html\.page\.([1-9]+)$ index.php?blogId=$1&postCategoryId=$2&page=$3 [L,NC]
# Category-Feeds (i.e. /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. /3_userfoo/feeds/atom) RewriteRule ^([0-9]+)_[^/]+/feeds/(.*)$ rss.php?blogId=$1&profile=$2 [L,NC]
# Trackbacks (i.e. /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. /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. /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. /88_userfoo/get/this-is-a-resource-name.pdf) RewriteRule ^([0-9]+)_[^/]+/get/(.+)$ resserver.php?blogId=$1&resource=$2 [L,NC]
# A non-default blog (i.e. /88_userfoo) RewriteRule ^([0-9]+)(_[^/]+)?$ index.php?blogId=$1 [L,NC] # -- same as above but with paging included RewriteRule ^([0-9]+)(_[^/]+)\.page\.([1-9]+)$ index.php?blogId=$1&page=$3 [L,NC]
# Static Pages (i.e /3_userfoo/demosites) RewriteRule ^([0-9]+)_[^/]+/(.+)$ index.php?op=Template&blogId=$1&show=$2 [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>
<Files page> ForceType application/x-httpd-php </Files>
ErrorDocument 401 /lifetype/error.php ErrorDocument 403 /lifetype/error.php ErrorDocument 404 /lifetype/error.php
|
|
|
8
|
測試 / LifeType 1.1 測試 / 1.1 中文 文章變成亂碼
|
於: 九月 16, 2006, 01:53:31 上午
|
是editor 的問題嗎?
只見中文變成 ???
---------------------------
查過 config/config.properities.php 檔:
$config["db_persistent"] = true; $config["db_character_set"] = "utf8";
---SOLVED -----
I delete and define lifetype database with "utf8-general-ci" collating;
using phpMyAdmin, ok !
ps, if allow lifetype to define the database, still failed.
|
|
|
9
|
開發 / 外掛程式 / 香港新聞外掛程式 for lifetype 1.0.x
|
於: 八月 09, 2006, 10:45:46 下午
|
Plugin: HK News Author: Matthew Chin and Gary Chun Release Date: 2006/08/08 Version: 2.6 This plugin display the HK News. Usage as follow: You can use: 1. $hknews->isEnabled() to check the plugin is enabled or not. 2. $hknews->getHKNews() to get the hk news. Where: Example: {if $hknews->isEnabled()} <h2>HK News</h2> { $hknews->getHKNews() } {/if} Download:http://cwchin.no-ip.com/plog/hknews.rar
|
|
|
12
|
開發 / 手冊文件 / 並不存在的頁面 - Wiki links
|
於: 七月 30, 2006, 06:35:25 上午
|
想看看 plugin 的 wiki, 但不知是否真的死 link ?
外掛程式管理 - 並不存在的頁面
實做一個簡單的外掛程式 (Hello World) - 並不存在的頁面
實做一個複雜的外掛程式 (Recent Comments) - 並不存在的頁面
(可否給我指引一個最簡單的 1.0.x plugin 呢? 謝謝 !)
|
|
|
|
|
|