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

[Solved] disable email necessity for logged in users

14 Posts
2 Users
3 Reactions
1,964 Views
Posts: 8
Topic starter
(@pbaharan)
Active Member
Joined: 3 years ago

Hi

First of all, thank you for your excellent plugin.

Secondly, I apologize for not knowing English well

 

We use the Digits plugin for users registeration.

https://digits.unitedover.com

with this plugin Users can register and log in without adding an email

 

before installing the wpDiscuz plugin, WordPress allowed users (logged in or Guest) to submit comments

But after installing the wpDiscuz plugin, only guest users can comment and the logged in users see this error:

“Some of field value is invalid”

While the email field is not displayed for logged in users

 

Of course, we have set two things:

1- we disable this option:

“Comment author must fill out name and e-mail”

from

Dashboard > Settings > Discussions

2- We disabled the “field is Required” option in the Form Builder > Email field

 

We also looked at this:

after fill out email field for a user (from admin) the problem solved

so the error is related to email field

 

it is a sample user for test:

user=9351587445

pass=123

https://einsad.ir/?login=true

 

test page:

https://einsad.ir/me-master/

13 Replies
Posts: 8
Topic starter
(@pbaharan)
Active Member
Joined: 3 years ago

i think changing the default behavior of wordpress (in this case, ability to commenting for users that have not email) should be done with the permission of the administrator.

or at least the admin can control it

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

Illustrious Member
Posts: 7664

@pbaharan,

Could you please send the admin login details to info[at]gvectors.com email address? I'll ask the developers to check the issue for you.

Posts: 8
Topic starter
(@pbaharan)
Active Member
Joined: 3 years ago

hello and very thanks for your response

i send admin login details to info[at]gvectors.com

I provided a sample site with another domain

This sample has only two plugin for more comfortable test:

DIGITS plugin and wpdiscus

All settings are similar main site

Posts: 8
Topic starter
(@pbaharan)
Active Member
Joined: 3 years ago
  • gaust user:

with wpdiscus = They can submit comment

without wpdiscus = They can submit comment

 

  • logged in users (with email address in profile):

with wpdiscus = They can submit comment

without wpdiscus = They can submit comment

 

  • logged in users (without email address in profile):

with wpdiscus = They can not submit comment

without wpdiscus = They can submit comment

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

Illustrious Member
Posts: 7664

@pbaharan,

Sorry, for the late response. Could you please leave the email subject here to allow us to easily find it?  

Posts: 8
Topic starter
(@pbaharan)
Active Member
Joined: 3 years ago

hello again

subject is same as this topic title:

disable email necessity for logged in users
2 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7664

Thank you @pbaharan,

I'm going to ask the developers to check the issue for you. I'll update the topic asap.  

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

Illustrious Member
Posts: 7664

@pbaharan,

The issue is fixed by our developer.

We've added a new hook in the wpDiscuz plugin codes. Please copy the whole wpDiscuz folder to your main website, then put the code below in the current active theme functions.php file:

add_filter("wpdiscuz_commenter_email", function ($email) {
    return uniqid() . "@example.com";
});

It'll work fine on your main website as well. 

The changes will be included in the new version of the wpDiscuz plugin, so you can update the plugin without any worries. 

However, the code added in the functions.php file should be kept. 

Posts: 8
Topic starter
(@pbaharan)
Active Member
Joined: 3 years ago

hello

and very thanks for your kindness and support

problem solved.

On behalf of the Iranian people, I greet you.

It is not possible for us to buy from you due to US sanctions.

Otherwise, to thank you and need your addons, I would definitely buy.

Thanks again

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

Illustrious Member
Posts: 7664

@pbaharan,

We'd really appreciate and be thankful if you leave a good review on the plugin page. This is the best way to say thank you to this project and support team.

Posts: 8
Topic starter
(@pbaharan)
Active Member
Joined: 3 years ago

There is another problem that is almost related to this issue

we want to disable commenting for logged out user

in Dashboard> Settings> Discussions

this option is checked :

- Users must be registered and logged in to comment

but However any guest user can still leave comment

when i disable wpdiscus, guest user must login

you can check in from that sample site

thanks

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

Illustrious Member
Posts: 7664

@pbaharan,

Please read this doc: https://wpdiscuz.com/docs/wpdiscuz-documentation/getting-started/custom-comment-form/comment-form-settings/#only-loggedin  

(@pbaharan)
Joined: 3 years ago

Active Member
Posts: 8

@asti

ok
that's right
sorry

Share: