tdiarysearch
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[FrontPage]]
#contents
** 準備 [#ld9b2330]
開発元 http://i.loveruby.net/w/tdiarysearch.html
のページからソースを取得。
今回は開発版を選んだ。
cvs -d :pserver:anonymous@cvs.tdiary.sf.net:/cvsroot/tdi...
** 設置 [#o198e275]
home/d/_USER_/search.cgi に次のスクリプトを置き chmod 710...
#!/virtual/_IP_ADDRSSS_/cgi-bin/ruby/bin/ruby
require '/virtual/_IP_ADDRESS_/cgi-bin/tdiary/search.rb'
search.rb に以下の変更をしてcgi-bin/tdiary に置く。
*** /home/tito/w/cvs.sourcehorge.net/tdiary/contrib/util...
--- search.rb Tue Mar 2 08:15:01 2004
***************
*** 17,23 ****
# Static Configurations
#
! LOGGING = false
LOGFILE_NAME = 'search.log'
DEBUG = $DEBUG
--- 17,23 ----
# Static Configurations
#
! LOGGING = true
LOGFILE_NAME = 'search.log'
DEBUG = $DEBUG
***************
*** 36,43 ****
<meta http-equiv="Content-Type" content="text/html...
<meta http-equiv="Content-Language" content="ja-JP">
<meta name="robots" content="noindex">
! <link rel="stylesheet" href="theme/base.css" type=...
! <link rel="stylesheet" href="theme/<%= theme %>/<%...
<title>tDiary Search</title>
</head>
<body>
--- 36,43 ----
<meta http-equiv="Content-Type" content="text/html...
<meta http-equiv="Content-Language" content="ja-JP">
<meta name="robots" content="noindex">
! <link rel="stylesheet" href="../../tito/d/theme/ba...
! <link rel="stylesheet" href="../../tito/d/theme/ti...
<title>tDiary Search</title>
</head>
<body>
***************
*** 49,55 ****
EOS
SEARCH_FORM = unindent(<<"EOS", 2)
! <form method="post" action="#{File.basename(__FILE__...
<input type="text" name="q" size="20" value="<%= pat...
<input type="submit" value="Search">
<%
--- 49,55 ----
EOS
SEARCH_FORM = unindent(<<"EOS", 2)
! <form method="post" action="search.cgi">
<input type="text" name="q" size="20" value="<%= pat...
<input type="submit" value="Search">
<%
** 問題点 [#v9e9ad1f]
ユーザーごとのテーマが反映されない。
** ログ [#s8426d88]
perl -pe 's/^([0-9][0-9]*):/localtime($1).":"/e;s/\\([0-...
終了行:
[[FrontPage]]
#contents
** 準備 [#ld9b2330]
開発元 http://i.loveruby.net/w/tdiarysearch.html
のページからソースを取得。
今回は開発版を選んだ。
cvs -d :pserver:anonymous@cvs.tdiary.sf.net:/cvsroot/tdi...
** 設置 [#o198e275]
home/d/_USER_/search.cgi に次のスクリプトを置き chmod 710...
#!/virtual/_IP_ADDRSSS_/cgi-bin/ruby/bin/ruby
require '/virtual/_IP_ADDRESS_/cgi-bin/tdiary/search.rb'
search.rb に以下の変更をしてcgi-bin/tdiary に置く。
*** /home/tito/w/cvs.sourcehorge.net/tdiary/contrib/util...
--- search.rb Tue Mar 2 08:15:01 2004
***************
*** 17,23 ****
# Static Configurations
#
! LOGGING = false
LOGFILE_NAME = 'search.log'
DEBUG = $DEBUG
--- 17,23 ----
# Static Configurations
#
! LOGGING = true
LOGFILE_NAME = 'search.log'
DEBUG = $DEBUG
***************
*** 36,43 ****
<meta http-equiv="Content-Type" content="text/html...
<meta http-equiv="Content-Language" content="ja-JP">
<meta name="robots" content="noindex">
! <link rel="stylesheet" href="theme/base.css" type=...
! <link rel="stylesheet" href="theme/<%= theme %>/<%...
<title>tDiary Search</title>
</head>
<body>
--- 36,43 ----
<meta http-equiv="Content-Type" content="text/html...
<meta http-equiv="Content-Language" content="ja-JP">
<meta name="robots" content="noindex">
! <link rel="stylesheet" href="../../tito/d/theme/ba...
! <link rel="stylesheet" href="../../tito/d/theme/ti...
<title>tDiary Search</title>
</head>
<body>
***************
*** 49,55 ****
EOS
SEARCH_FORM = unindent(<<"EOS", 2)
! <form method="post" action="#{File.basename(__FILE__...
<input type="text" name="q" size="20" value="<%= pat...
<input type="submit" value="Search">
<%
--- 49,55 ----
EOS
SEARCH_FORM = unindent(<<"EOS", 2)
! <form method="post" action="search.cgi">
<input type="text" name="q" size="20" value="<%= pat...
<input type="submit" value="Search">
<%
** 問題点 [#v9e9ad1f]
ユーザーごとのテーマが反映されない。
** ログ [#s8426d88]
perl -pe 's/^([0-9][0-9]*):/localtime($1).":"/e;s/\\([0-...
ページ名: