Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author lienann

    (@lienann)

    Hi, mgris

    Thank you for your feedback.

    1) Can show the code used for Star “Rating Field” in your site template ?

    2) Do you use http or https on your site ?

    Thread Starter Micka?l Gris

    (@mgris)

    Hi,

    1) First I try:
    (on page.php with ACF field OK on Back Office)

    <?php
    $value = get_field('notation', $post->ID, FALSE);
    
    $avrg  = ( ! empty($value['avrg']) ? $value['avrg'] : 0 ) ;
    $votes = ( ! empty($value['votes']) ? $value['votes'] : 0 ) ;
    echo "rating: $avrg; votes: $votes";
    ?>

    Show: r”ating: 0; votes: 0″ OK. But I can’t rate.

    I try this (like any ACF Field):
    <?php the_field('notation', $post->ID); ?>
    But nothing show. All is hidden (i see a result in the source code).

    2) HTTP, on localhost

    Plugin Author lienann

    (@lienann)

    Can I ask you to change FIELD_NAME to FIELD_KEY, and test a results?
    Like this: <?php the_field('FIELD_KEY', $post->ID); ?>
    I would really like to understand a problem.

    Thread Starter Micka?l Gris

    (@mgris)

    OK, I change FIELD_NAME to FIELD_KEY. Same problem.

    Plugin Author lienann

    (@lienann)

    Do you have a time to investigate the problem? Can we discuss the problem via skype, e-mail or other way?

    Thread Starter Micka?l Gris

    (@mgris)

    OK, it’s a jQuery conflict. When I stop using enqueue_script(JQUERY_LIBRARY) in functions.php on my theme, the problem is solved.

    <?php the_field('notation', $post->ID); ?> work great.

    I never had a problem with this Theme before. But that seems to be the problem.

    Plugin Author lienann

    (@lienann)

    Thank you for help!
    In the plugin I’m using the standard WP jQuery library, activating it through wp_enqueue_script
    (https://github.com/lienann/acf-starrating/blob/master/acf-starrating.php line 121).
    Am I right think, that you use non standart version of jQuery in the theme, due to which there is a library conflict?
    Could you write me theme name (if it available in the internet) or used jQuery library version? I would like to test my plugin compatibility more detail (other users may have same problem(( ).
    My e-mail: [email protected]

    Thread Starter Micka?l Gris

    (@mgris)

    It’s OK, and it’s Work now.
    The theme is old and not use the standard WP jQuery library. So be careful if library is added manually.

    I changed my note on your plugin!
    Have a nice day.

    Plugin Author lienann

    (@lienann)

    Thanks, you too!

    murugan5023

    (@murugan5023)

    Hi i have used star rating plugin in my project. I need to vote via admin end. But plugin says admin end the star rating is in inactive.
    How to enable the voting action in admin end. This option is possible or not.

    Thanks,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Not Working’ is closed to new replies.