Discuz! X modify "email verification status" and "Avatar Upload status" in batches.

Source: Internet
Author: User
Discuz! X modify "email verification status" and "Avatar Upload status" in batches.

In the anti-irrigation settings, you want to enable "force new user verification to activate the mailbox" and "force new users to upload the avatar". However, after the settings, the old members cannot see the "reply" button. Only the "post" button is displayed.

I know that if you click "post", you will be prompted to re-verify the mailbox and upload the avatar. However, the old members have already verified the mailbox and the Avatar is clearly in use, why is it subject to this setting?

So I wonder if I can change the existing member's email verification status and Avatar Upload status to "yes" in batches, so that the anti-irrigation settings will not affect old members, only new members are restricted.

Q: Which table indicates whether the user has verified the email address and uploaded the avatar?

Q: For SQL code, you can modify these two parameters in batches.


Implementation method:

If common_member emailstatus avatarstatus is set to 1, it is activated or has an avatar.

Batch modification method:

Discuz! X the background webmaster executes database commands (in red)

Update table name set project = verify where uid <= newly registered Old Member ID value

  1. Update cdb_common_member set emailstatus = 1 where uid <= 100

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.