Moving posts from deleted users?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fwfp
    New Member
    • Jan 2007
    • 22
    • 3.8.x

    Moving posts from deleted users?

    Is there a smart way of moving posts from deleted users to another exsiting user? I think I've seen someone writing about this in this forum, but unfortunately I'm not able to find this post again
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Run this query:

    UPDATE post SET userid='xxx' WHERE username='Old Name';

    ...with 'xxx' being the userid number of his new account and 'Old Name' being the username on the old account.

    Then rebuild the thread and forum counters in that order:

    Admin CP -> Maintenance -> Update Counters
    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

    • fwfp
      New Member
      • Jan 2007
      • 22
      • 3.8.x

      #3
      I get this error when executing this query:

      An error occurred while attempting to execute your query. The following information was returned.
      error number: 1146
      error desc: Table 'XXX_vb.post' doesn't exist

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        You need to add what table prefix you are using in front of 'post'.
        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

        • fwfp
          New Member
          • Jan 2007
          • 22
          • 3.8.x

          #5
          Would it be:

          UPDATE "mydbprefix"_vbpost SET userid='xxx' WHERE username='Old Name';

          then?

          Sorry for asking such a stupid question, but I'm not skilled in making DB-queries!

          Comment

          • Steve Machol
            Former Customer Support Manager
            • Jul 2000
            • 154488

            #6
            What is your prefix exactly?
            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

            • fwfp
              New Member
              • Jan 2007
              • 22
              • 3.8.x

              #7
              hw6005_vb

              Comment

              • Steve Machol
                Former Customer Support Manager
                • Jul 2000
                • 154488

                #8
                If that is the exact table prefix then this will work:

                UPDATE hw6005_vbpost SET userid='xxx' WHERE username='Old Name';
                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

                • fwfp
                  New Member
                  • Jan 2007
                  • 22
                  • 3.8.x

                  #9
                  Tried with:

                  UPDATE vbpost SET userid='xxx' WHERE username='Old Name';

                  Which worked perfectly!

                  Thanks for fast - as always - help on this one

                  Comment

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