打开:在source\module\forum下,forum_viewthread.php打开,找到
C::t('forum_thread')->increase($_G['tid'], array('views' => $row['addviews']+1), true);
discuz_process::unlock('update_thread_view');
}
}
} else {
C::t('forum_threadaddviews')->insert(array('tid' => $_G['tid'], 'addviews' => 1), false, true);
}
} else {
C::t('forum_thread')->increase($_G['tid'], array('views' =>1), true, $tableid);
把上面代码里面的 3处 1 改成 3
例如:
C::t('forum_thread')->increase($_G['tid'], array('views' => $row['addviews']+3), true);
discuz_process::unlock('update_thread_view');
}
}
} else {
C::t('forum_threadaddviews')->insert(array('tid' => $_G['tid'], 'addviews' => 3), false, true);
}
} else {
C::t('forum_thread')->increase($_G['tid'], array('views' =>3), true, $tableid);
你的帖子只要1刷新显示就是3次!! |