V
V
vadiminter92015-03-15 20:02:15
Classmates
vadiminter9, 2015-03-15 20:02:15

How to increment the class button counter on your site from classmates?

On every page of my site there is a button "Class!" from classmates with a counter. The button is bound to the URL of the page. Everyone who clicks it will have an entry in the activity feed in classmates. If someone puts the class of this entry in the feed, then the counter on the site does not increase. Can this be fixed?
To display the button, I use the function (in did I send the URL of the page.):

function renderOk(d, id, did, st) {
    var js = d.createElement("script");
    js.src = "http://connect.ok.ru/connect.js";
    js.onload = js.onreadystatechange = function () {
        if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
            if (!this.executed) {
                this.executed = true;
                setTimeout(function () {
                    OK.CONNECT.insertShareWidget(id, did, st);
                }, 0);
            }
        }
    };
    d.documentElement.appendChild(js);
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Ozhiganov, 2015-03-18
@vozhiganov

The external button "Class" does not take into account the classes of a particular entry on the user's page, but only those that were made using it itself.
So, alas, it can't be fixed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question