The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Show replies only t...
 
Share:
Notifications
Clear all

Question Show replies only to members

7 Posts
2 Users
0 Reactions
689 Views
Posts: 4
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@kimchiema)
Active Member
Joined: 1 year ago
[#8892]

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: 8207
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@kimchiema)
Active Member
Joined: 1 year 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@kimchiema)
Active Member
Joined: 1 year 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: 8 years ago

Illustrious Member
Posts: 8207
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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: 1 year ago

Active Member
Posts: 4
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 8 years ago

Illustrious Member
Posts: 8207
Asti
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@kimchiema 

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


Reply
Share: