The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#13
|
|||
|
|||
![]()
Here we go. Hopefully this will display OK. It's part of aa mod which counts the number of times an article is viewed in preview mode, since I always use full article display in sections.
Code:
if (self::VIEW_PREVIEW == $viewtype) { if ($increment_count) { if (PreviewViewCount::$content->isSection() && PreviewViewCount::display()) { ExtendedDatabases_Query::write(array( 'query' => 'UPDATE `%1$scms_nodeinfo` SET `preview_view_list` = `preview_view_list` + 1 WHERE `nodeid` = %2$d', 'params' => $this->content->getNodeId() )); if (!defined('PREVIEW_COUNT_FIRST')) { ExtendedDatabases_Query::write(array( 'query' => 'UPDATE `%1$scms_nodeinfo` SET `preview_view_first` = `preview_view_first` + 1 WHERE `nodeid` = %2$d', 'params' => $this->content->getNodeId() )); define('PREVIEW_COUNT_FIRST', true); } } } } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|