Movabletype Plugin アクセスランキングプラグイン JSONAccessRankingを作成しました。Google Analyticsのレポート情報からユニークビジター数情報を取得し、JSONファイルでデータ生成します。jQueryを使って、JSONデータをリスト表示させます。実装なども簡単に行えます。 先日、Google Analyticsのデータからアクセスランキングを生成するPerlスクリプト - Blog on Publickeyというエントリーを読みまして、「あれ?APIあるんだ。Perlでデータ拾えるんだ。じゃMovabletypeでもできるね」ということで、勉強も兼ねてMovabletypeアクセスランキングプラグイン: JSONAccessRankingを作ってみました。 アクセスランキングプラグインといえば、Movable Type 備忘録 - ローテーシ
昨日エントリーした「Movable Type 4.1 / MTOS における配列とハッシュの利用方法」に加え、MT4.1/MTOS では算術演算子の利用が可能になりました。 詳細は後述しますが、可能な演算は、 加算(+) 減算(-) 乗算(*) 除算(/) 剰余(%) インクリメント(++) デクリメント(--) で、変数の演算結果を同一変数に保持したり、MTIf タグ等での判定や、判定と同時に演算すること等が可能です。 ということで、こちらについても以下に利用方法をまとめてみました。なお、利用可能と思われるテンプレートタグは下記の通りです。 MTIf MTUnless MTGetVar MTSetVar MTSetVarBlock MTSetVarTemplate 1.加算 フォーマット op モディファイアに"+"または"add"を設定します。定義済みの変数に加算する場合は value
Movable Type で MySQL 5を利用している際に、 ブログ本文などに含まれる「~」という文字などが「?」に文字化けする 日本語のタグが合算できない(Aブログ記事とBブログ記事に同じ日本語のタグを付与した場合、タグ一覧などで2件とならず、それぞれ1件として表示される) といった不具合を解消する方法を紹介します。 すでに多くのサイトで紹介されているので目新しい情報ではありませんがとりあえず。 1.原因 タイトルの不具合が生じる原因は、対象テーブルのカラムの照合順序が「ujis_japanese_ci」になっているためのようです。この照合順序を「utf8_general_ci」にすることで解消しているようです。 ちなみに、「照合順序」とはデータベースから select する際のルールを示すもののようで、 ujis/utf8:文字コード japanese/general:照合形式 c
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く