Hide comments from logged out users  

  RSS

Marisha
(@slpnow)
Member Customer
Joined: 3 years ago
Posts: 4
29/12/2016 7:07 pm  

Hi there,

I'm just wondering if it is possible to hide comments from users who aren't logged in? I'm running a membership site.

I've been so impressed with the wpDiscuz plugin!  Thank you!


Quote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2928
29/12/2016 7:15 pm  

Hi Marisha,

this option is located in Dashboard > Comments > Form admin page. Just edit the Default Comment form and configure it.


ReplyQuote
Marisha
(@slpnow)
Member Customer
Joined: 3 years ago
Posts: 4
29/12/2016 7:23 pm  

Thanks for the quick reply!

I was looking at that, but I'm not sure how I would configure it. Any suggestions/resources?

My membership consists of posts that are restricted by my membership plugin (MemberPress). I only want members to be able to see the comments.

Screen Shot 2016 12 29 at 8.22.09 AM


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2928
29/12/2016 7:47 pm  

I'm sorry but we're not familiar with that plugin.

To disable comments for Guests just choose the "No" for "Allow guests to comment" option.


ReplyQuote
Marisha
(@slpnow)
Member Customer
Joined: 3 years ago
Posts: 4
29/12/2016 7:53 pm  

I figured out how to restrict logged out users from commenting, but I don't want logged-out users to be able to view any existing comments. I will try to research elsewhere.


ReplyQuote
Marisha
(@slpnow)
Member Customer
Joined: 3 years ago
Posts: 4
30/12/2016 2:18 am  

I did some research, and it sounds like it's an issue with the WordPress hooks. According to your documentation, the plugin should work with the typical WordPress hooks. However, that might no longer be the case? ( https://wordpress.org/support/topic/hooks-for-wpdiscuz/)

My membership plugin relies on the comments_template filter hook to hide comments.

Will this bug be fixed? Or is there something I can do in the meantime? 


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2928
30/12/2016 1:36 pm  

Hi Marisha

I don't know what hook and how it uses your Membership plugin. wpDiscuz is being loaded through <?php comments_template() ?> function and it hasn't any bug here. If some plugin can't do something with other plugin, it means these plugins are incompatible with each other.

I'm sorry but I don't know the functions and core logic of this plugin,  I can't say where exactly it lost. It would be better to ask the same question to Membership plugin support.


ReplyQuote
Daisy Peel
(@daisypeel)
Member Customer
Joined: 2 years ago
Posts: 25
19/07/2018 12:34 am  

I too love this plugin, it's really perfect. I don't know if you found a solution to your problem but I use DAP (digital access pass) and I was able to set it such that only users of certain products could see the comment form (ie silver members couldn't but gold and platinum could). You may be able to find some PHP to solve your problem. I did find this information, not sure if it will work, but you might try it:

https://stackoverflow.com/questions/22585442/wordpress-how-to-hide-comments-to-non-logged-users


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 2903
21/07/2018 4:25 pm  

Hi Daisy Peel,

Thank you for sharing this information. 


ReplyQuote
Rachel stinson
(@rachel-stinson)
Active Member
Joined: 3 months ago
Posts: 6
03/05/2019 11:06 am  
Posted by: Marisha

Hi there,

I'm just wondering if it is possible to hide comments from users who aren't logged in? I'm running a membership site.

I've been so impressed with the wpDiscuz plugin!  Thank you!

commentlist {
  display:none;     
}

.logged-in .commentlist {
  display:inline;    
}

try using this code.  I have searched it out. it works. 


ReplyQuote
Share: