Announcement

Collapse
No announcement yet.

Associating Old Posts With A Deleted User

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

  • Associating Old Posts With A Deleted User

    http://www.vbulletin.com/forum/showthread.php?t=239925

    =========

    I saw the above thread. I have a deleted user that still has many different posts on our board. I would like to create that user again and associate any old posts of hers with her account.

    The aforementioned thread says to:

    If you acccidentally delete a user but not their posts, you can register a new account for that user, then run this query to associate the old posts with the new account:

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

    ....with 'xxx' being the userid of the new account.

    Then update the thread and forum counters in that order:

    Admin CP -> Maintenance -> Update Counters
    What does it mean to run the query to associate the old posts with the new account? How do I go about doing that?

    CUrrently the deleted posts says the name of Guest

  • #2
    Forgive me I mean no offense but what part didn't you understand?
    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


    • #3
      Where do I run the query. Where do I do the "UPDATE post SET userid='xxx' WHERE username='Old Name';" part?

      Comment


      • #4
        You can run queries in the SQL tab in phpMyAdmin, or to run queries from the Admin CP:

        Admin CP -> Maintenance -> Execute SQL Query -> Manual Query

        Then enter your query in the Manual Query box and click on 'Continue'.

        To run queries you first need to give yourself permission to run queries in the Admin CP. To do this, edit this section of config.php:

        $config['SpecialUsers']['canrunqueries'] = 'x';

        ...with x being your userid number.
        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
          So in the UPDATE post SET userid='xxx' WHERE username='Old Name'

          Does 'Old Name' equal guest? Cause all the deleted posts are listed under "guest"

          Comment


          • #6
            No, it means the name that is on those posts right now.
            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
              I have the same problem - however there are many many posts (hundreds) that are labelled as Guest and have no user account associated

              I need to run this query but by matching a post with XXX text to a specific userid (not by matching the postid - there are hundreds and would take an age - whereas all the posts actually have a XXX text common denominator so a query would take seconds

              thanks in advance
              Digital-Forums: www.digital-forums.com | CK3 Games: www.ck3.co.uk

              Comment


              • #8
                Originally posted by edytwinky View Post
                So in the UPDATE post SET userid='xxx' WHERE username='Old Name'

                Does 'Old Name' equal guest? Cause all the deleted posts are listed under "guest"
                Originally posted by Steve Machol View Post
                No, it means the name that is on those posts right now.
                Steve, I think what he means is that the posts have the username Guest showing on the forum - but of course the username guest doesn't exist so its impossible to run the query he's asking you about
                Digital-Forums: www.digital-forums.com | CK3 Games: www.ck3.co.uk

                Comment


                • #9
                  No, my query assign posts without a user to a specific user.
                  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


                  • #10
                    then without a name - wouldn't that be userid=0 ? and not 'Old Name' (you can't type 'Guest' as there is no guest account)

                    that doesn't make any sense ?

                    i solved my original problem btw:

                    UPDATE post SET userid='XXXX' WHERE pagetext LIKE "%XXXX%";

                    Worked a treat - saved me HOURS
                    Digital-Forums: www.digital-forums.com | CK3 Games: www.ck3.co.uk

                    Comment


                    • #11
                      No, every post has a name and userid is not the same as username.
                      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

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