miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · Manual ·
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

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

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

Thanks

Author Paul
Lead Lead Developer
#2 · Posted: 18 Jan 2011 06:54Reply Quote
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'
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

BB code for the Bold StyleBB code for the Italic StyleBB Code for the PictureBB code for the URLUpload a File

  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Private Messaging add-on: allow your miniBB-forums members to communicate with each other.