Feb 132006
WordPressのプラグインをいくつか入れてみました。
- Capcha!
Comment投稿時に画像に表示された英数字を入力してもらうことで、ロボットからの自動ポストをしにくくするプラグインです。 - StatTraq
アクセス統計などを記録して解析可能にするプラグインです。UTF-8の日本語版も配布されています。私はついでにstattraq-button-pluginも入れました。
StatTraqはそのままだとContent-TypeのHTTPヘッダやMETAタグが返らないようなので、ちょっといじりました。
$ diff -u wp-stattrqa/index.php.deafault wp-stattrqa/index.php --- wp-stattraq/index.php.deafault 2005-06-21 23:04:04.000000000 +0900 +++ wp-stattraq/index.php 2006-02-14 11:37:52.609387800 +0900 @@ -7,6 +7,7 @@ { require_once('../wp-admin/admin.php'); } +@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); $year = (int)getVar('year',date("Y")); $month = (int)getVar('month',date("m")); @@ -45,6 +46,7 @@ <style type="text/css"> @import 'styles/normal.css'; </style> + <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> </head> <body>
$ diff -u wp-stattraq/access_detail.php.default wp-stattraq/access_detail.php --- wp-stattraq/access_detail.php.default 2006-02-14 11:07:06.360279800 +0900 +++ wp-stattraq/access_detail.php 2006-02-14 11:36:28.919869800 +0900 @@ -6,6 +6,7 @@ { require_once('../wp-admin/admin.php'); } +@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); $line_id = getVar("line_id", null); $access_time = date("Y-m-d H:i:s"); $ip_address = "0.0.0.0"; @@ -24,6 +25,7 @@ <head> <title>StatTraq Access Detail</title> <link rel="stylesheet" type="text/css" title="style" href="styles/normal.css" /> + <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> </head> <body>
UIの日本語化が不要ならこれで十分なはず、と思ったのですがSummaryのタイトルやSearch Termsの検索文字が正しく表示されません。Page Viewsのタイトルは正常なのに 😕
素直にUTF-8日本語版を入れたほうが賢いかも。
Sorry, the comment form is closed at this time.