Announcement

Collapse
No announcement yet.

Automatically merge Users with same eMail

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automatically merge Users with same eMail

    The board I was migrating from is UBB6.x, which has not checked for duplicate eMails. Now I have the problem that from the around 5500 Users there are a lot that has duplicate eMail Adresses. It's very time consuming to go through the tables and do a merge for every user. Is there a way to do this automatically? My Testboard has no existing users before import.
    vBExperience - Collect and spent points through the activity on your forum. Motivate your users to be more active! Awards, Achievements, Promotions, Credits, Shop, Ranking | My Modifications

  • #2
    No, there's no function to do that.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      Ok... what can I use to ask MySQL to output only usernames that have conflicting eMails?
      vBExperience - Collect and spent points through the activity on your forum. Motivate your users to be more active! Awards, Achievements, Promotions, Credits, Shop, Ranking | My Modifications

      Comment


      • #4
        What do you mean exactly? How would MySQL know this?
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #5
          Originally posted by Steve Machol
          What do you mean exactly? How would MySQL know this?
          I mean, how to find out the users that have multiple accounts with the same email?

          And another issue with the emails:
          I've two users with the same name and eMail address (like importedUser), if I merge importedUser with User, which of them is beeing merged?
          vBExperience - Collect and spent points through the activity on your forum. Motivate your users to be more active! Awards, Achievements, Promotions, Credits, Shop, Ranking | My Modifications

          Comment


          • #6
            Sorry, I don't know the query to do that. Not even sure if it's possible frankly.
            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment


            • #7
              Thanks anyway. I've to write a script to do that.
              vBExperience - Collect and spent points through the activity on your forum. Motivate your users to be more active! Awards, Achievements, Promotions, Credits, Shop, Ranking | My Modifications

              Comment


              • #8
                You can use this query to select those users:
                Code:
                SELECT u1.username AS user
                FROM user AS u1
                LEFT JOIN user AS u2 ON (u1.email = u2.email)
                WHERE u2.email != '' AND u1.userid != u2.userid;
                Best Regards
                Colin Frei

                Please don't contact me per PM.

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X