The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#8
|
||||
|
||||
![]() Quote:
this is how i came up with this, i edited showthread.php (search for // update views counter) and came up with this. Code:
// update views counter if ($vbulletin->options['threadviewslive']) { // doing it as they happen; for optimization purposes, this cannot use a DM! if ($vbulletin->userinfo['userid'] == 0) { // ignore guest } elseif ($thread['postuserid']==$vbulletin->userinfo['userid']) { // ignore thread poster } else { $db->shutdown_query(" UPDATE " . TABLE_PREFIX . "thread SET views = views + 1 WHERE threadid = " . intval($threadinfo['threadid']) ); } } else { // or doing it once an hour if ($vbulletin->userinfo['userid'] == 0) { // ignore guest } elseif ($thread['postuserid']==$vbulletin->userinfo['userid']) { // ignore thread poster } else { $db->shutdown_query(" INSERT INTO " . TABLE_PREFIX . "threadviews (threadid) VALUES (" . intval($threadinfo['threadid']) . ')' ); } } im trying to do the same exact thing only without having to edit the showthread.php |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|