 
  1.将附件[diggtop]文件夹复件到在e\public下 2楼下载
 
  2.在新闻内容模板<head></head> 将原来的 <script type="text/javascript" src="[!--news.url--]e/data/js/ajax.js"></script> 改为以下代码 <script type="text/javascript" src="[!--news.url--]e/public/diggtop/ajax.js"></script>
  3.修改在新闻内容模板 <table border="0" align="center" cellpadding="0" cellspacing="0" class="digg"> 。。。。。。 </table> 改为以下代码--------此处修正[!--news.url--]e/public/ 原为/cms/e/public/  <table border="0" align="center" cellpadding="0" cellspacing="0" class="digg"> <tr> <td class="diggnum" id="diggnum"><strong><script type="text/javascript" src="[!--news.url--]e/public/ViewClick?classid=[!--classid--]&id=[!--id--]&down=5"></script></strong></td> </tr> <tr> <td class="diggit" id="diggtop[!--id--]"><script type="text/javascript">checkdiggtop('[!--news.url--]','我要顶','我顶了',[!--classid--],[!--id--],0)</script></td> </tr> </table>
  介绍 使用ECMS官方数据库字段 diggtop 无须自行添加字段 本插件采用cookies记录用户已投票(节省数据库记录IP的空间), ECMS官方为数据库记录IP地址 diggtop文件下的index.php 为修改自官方的digg/indexp.php 
  自定义修改 1.<script type="text/javascript">checkdiggtop('[!--news.url--]','我要顶','我顶了',[!--classid--],[!--id--],0)</script> '我要顶','我顶了' 可以自定义修改为其它
  2.投票后返回的"谢谢支持" 可于ajax.js 151行修改
  3.修改记录用户投票的cookies保存天数    默认为1天    修改方法    修改ajax.js文件2处    89行 SetCookie('diggtop',saveid,1);   1改为你想要的天数    94行 SetCookie('diggtop',id,1);   天数和89行的一样
 
   各位老兄快顶我
  上传以下图片:
   
								 |