miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual | miniBB Mobile
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Do not count admin and/or mods viewing under 'Views'

Author PurpleCow
Registered
#1 | Posted: 18 Jan 2011 05:21 
Is it possible for the forum to prevent counting the admin and/or mods viewing the thread under 'Views' count?

Thanks
Author Paul
CEO
#2 | Posted: 18 Jan 2011 06:54 
It would be possible, but only if you modify the core file, bb_func_vthread.php.

Here's the line you may change:

$topic_views=$topicData[7]+1;

change to

if($user_id==1 or $isMod==1) $topic_views=$topicData[7]; else $topic_views=$topicData[7]+1;

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Do not count admin and/or mods viewing under 'Views' Top
Your Reply Click this icon to move up to the quoted message
 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Attract your miniBB-community, letting members
publish their own photos with the Photo album add-on!
Photo album addon for miniBB