Support » Plugin: Yasr - Yet Another Stars Rating » website super slow – China

  • Resolved divinelyshpongled

    (@divinelyshpongled)


    I installed this yesterday and promptly uninstalled it, as my site slowed to a crawl. I’m in China and have had problems with plugins using googleapi references before… I found some in the code for this plugin. I want to get them removed or at least let me know if I do remove them all manually, will I break the plugin?

    I’d love to use this plugin but 100% can’t if I don’t get rid of all the stuff that is blocked in China.

    Thanks,
    Jesse

    https://wordpress.org/plugins/yet-another-stars-rating/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dudo

    (@dudo)

    Hi Jesse,
    I’m so sorry for this.

    Can you please edit file yasr-functions inside the ‘lib’ directory and on line 33 change this

    wp_enqueue_style( 'jquery-ui','//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.min.css', FALSE, NULL, 'all' );

    to this?

    wp_enqueue_style( 'jquery-ui','//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css', FALSE, NULL, 'all' );

    I hope jquery cdn works in china.

    Please note that this style is needed only if you want to display stats for the [yasr_visitor_votes] shortcode ( read here for more info)

    If you don’t need it, I suggest you to put “no” at this question “Do you want show stats for visitors votes?” in yasr settings, so that file will never load.

    Best,
    Dario

    Thanks so much Dario, that worked perfectly.

    I have another problem – I need the ratings to be used and displayed only to certain login types. So for example, administrator and subscriber can view the ratings on the posts page, but editors and authors cannot.

    Is there any way to do this?

    Thank you so much!!

    Plugin Author dudo

    (@dudo)

    No sorry, this is not possible!

    Best,
    Dario

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘website super slow – China’ is closed to new replies.