Support jOOmla! Autoit!
增加文章右上角三个小图标被点击的统计 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-07-30 | View Count View: 11813 | Digg Count Digg: 55

数据库执行:

CREATE TABLE `mos_index2` (
  `id` int(11) NOT NULL auto_increment,
  `type` tinyint(1) NOT NULL default '0',
  `contentid` int(11) NOT NULL default '0',
  `dat` timestamp(14) NOT NULL,
  UNIQUE KEY `id` (`id`)
) TYPE=MyISAM ;

 index2.php里增加:

$stattype=0;
if ($task == "emailform") $stattype=1;
if ($task == "view") $stattype=2;
if (isset($do_pdf) && $do_pdf==1) $stattype=3;
if ($stattype>0) {
   $query="insert into #__index2 (id,type,contentid) values ('',$stattype,$id)";
   $database->setQuery( $query );
   $database->query();
}

针对文章上的"PDF" 、"Print" 、"Email"三个地方被点击的简单统计, 看结果要到库里看,使用Phpmyadmin之类的...

 


Permanent URL: http://www.autoit.cn/index.php/content/view/63/25.html

Shares: Google书签 Yahoo书签 雅虎收藏夹 365Key网摘 新浪ViVi 百度收藏 天极网摘 diglog 和讯网摘 POCO网摘 YouNote网摘 博拉网 天下图摘 spurl blogmarks BlinkList reddit digg Del.icio.us   |  Tags: 统计  

 
不装组件也让你的文章显示出关键字来--[1]   DocMan组件1.3 rc2 使用过程中的问题解决