Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Mehmet Tahta

    (@x12x63)

    I didn’t used it. It gives HTTP 500 error when i want to run it. While waiting your response, i look around the disqus plugin and changed these lines and fixed it myself. I am using mod security and wordfence. Mod security blocks your plugin because it has “eval” code line in it. Check my first message, it was access log which i get from Plesk.

    In snippet-ops.php file at 352 line number, you use eval. Eval is mostly used for illegal things, so mod security blocks it. If is there any way to change the code without using eval, you should do it.

    Thread Starter Mehmet Tahta

    (@x12x63)

    Oh, totally my bad. Yes its pretty cool.

    I fixed the problem myself. I changed class-disqus-public.php file, I added new lines to these lines:

    // Don't load any Disqus scripts on feed pages.
    if ( is_feed() ) {
    	return false;
    		}

    under these lines, i added:

    if ( is_front_page() ) {
    	return false;
    }

    It works, but i am not sure what will i do after this plugin updated.

    Thread Starter Mehmet Tahta

    (@x12x63)

    Hello Shea,

    I used only removing disqus from home page snippet. I copied the codes from your Github page, which you can reach at: https://github.com/lukecav/code-snippets-wp-speed-up/blob/master/remove-count.js-in-disqus-from-loading-on-homepage.code-snippets.xml
    I don’t use anything else. I disabled mod security and whitelisted my ip from WordFence plugin, then i could run this plugin. But unfortunately it don’t works.

Viewing 3 replies - 1 through 3 (of 3 total)