Hi again,

here is a quick fix so that only page views from registered users are counted. I don't really suggest that this is included in the code, as it would be better to have an administrator option to enable/disable this, but I want to share this in case somebody else needs this.

Here are the changes. In modules/resources/RESOURCEVIEW.php, add the following at the beginning of the function updateAccesses():

// Don't update if user is not logged in
        if(!$this->session->getVar("setup_UserId"))
            return;

This will stop page updates for non-registered users.

To stop the update counter for downloads too, change the following in modules/attachments/ATTACHMENTS.php, at the end of the function downloadAttachment(). Change this line:

    $this->attachment->incrementDownloadCounter($this->vars['id']);

to the following

// Don't update if user is not logged in
if($this->session->getVar("setup_UserId"))
    $this->attachment->incrementDownloadCounter($this->vars['id']);

Cheers

Stephan