Topic: Topic view count should not increase if viewed by admin

This is not really a bug, but when I test the board (without making extra test topics) the view counters usually increase notedly.

I suggest the following patch in viewtoic.php (introduced variable $viewsincrement)

    $viewsincrement = ($forum_user['g_id'] == FORUM_ADMIN || $_SERVER['REMOTE_ADDR'] == $_SERVER['SERVER_ADDR']) ? 'num_views' : 'num_views+1'; //netticat

    $query = array(
        'UPDATE'    => 'topics',
        'SET'        => 'num_views='.$viewsincrement, //netticat
        'WHERE'        => 'id='.$id,
    );

Thank you for reading.

Re: Topic view count should not increase if viewed by admin

I don't think that we should include this feature into the core.

You can create a simple extension from your patch. Use "vt_qr_increment_num_views" hook for that.