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
Notifications
Clear all

[Solved] Disable users being able to "delete all their comments"?

3 Posts
2 Users
0 Reactions
1,854 Views
(@gutterboy)
Eminent Member
Joined: 8 years ago
Posts: 25
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
  [#4762]

Hello,

I'm just wondering if it's possible to disable the option for users to be able to "delete all their comments" - the option that shows up within the "My content and settings" window?

Thanks!



   
Elvina
(@elvina)
Support
Joined: 7 years ago
Posts: 1403
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
 

Hi @gutterboy,

There are few ways to do that:

1. You can hide the whole My Content and Settings" button. Just navigate to Dashboard > Comment > Settings > Comment Form admin page, and enable the "Hide My Content and Settings" option in the "Comment Form components" section.

More info: https://wpdiscuz.com/docs/wpdiscuz-documentation/settings/comment-form/#components

2. You can also hide (via CSS) the delete button from the Activity tab. In this case, the users won't see the delete button and delete the comments. 

For registered users:

.wpd-delete-content.wpd-not-clicked {
display:none !important;
}

For guests: 

.wpd-user-settings-button-wrap:first-child {
display: none !important;
}

The whole activity tab can be hidden by using this CSS code:

.wpd-wrapper .wpd-list-item.wpd-active {
display: none !important;
}

All CSS codes should be added in the  Dashboard > Comments > Settings > Styling admin page  "Custom CSS  code" textarea.

Please don't forget to delete all caches and press CTRL+F5(twice) in the frontend before checking.



   
(@gutterboy)
Eminent Member
Joined: 8 years ago
Posts: 25
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
 

Great - thanks very much!



   
Share:
Scroll to top