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

[Solved] Anonymous Comments

8 Posts
3 Users
0 Reactions
1,811 Views
Posts: 9
 ljcn
Topic starter
(@ljcn)
Active Member
Joined: 4 years ago

I'd like my users to be able to post a comment anonymously. Is this possible? Or could this be a dev request?

Topic Tags
7 Replies
Asti
Posts: 7334
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

@ljcn

Sure, it's possible. Just navigate to Dashboard > wpDiscuz  Forums admin page, edit the "Default Form", set the Name and Email fields not-required using the according option.

More info here: https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/manage-comment-forms/comment-form-builder/#comment_form_fields

wpDiscuz  anonymous commenting

As a result, the "*" symbol will disappear, i.e. these fields will become optional.

If you want to hide those fields at all, use the CSS codes below.

For hiding the email field use this CSS code: 

.wpdiscuz-item.wc_email-wrapper.wpd-has-icon {
    display: none;
}

For hiding the name field use this CSS code: 

.wpdiscuz-item.wc_name-wrapper.wpd-has-icon {
     display: none;
}

Put the code in the Top Admin Bar > Customize > Additional CSS > "Additional CSS" textarea, save it, delete all caches and check again. 

Please don't forget to press Ctrl+F5 (twice) on the frontend before checking.

Important: Before adding the code, you should uncheck the "Field is Required" checkbox.

6 Replies
 ljcn
(@ljcn)
Joined: 4 years ago

Active Member
Posts: 9

Thanks @asti !

This applies to guests, I'm hoping to provide a feature for logged in users that do not need to put their name / email address in anyway. It would be really cool to have a button that enables them to anonymise their post - still linked to their account for moderation etc, but rendered as 'anonymous' on the frontend. 

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

Illustrious Member
Posts: 7334

@ljcn,

You can use the solution provided by another user in this post: 

https://wpdiscuz.com/community/postid/5755/

 ljcn
(@ljcn)
Joined: 4 years ago

Active Member
Posts: 9

@asti That doesn't provide the user with the option either. I'll try and develop something. Will wpdiscuz work with the theme's functions.php file?

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

Illustrious Member
Posts: 7334

@ljcn,

Sure it works fine. 

 Tobi
(@tobi)
Joined: 6 months ago

Active Member
Posts: 4

@ljcn Did you developed a solution?

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

Illustrious Member
Posts: 7334

@tobi,

Here you can find the solution: https://wpdiscuz.com/community/troubleshooting/delete-username-in-source-code/#post-22994

Share: