• zulumaster

    (@zulumaster)


    Hi,
    in the backend under the item “ratings items”, the number I see 4.2.
    But in the frontend it shows only 4.0 .
    How can I change this?
    I use the template gdrts–stars-rating–single–light.php, and i have changed the following.

     
    //alh begin:
                if (gdrtsm_stars_rating()->loop()->has_votes()) {
                  $_text_args = array(
                  'show_votes' => true,
                  'tpl_rating' => '%1$s / %2$s',
                  'tpl_votes' => array('singular' => '(%s Bewertung)', 'plural' => '(%s Bewertungen)')
                );
                gdrtsm_stars_rating()->loop()->render()->text($_text_args);
    //alh end
    

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    I am not sure why it is different, the changes in arguments you made don’t affect the rating output. Do you get same results with different templates?

    It can be caused by the cached pages on the front end, so try to clear cache too.

    Thread Starter zulumaster

    (@zulumaster)

    Yes, same results with “default” and “expanded” templates.
    May it be an incorrect setting in the: settings-> star rating ?
    Which settings are important?
    Or it doesn’t matter with this problem?

    Plugin Author Milan Petrovic

    (@gdragon)

    No, there is nothing in the settings to cause this. So far, I have no seen such problem, and only the cache was responsible for outdated ratings. Are you sure that you are looking the same post on the admin side as on the front end?

    Thread Starter zulumaster

    (@zulumaster)

    I have cleard the “Clear Stars Rating”,
    then, 3 browsers -> 3 diffrent votes on the same post.
    But, it still shows in backend under -> “Ratings Items” -> same post -> 2,7
    And in frontend (with default template) same post -> 2.0
    By the way:
    Comma (2.7) in the backend and point (2.0) in the front end? Does that matter?

    Thread Starter zulumaster

    (@zulumaster)

    Again:

    By the way:
    Comma (2,7) in the backend and point (2.0) in the front end? Does that matter

    borisv

    (@borisv)

    Clear/delete all cache data via ftp (including any cache scripts running).

    • This reply was modified 7 years ago by borisv.
    Thread Starter zulumaster

    (@zulumaster)

    Hi borisv,
    there is no cache-plugin running,
    no cache-script in the template-files
    and WP itself has (i guess) no cache-management.
    Browsercache is empty.

    But the same result. The second number after the comma is still a null.
    Could another plugin causing the error?

    Plugin Author Milan Petrovic

    (@gdragon)

    This looks like somethings is rounding values down, but I have no idea what, because I can’t reproduce this problem.

    Thread Starter zulumaster

    (@zulumaster)

    OMG
    today i searched 5h to find a solution.

    I found out one thing. When only the GD Rating System plugin is activated, it works fine. But when i activate all the other plugins (one after the other), then the error comes back.

    Plugin Author Milan Petrovic

    (@gdragon)

    Which one plugin exactly causes the problem?

    Thread Starter zulumaster

    (@zulumaster)

    My Test:
    First, in the plugin folder was only the GD Rating System plugin.
    – it works fine
    Then I added via ftp the other 40 plugins to the folder. (With a minus before the name. “-blabla”)
    – rating works fine
    Then i activated one after the other. (The minus removed and activated.)
    The plugin which caused the error is WP Resized Image Quality.

    BUT
    In an other WP installation, i have only WP Resized Image Quality and GD Rating System installed and running.
    AND
    – rating works fine

    So I don’t know, what/where exactly the problem was.

    Plugin Author Milan Petrovic

    (@gdragon)

    I have no idea what this can be. Plugin code has filters to modify a lot of things, and only plugin with that specific filter can modify the output. If that is not the case, then something more generic is causing a wider problem, but there is no way for me to reproduce that. In your case, a combination of some plugins is doing this, but it looks more like the wider error, and not directly related to rating plugin.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘The Plugin show not the correct rating number.’ is closed to new replies.