The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Question [Solved] Disable Comment for Guests but Allow Reply?
How-to and Troubleshooting
(@justbishop)
Active Member
Joined: 2 years ago
I found this thread and the code definitely works to remove the comment box for a user who's already commented, but can anyone assist with altering this code to make the condition based on a role (or guest)?
https://wpdiscuz.com/community/postid/10142/
For example, I plan on having zero other registered users on my WP site (so it's just me, admin). I'd like to prevent anyone else from leaving top-level comments, but still allow them to reply to the comments that I have left as the admin.
(@justbishop)
Active Member
Joined: 2 years ago
I didn't really have the content into a post to use as an example when I posted originally, since this is such a new project, but here you go. I've changed the "comment" terminology to "highlight":
https://ashleynting.com/reads/2024/02/01/camp-zero/
I'm trying to get away from Goodreads since it only Kindle syncs and displays highlights from Amazon-purchased books, and I don't much utilize the social aspect of the site anyway. Collecting my books and highlights is the main goal here, but I also love sharing highlights I find profound or moving in some way.
The goal is that only I can post highlights, but visitors can reply to and/or "like" them.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Feb 05, 2024 9:34 am
@justbishop,
I'll ask the developers and get back to you soon.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Feb 06, 2024 10:36 am
@justbishop,
We may suggest you the CSS solution:
.wpdiscuz_unauth .wpd-main-form-wrapper {display:none;}
Put 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.
(@justbishop)
Joined: 2 years ago
Active Member
Posts: 5
Feb 06, 2024 1:33 pm
@asti Thank you so much, this worked like a charm!