• Resolved woowaa

    (@soyoyo)


    This is a plug-in that I wanted completely.

    By the way, can I change the location of the report button?
    In my theme, the Report button occupies an unnecessary position and the design is not clean.
    Is there a way to change the location?
    Or is there a code for the report button that can be modified directly in the comments file?

    Thank you for your effort.

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

    (@mpol)

    Hi,
    Can you share the address to a page where there are comments? Maybe it is just some CSS that is needed. It is not always easy to make it work on every theme. I would be happy to take a look and see if it can be solved with some simple CSS.

    Thread Starter woowaa

    (@soyoyo)

    That’s really thoughtful of you.
    This is my comment page, but unfortunately I can’t turn on the plugin now.
    So I brought you an example screenshot with the plugin on!

    >> my comment page
    >> my example screenshot

    Maybe it’s because I didn’t allow the reply function.
    The position I want for the report button is next to the time.

    I’d be glad if you could understand.
    Thank you.

    Plugin Author Marcel Pol

    (@mpol)

    Hmm, it should be part of the html right after the something like a class="comment-reply-". I have no idea how it would work out on that page.
    If you can enable it again, I can take a look where in the page and the html it ends up.
    I will be away this afternoon (in my timezone), but will do my best to take a look later.

    Thread Starter woowaa

    (@soyoyo)

    Thanks a lot!
    I made a temporary mirror site.
    It doesn’t look the same, but it has the same code.
    I’d be glad if you could see it.

    HERE

    In the process of copying, the report button was very pretty when I turned on the threaded option.
    (threaded option in discussion > Enable threaded (nested) comments – levels deep)
    I think that’s the problem.

    Thank you!

    Plugin Author Marcel Pol

    (@mpol)

    Ouch, that is not easily doable with CSS.
    Thank you for posting that anyway.

    If you want me to take a look at the comments.php template, you could send me the zipfile of the theme. It might be that by creating a child theme and adding code to the comments.php template this might work. I am not sure if it is really worth it.

    Did you already look at the plugin Crowd Control? It is a fork of the same original plugin, but rewritten in quite a different way. It seems not to be maintaned anymore, but it might be worth a try.

    Thread Starter woowaa

    (@soyoyo)

    Thank you for watching!
    I used the Crowd Control plugin after reading your comments.
    It seemed to work, but there was another problem with my theme.

    Anyway, I’m already transforming the comments.php file from the child theme,
    If you tell me the insertable code in comments.php, I can apply it to the desired location.
    You don’t have to worry about the design.
    But I’m not sure if it’s okay to send a theme because I’m using a paid theme.
    It’s worth it to me, so if it’s not hard, I’d appreciate it if you could help me!

    Sorry for the complications!
    Thank you.

    Plugin Author Marcel Pol

    (@mpol)

    Hi, you could add this code to functions.php of your child theme:

    function remove_flagging_link_to_content() {
    
    	remove_filter( 'comment_reply_link', array( 'Zeno_Report_Comments', 'add_flagging_link_to_reply_link' ) );
    	remove_filter( 'get_comment_text' , array('Zeno_Report_Comments', 'add_flagging_link_to_content') );
    	remove_action( 'comment_report_abuse_link', array( 'Zeno_Report_Comments', 'print_flagging_link' ) );
    
    }
    add_action( 'init', 'remove_flagging_link_to_content', 99, 0 );

    You can add this code to comments.php in the loop:

    if ( class_exists( 'Zeno_Report_Comments' ) ) {
    	define( 'no_autostart_zeno_report_comments', true );
    	$zeno_report_comments = new Zeno_Report_Comments;
    	echo $zeno_report_comments->add_flagging_link_to_content( '' );
    }

    In my test install I still see the standard button as well, I have no idea why that happens ??

    Can you manage to get this going? You can find the loop in your comments.php?

    Sending me the theme would be fair use for debugging purposes. If you took a contractor, the same thing would happen.
    And I am happy to help, no worries. I don’t like the code of this plugin too much though, it is not really my taste.

    Thread Starter woowaa

    (@soyoyo)

    Thank you so much!!
    I solved the problem thanks to you.

    As you said, the standard button continued to appear regardless of function.php.
    But thanks to you, I was able to find the loop.

    I moved the Reply Button to the position I wanted and set it invisible.
    And Report Button appeared there!
    It doesn’t seem to be a standard solution, but it was able to get the results I wanted!

    It’s all thanks to you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can I change the location of the report button?’ is closed to new replies.