• Resolved andrewf12

    (@andrewf12)


    Hi, wpDiscuz team!

    I was just testing a couple of features, and I noticed something. When users delete their accounts, their comments stay (which is good) and their username goes away once I clear the username cache; however, when a new user signs up (same username or different one) using the same email address and adds a profile picture, all the comments associated with that email address (including the deleted account) show that profile pic. Is there a way to prevent that from happening?

    Sorry, I’m not sure if that makes sense. Here’s a couple of pics:

    This is what it looks like when wpDiscuz is deactivated: https://snag.gy/4QUNo.jpg . The first and third comments use the same email address, but the first comment is the new account and the third comment is the deleted account.

    This is what it looks like when wpDiscuz is reactivated: https://snag.gy/yVGoW.jpg . The first and third comments use the same email address and the profile pic reappears for the deleted account.

    Is there a way to add a piece of code to re-enable the default WordPress function or link the profile pictures by username instead of email address if that makes sense? There’s a pretty important reason behind this. I’m sorry for the trouble and any confusion ??

    Thanks a lot, wpDiscuz!

    https://www.ads-software.com/plugins/wpdiscuz/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Please disable this option: https://screencast.com/t/TyQCn9ync

    Thread Starter andrewf12

    (@andrewf12)

    Yeah, that option was disabled. ??

    Plugin Author gVectors Team

    (@gvectors-team)

    Then it should work like default WordPress Comment system. I don’t see any difference on screenshots. Both have the same usernames.

    Thread Starter andrewf12

    (@andrewf12)

    Sorry, I know it’s very confusing. The difference I wanted to point out was the third comment in the screenshots. When you look at the first screenshot with wpDiscuz deactivated, the active account only has the profile pic.

    When you look at the second screenshot with wpDiscuz reactivated, both the active account and the deleted account (using the same email address) both have that same profile pic.

    It’s as if wpDiscuz is picking back up the deleted account’s email address and sharing the profile pic with the active account and deleted account, but default WordPress comments doesn’t pick back up the deleted account’s email address.

    Plugin Author gVectors Team

    (@gvectors-team)

    There is only an avatar issue. What avatar is that?
    Is that comes from Gravatar? If so, it’s correct, because Gravatar works based on emails. And comment author email is associated with that avatar. I don’t see wrong things. If you post a guest comment with this email on any site you’ll get the same avatar.

    Also please update to 3.2.2 and again make sure the option I’ve mentioned above is disabled. Delete all caches and purge CDN.

    Thread Starter andrewf12

    (@andrewf12)

    Hi, again!

    Thanks for your really prompt reply. I appreciate it!

    I’ve had Gravatar disabled. I’m using the Ultimate Member plugin where users can upload their own photo, so I just uploaded a random photo. I updated the plugin right now and I deleted the cache the Ultimate Member stores.

    I didn’t post as a guest. I created an account with [email protected] and made a post. Then I deleted the account. I created a new account with the same email address [email protected], uploaded a photo, and made another post.

    The new account with the uploaded is now sharing the photo with the deleted account. The default WP comments doesn’t share the photo with the deleted account (even though they both have the same email address). When I activate wpDiscuz, the new account shares the photo with the deleted account.

    Is there a way to keep the WP function for this? This is the perfect plugin for me. I’m sorry for the trouble ??

    Plugin Author gVectors Team

    (@gvectors-team)

    Also please deactivate Ultimate Member, and check this without that.
    It seems problem comes from Ultimate Member avatar to wpDiscuz integration.

    Thread Starter andrewf12

    (@andrewf12)

    Yeah, I do need Ultimate Member as well as part of the site. Both are important. Ultimate Member and the default WP function does work. The default WP comment function doesn’t apply the photo to the new account and deleted account. It’s only when I enable wpDiscuz. Is there a code or something that I could apply that allows the default WP comment function to occur instead?

    Thanks again for all your help! I really appreciate it.

    Plugin Author gVectors Team

    (@gvectors-team)

    Ok thank you,
    we’re going to test this and update this topic shortly.

    Thread Starter andrewf12

    (@andrewf12)

    Thank you so, so much! I’m really sorry for the bother. I really appreciate your support.

    Thread Starter andrewf12

    (@andrewf12)

    Hi, there!

    I know your team handles a lot of support requests. I was just wondering if you had time to determine the problem/find a solution?

    Thanks again.

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi andrewf12,
    We’ve found the issue and it’s already fixed. Please wait for the next 3.2.6 version, it includes all necessary changes. We’re planning to release it this week.

    Thread Starter andrewf12

    (@andrewf12)

    That’s great news! Thanks a bunch.

    Plugin Author gVectors Team

    (@gvectors-team)

    This issue can only be fixed if you put this code in your current active theme functions.php file:

    add_filter('wpdiscuz_author_avatar_field', 'um_avatar_fixer', 10, 4);
    function um_avatar_fixer($authorAvatarField, $comment, $user, $profileUrl) {
        if (class_exists('UM_API') && !um_get_option('use_gravatars')) {
            if (is_string($authorAvatarField) && $comment) {
                $authorAvatarField = $comment->user_id;
            }
        }
        return $authorAvatarField;
    }

    We decided don’t include this code in wpDiscuz core, it should be used separately like I mentioned above.

    Thread Starter andrewf12

    (@andrewf12)

    That’s perfect! Woohoo! Thanks a lot, guys!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Deleted account reopened’ is closed to new replies.