• Resolved devsupportatcogora

    (@devsupportatcogora)


    Hello,
    I’ve implemented your plugin, but the link to report the comment are not working, the links url is only an hashtag.

    Is there anything I missed

    Kind regards,
    Luigi

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi, I see you use a minifier for JavaScript code. I assume that the code for this plugin only gets loaded on blog pages, not on the frontpage, but the cache for the minifier gets made on the frontpage, thus without the code for this plugin.

    If you disable this wpo-minifier plugin, just for testing, does this plugin work?
    If that helps, can you add or disable this plugin’s javascript for the minifier?

    Plugin Author Marcel Pol

    (@mpol)

    Thread Starter devsupportatcogora

    (@devsupportatcogora)

    Hi Marcel,

    thanks for your reply.
    I’ve tried to deactivate the Wp-optimize plugin with no luck, also without the minify the report links are hashtag

    Plugin Author Marcel Pol

    (@mpol)

    Strange, it should then load the JavaScript file correctly.
    The link is always a hashtag, and there is a JavaScript event attached that will do an AJAX request.

    Is it possible for you to install the plugin Query Monitor and check if the JavaScript file gets added in wp_enqueue_script()?

    • This reply was modified 4 years, 1 month ago by Marcel Pol.
    Plugin Author Marcel Pol

    (@mpol)

    Aha, I tested with the WP Optimize plugin. You can go to Dashboard > WP Optimize and select the advanced tab. For the JavaScript minification you can see the minified files. When you click on More Information, you can see which files were included.
    I assume this plugin’s file is not included.

    I don’t really know how to include it into that file, or how to make an exception. The people from WP Optimze will know more about that.
    You did read that FAQ entry that I posted earlier?

    Thread Starter devsupportatcogora

    (@devsupportatcogora)

    Hi Marcel,
    sorry for the slow reply, I’ve tried disabling the plugin but same result comes up.

    I may have some other issue in the code as I customized the comments.

    I read through the FAQ you sent, but it didn’t help.

    I will investigate further and let you know if I can fix the issue

    Plugin Author Marcel Pol

    (@mpol)

    Okay, if you need anything, let me know here.

    By the way, it is often better to use the plugin as is, so on updates you won’t lose any changes. Then you can have changes in extra custom code.

    If you want to change the text of the link, use code like:

    function my_zeno_report_comments_flagging_link_text( $text ) {
    	$text = '----<br>Report comment';
        return $text;
    }
    add_filter('zeno_report_comments_flagging_link_text', 'my_zeno_report_comments_flagging_link_text');
    Thread Starter devsupportatcogora

    (@devsupportatcogora)

    I customized the comments.php file to overwrite the custom WordPress one and the call back function, but thank for the tip

    Thread Starter devsupportatcogora

    (@devsupportatcogora)

    Hi Marcel,

    thanks to your last tip, I removed the custom code that I wrote in your plugin and added the filter in function. Problem fixed!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Links to report are empty’ is closed to new replies.