Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


Number of Views in Voting Plugin won't updated

edited April 2012 in Questions
This discussion is related to the Voting addon.

After the installation of Voting plugin, every time I refresh page, the number of Views increased. so each posts had higher numbers of views.

But couple of days before, it suddenly changed. The number of views never increase unless I access the page from different computer from other place.

So my website looks like suddenly lost traffic. I really don't like it...

Is there any setting for the way of count the number of views of voting plugin ?? Or is there anything I missed like voting plugin is updated and count accurate numbers only now ?

Tagged:

Best Answer

  • peregrineperegrine MVP
    Answer ✓

    geez

    ./vanilla/applications/vanilla/models/class.discussionmodel.php

    Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

Answers

  • Did you recently upgrade vanilla? I believe they recently changed the way the view count is tabulated (as you mentioned by ip) in the database . If the voting plugin retrieves the number of views (countviews) from the table (discussion), you would probably have to change the core . It is, what it is.

    Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

  • peregrine said: you would probably have to change the core.

    Can I ask how I can do it ?

  • You would possibly have to modify it in discussionmodel.php. I don't really know, so I can't tell you how to do it. Maybe one of the developers will tell you if there is a config setting or how to set it. I saw something called $Configuration['Vanilla']['Views']['Denormalize'] but I don't really know what it does.

    Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

  • hi peregrine,

    thanks for your reply. where is discussionmodel.php file located ?

  • i thought it's in Voting addon folder :) and i found it but don't know what to do hahaha...

  • Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

Sign In or Register to comment.