Standing Tall

あれとかこれとか

Standing Tall header image 2
2007年7月7日

新しいサイト”わーどぷれすっ!”をオープンしました。

今後はWordPress関連の話題は全部このサイトに投稿していきます。プラグイン一覧もこの新サイトに移しましたので、ドウゾよろしくお願いします。

WPのプラグイン:WP_Identicon

2007年 2月 19日 · コメント1個 | とらっくばっくURL

説明:幾何学模様のアバターをコメント投稿者の横に表示。モンスターのアバターがはじけ過ぎとお感じならこちらどうぞ。

デモ:作者のページのコメント欄へ

WP ver.:2.0.x - 未検証、2.1 - オッケー

ダウンロード:WP_Identicon :: Dammit Jim!

導入:

  1. wp_identicon.phpと identicon フォルダをプラグインフォルダに入れて有効化
  2. 使用しているテーマのcomments.php を開く(wp-content/themes/[使用中のテーマ名]/内にあるはず)
  3. foreach ($comments as $comment)もしくは似たような箇所を探す
  4. このループ内に<p class="comment-author"><p class="comment-metadata">などのコメント投稿者名やメタデータを表示するためのコードがあるはず
  5. 上記コードのすぐ上に次のコードを挿入する
    <?php if (isset($identicon)) echo $identicon->identicon_build($comment->comment_author_email, $comment->comment_author); ?>
  6. 5で挿入したコードの上でループの外の適当な場所に次のコードを挿入
    <?php if (class_exists("identicon")) $identicon=new identicon;?>

設定:

  • デフォルトではメールアドレスで各コメント投稿者を区別しているが、これをIPアドレスで区別するには挿入するコードで comment_author_email の代わりに comment_author_IPを入れる
  • テーマのstyle.cssimg.identicon を追加して体裁を整える
    例:
    img.identicon{
    float:left;
    margin-right: 10px;
    margin-bottom: 5px;
    }
  • 管理画面>設定>Identiconで色や大きさの設定が可能

この他の「コメント」関連のプラグイン:

カテゴリー: WP プラグイン · WordPress

コメント/トラックバック1個 ↓

  • WP_Identicon :: Dammit Jim! MonsterID Icon

    1 WP_Identicon :: Dammit Jim! // 2007年 2月 19日 @ 4:24 AM

    [...] icoguo has kindly translated the install instructions to Chinese and Tai has translated them to Japanese. [...]

コメントをドウゾ!

お名前、メール、ウェブサイトの入力は必須ではありません
次のタグを使用することができます:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>