Open: Under sourcemoduleforum, open forum_viewthread.php and find
- 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' => < ;b>1), false, true);
- }
- } else {
- C::t('forum_thread') ->increase($_G['tid'], array('views' =>1), true, $tableid);
Copy the code
Change the three 1's in the above code to N (the value you want)
For example:
- 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);
Copy code
|