hack the tkzy get recent comments
Recently Commented でtkzy_get_recent_comments.php でコメントのついた記事のリンクが parmalink で表示されないという長い間の疑問がようやく解決。感謝感謝。
方法は tkzy_get_recent_comments.php の24行目付近にある,
$permalink = "$siteurl/index.php?p=$comment->ID&c=1";を
$permalink = get_permalink($comment->ID)."#comments";へ変更するだけ。
ちなみに私は Mingus 辺りから tkzy_get_recent_comments.php をプラグイン化しています(単に Auther とか Discription とかを書いて pulgin フォルダに放り込んだだけですが…)。
追記: プラグイン化の方法(Hirobee サンからのpingが飛んできていて,方法を書いてないのに気付きました orz)
<?php の下の行に
/*
Plugin Name: tkzy get recent comments
Version: 1.0?
Plugin URI: http://tkzy.net/index.php?p=68
Description: Retrieves a list of the most recent commented posts and commenters. To install, add this line in menu bar(side bar) <ul><?php tkzy_get_recent_comments($limit = 10); ?></ul>
Author: tkzy
Author URI: http://tkzy.net/
*/
みたいな感じで書いておけばok。Descriptionはそのプラグインの説明とかインストール/設定方法なんかをかいておけばいいんじゃないでしょうか。
Über diese Eintragung
Titel: hack the tkzy get recent comments
- Verfasst von
- aka
- Eingeordnet unter:
- WordPress
- Tag:
- No tag for this post.
- Veröffentlicht:
- Montag, 21. März 2005
- Leser:
- Visited: 237193 times
- Kurs:
- Werbung:
-




(1 votes, average: 3 out of 5)
1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]