The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Show replies only t...
 
Share:
Notifications
Clear all

Question Show replies only to members

7 Posts
2 Users
0 Reactions
166 Views
Posts: 4
Topic starter
(@kimchiema)
Active Member
Joined: 4 weeks ago

Hello, can you please tell me if there is an option to show the replies only to logged in members? Basically, I want to hide the comment replies from guests, thank you.

6 Replies
Asti
Posts: 7508
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi,

You can use the CSS code like this:

#wpdcom.wpdiscuz_unauth .wpd-reply {display:none;}

Insert the code in the "Custom CSS code" textarea, located in the Dashboard > wpDiscuz > Settings > Styles & Colors admin page.

Don't forget to delete the caches before checking.

Or js code:

jQuery(document).ready(function(){
Β  Β  Β jQuery('#wpdcom.wpdiscuz_unauth .wpd-reply').remove();
});

Here are the instructions on how to properly add JavaScript to WordPress: https://wordpress.com/go/website-building/how-to-properly-add-javascript-to-wordpress-3-top-methods/

Reply
Posts: 4
Topic starter
(@kimchiema)
Active Member
Joined: 4 weeks ago

Wow, thank you so much for your fast and solving response. I've added the CSS, it works, and it would be great if when the users click the "Show reply" instead of showing nothing, to show some text like "The replies can only be seen be members".

Thank you

Reply
Posts: 4
Topic starter
(@kimchiema)
Active Member
Joined: 4 weeks ago

Or is it possible to show the reply only to the original poster, even if they're guests?

Reply
3 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7508

Posted by: @kimchiema

Wow, thank you so much for your fast and solving response. I've added the CSS, it works, and it would be great if when the users click the "Show reply" instead of showing nothing, to show some text like "The replies can only be seen be members".

I'd suggest you use this CSS code:Β 

#wpdcom.wpdiscuz_unauth .wpd-reply >.wpd-comment-wrap {display:none;}
#wpdcom.wpdiscuz_unauth .wpd_comment_level-2.odd:before {
    content: 'Please login to see the replies';
    display: flex;
    justify-content: center;
}

In this case, the previous CSS code should be removed.

Β 

Reply
(@kimchiema)
Joined: 4 weeks ago

Active Member
Posts: 4

@asti that worked perfect.

Do you think it's possible to have the reply visible only to the original poster? For example, to have the link that's sent to their email say something like url/#comment-123&logged=1 , where the logged parameter lets them see the reply?

Thanks

Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7508

@kimchiemaΒ 

I'm sorry, but there is not an easy solution I can share here.Β 

Reply
Share: