可以計算評論總數,並且可以輸出評論一覽。
本站右側選單上就有這個 plugin 的示範效果。
目前版本:0.2
http://www.chweng.idv.tw/downloads/comments-status.zip
<?php echo comments_count(); ?>
<?php echo trackbacks_count(); ?>
<?php require(dirname(__FILE__).'/wp-blog-header.php'); ?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<h2>評論列表</h2>
<?php comments_archives('comment'); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<?php require(dirname(__FILE__).'/wp-blog-header.php'); ?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<h2>引用連結列表</h2>
<?php comments_archives('trackback'); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
沒什麼意外的話,應該是不會有改版了。
謝謝您的這個 plugin,好用。
不過「所有評論列表」,會把已刪除的和垃圾留言也一併列出,這一點可能需要修正一下。
謝謝。
評論由 Hemiola 發表 @ 四月 30 日, 2006 12:53 上午
修正了~
同樣的檔案請再下載一次、解壓縮後蓋掉原本的就可以了。
版號我也沒改,懶得再寫 change log 了*-*
評論由 C.H.Weng 發表 @ 四月 30 日, 2006 1:23 上午
不知道為什麼 翻到第三面就錯誤哩= ="
麻煩您了... 感謝
http://bibi.daxp.com/wp/wp-comments_archives.php?page=3
評論由 筆筆 發表 @ 四月 30 日, 2006 7:26 上午
請再試試看:)
評論由 C.H.Weng 發表 @ 四月 30 日, 2006 10:23 上午
可以了!
是不是把引用給拿掉了!?
嗯 感謝^^
另外我可以偷你的選單的伸縮功能嗎?
評論由 筆筆 發表 @ 四月 30 日, 2006 3:38 下午
我忘了我拿掉什麼了..+_+
不過我很認真數了一下你站上的評論數量,含引用的話總共應該是 39 個沒錯,
從 comment list 裡面也可以看到引用的內容,所以應該是拿掉了 spam 或未審核的內容吧……
另外那個選單請盡情夾走,如果夾不到的話我再幫你打包+_+
不過我是用很笨的方法自己拼裝 code 上去,所以不要妄想有什麼 plugin 可以做那個玩意兒+_+
評論由 C.H.Weng 發表 @ 四月 30 日, 2006 4:36 下午
哈哈...
我會依樣畫葫蘆的把他塞進去的= =+
感謝^^
評論由 筆筆 發表 @ 四月 30 日, 2006 6:42 下午
偷到了= =+
偷東西我最會啦XD"
(謎:這有啥好自豪的...)
接下來就是修改版面啦^^
評論由 筆筆 發表 @ 四月 30 日, 2006 6:48 下午
哇哈哈...
文章上面忘記註明顯示引用數目的語法了..
應該是「trackbacks_coun()」沒錯吧?
評論由 筆筆 發表 @ 五月 2 日, 2006 7:56 下午
抱歉 少一個t
應該是「trackbacks_count()」才對= =
評論由 筆筆 發表 @ 五月 2 日, 2006 7:59 下午
是的,你得到它了!
感謝你的提醒,我等等會補上說明。
評論由 C.H.Weng 發表 @ 五月 2 日, 2006 8:44 下午
話說你的小圖好漂亮啊 囧..
評論由 筆筆 發表 @ 五月 2 日, 2006 10:01 下午
Hello, nice site look this:
I have a following situation:
Wordpress (2.1) installed in "abc" directory (/abc/) and a .htaccess file modified as Wordpress said:
There is just one problem - when I load that .htaccess my [server's] error pages are being ignored - i.e. when I type wrong adress (www.myserver.com/blabla) it redirects me to the error page of the Wordpress template.http://phentermine-adipex-ionamin.hieldes.info phentermine adipex ionamin phentermine adipex ionamin
評論由 phentermine html order 發表 @ 三月 8 日, 2007 8:03 下午
您好, 謝謝您寫了這個外掛, 我有一個小問題, 如果輸出的地方不用文章排序, 只需要按日期排序所有留言, 要怎麼改呢? 謝謝您!
評論由 阿福 發表 @ 十月 15 日, 2007 12:25 上午
不好意思, 又是我...這個外掛真的寫得很好, 是我找到唯一一個有辦法呈現所有comment而且分頁的; 不過頁碼的link好像寫錯了耶! 點下去會變成文章的page, 並不是comment的page說...我點了你的comment頁, 也有這種情形喲!
評論由 阿福 發表 @ 十月 15 日, 2007 1:01 上午
我知道了,不過目前暫時沒辦法修正,等我一個月吧 XD
評論由 C.H.Weng 發表 @ 十月 15 日, 2007 12:57 下午
沒關係, 我有做了單獨一頁就ok了, 小改了頁碼的地方, 加上#comment可以直接連到該頁的comment欄, 另外我也翻譯了一個英文版, 再寄給您看喔! 真的很謝謝你寫了這個外掛, 我看wordpress.org的forum也很多人在找這個外掛哩!
評論由 阿福 發表 @ 十月 16 日, 2007 6:17 上午
嗨,我已經稍微看過囉,應該是因為主程式升級到 2.3 以後才出現的新問題,目前已經獲得解決。
您寫給我的信我有收到,內附的那個英文版連結似乎失效了。不過無論如何,都歡迎你改寫重新發布,方便的話記得附一下原出處,滿足我小小的虛榮心就可以了 XD
評論由 C.H.Weng 發表 @ 十月 29 日, 2007 11:07 上午
[...] Visit [...]
引用至 WordPress Plugins Database » Plugin Details » Comments Status @ 十二月 19 日, 2007 8:17 下午
I tried using the plugin but some asian characters were included in the code and it caused some errors. Do you have an English version of the plugin?
Thanks!
Sandra
評論由 Sandra 發表 @ 二月 27 日, 2008 1:26 下午
I've made a special English version for you. Hope this helps.
Please download at http://www.badongo.com/file/8018911
評論由 C.H.Weng 發表 @ 二月 27 日, 2008 6:11 下午
Thank you for the English version!
It was working great until I logged out and tried to log back in. I get the following error:
Warning: Cannot modify header information - headers already sent by (output started at /home/psmark/public_html/cctemp/wp-content/plugins/comments-status.php:1) in /home/psmark/public_html/cctemp/wp-login.php on line 12
I know the comments-status.php file uses the header() and so does wp-login.php and pluggable.php. They both conflict with the plugin. Any idea how to fix this?
評論由 Sandra 發表 @ 二月 29 日, 2008 10:15 上午
Try to disable the GZIP function at Option > Reading in your admin panel
評論由 C.H.Weng 發表 @ 三月 6 日, 2008 12:39 上午
It was already disabled.
評論由 Sandra 發表 @ 三月 7 日, 2008 11:08 下午
There is some linux-based servers suffer from this hard situation.
I'm sorry that I couldn't indicate the problem and fix it.
But I have a compromised solution.
There was only one header() at line 45 of this plugin, please modify this line from
header('Location: '.$_SERVER['PHP_SELF']);
into
$curpage=1;
This might works..
評論由 C.H.Weng 發表 @ 三月 8 日, 2008 9:08 上午
Hi C.H.
It fixed some of the problem.
Here is what I get when I try to post a comment:
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/comments-status.php:1) in /wp-content/plugins/subscribe-to-comments/subscribe-to-comments.php on line 817
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/comments-status.php:1) in /wp-includes/pluggable.php on line 329
Here is what I get when I log out:
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/comments-status.php:1) in /wp-login.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/comments-status.php:1) in /wp-includes/pluggable.php on line 379
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/comments-status.php:1) in /wp-includes/pluggable.php on line 380
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/comments-status.php:1) in /wp-includes/pluggable.php on line 381
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/comments-status.php:1) in /wp-includes/pluggable.php on line 382
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/comments-status.php:1) in /wp-includes/pluggable.php on line 329
評論由 Sandra 發表 @ 三月 9 日, 2008 3:40 上午
After editing the plugin file, you should save it as UTF-8 encoded without BOM.
I always use EmEditor to do that, if you don't have a Windows platform, please google out a text editor supports saving UTF-8 file without BOM on your own.
評論由 C.H.Weng 發表 @ 三月 9 日, 2008 9:02 上午
Thanks for sharing this plug-in! It's just what I needed. It mostly works great, except for the page numbering system. Clicking on page 2 works OK, but later page numbers don't. I'm seeing URLs for pages 3 and beyond that look like this:
http://techgrl.com/all-comments/?page=2?page=3
Has anyone else noticed this? Is there a solution? Thanks!!
評論由 Steve 發表 @ 四月 12 日, 2008 3:37 下午
You have only 20 comments so that page numbers 2 and later may not work properly.
And I'm wondering how you get the freak URL with parameter page=2?page=3 ?
評論由 C.H.Weng 發表 @ 四月 15 日, 2008 12:35 上午
[...] Comments Status 0.2 [...]
引用至 Wordpress 2.6 ile uyumlu eklentiler | alpibo @ 八月 14 日, 2008 4:13 下午
Same problem as Steve.
評論由 Li-An 發表 @ 十二月 18 日, 2008 6:35 上午