• Resolved Marco Panichi

    (@marcopanichi)


    Hi,

    Inside my single.php I used to use the method YasrDatabaseRatings::getVisitorVotes in order to:
    1) Check if YASR is active
    2) Get number and sum of votes

    The code was something like:
    if(class_exists(‘YasrDatabaseRatings’))
    {
    $votes = YasrDatabaseRatings::getVisitorVotes();
    $number = $votes[‘number_of_votes’];
    $sum = $votes[‘sum_votes’];
    }

    For some time now this code no longer works (the condition returns false).

    Maybe the methods have changed?

    How do I perform functions 1 and 2 above?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘check yasr existence and get number/sum of votes’ is closed to new replies.