1、在织梦程序的plus文件夹新建php文件并命名为feedcount.php,在其中添加代码:
| 1 2 3 4 5 6 7 8 9 | document.write("共有<?php
	require_once(dirname(__FILE__)."/../include/common.inc.php");
	$row = $db->GetOne("select count(*) as fc from dede_feedback where aid='{$aid}'");
	if(!is_array($row)){
		echo "0";
	}else {
		echo $row['fc'];
	}
?>位用户了发表评论"); | 
2、在要显示评论总数的位置添加JS调用代码:
| 1 | <script type="text/javascript" src="{dede:field name='phpurl'/}/feedcount.php?aid={dede:field.id/}"></script> | 
3、保存文件即可。
 
								 
								 
								 
								 
								 
								 
								 
								 
								 
								 
								 
					