Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, that will be very useful… Having tops by categories, like the ones we have in widgets, and having the possibility to insert them in the pages.

    I am looking for the same too.

    Finally, did you find a solution? I was looking for the solution.

    Thank

    I just hacked this out to add a switch to the kk_star_ratings() function (used to insert in your custom php code.)

    changelog:
    Plugin file: index.php

    ~ line 722 kk_star_ratings() function edited to pass an enabled switch:
    function kk_star_ratings($pid=false,$mgdc_rating_disabled=true)
    {
    global $kkStarRatings_obj;
    return $kkStarRatings_obj->kk_star_rating($pid,$mgdc_rating_disabled);
    }
    ~566 kk_star_rating() edited to pass an enabled switch:
    public function kk_star_rating($pid=false,$mgdc_rating_disabled=true)
    {
    if(parent::get_options(‘kksr_enable’))
    return $this->markup($pid,$mgdc_rating_disabled);
    return ”;
    }
    ~475 public function markup($id=false,$mgdc_rating_disabled=true)
    ~483 $disabled = $mgdc_rating_disabled; (was false)
    ~485 if(get_post_meta($id, ‘_kksr_ips’, true) AND !$disabled)

    Enjoy.

    PS – that hack was written for our application. It will default all to off, unless you set the switch on when you call kk_star_ratings() by kk_star_ratings($pid,false)

    You could change the hack to default to on by changing the three times “=true” is default set to “=false”

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Locking Ratings On Different Page?’ is closed to new replies.