Whoops.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamesyfx
    Senior Member
    • Feb 2005
    • 679
    • 3.6.x

    Whoops.

    I was in a bit of a rush to delete a spammer, but now I can't prune all his posts.. I've tried entering "Guest" as a username, etc, but it's not having it.

    Any ideas?
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Try running these queries on your database (backup first):

    Code:
    DELETE FROM post WHERE username = '[color=red]spammer's name[/color]'
    Code:
    DELETE FROM thread WHERE postusername = '[color=red]spammer's name[/color]'
    The second query will delete the user's thread records, which could leave some posts orphaned if other users posted in the spammer's threads.

    Aftering running these queries, you will need to update your various counters:

    Admin CP -> Import & Maintenance -> Update Counters

    - Rebuild Thread Information
    - Rebuild Forum Information
    - Remove Orphan Posts

    Comment

    • jamesyfx
      Senior Member
      • Feb 2005
      • 679
      • 3.6.x

      #3
      Worked like a dream, thank you.

      Comment

      • Rafa-el
        Member
        • Feb 2010
        • 54
        • 4.0.x

        #4
        Question, how to run this query but instead of perform a hard delete make a Soft Delete of the posts/threads? (vB4)

        Thanks.
        Jesus is coming. Are you ready?

        Comment

        • Trevor Hannant
          vBulletin Support
          • Aug 2002
          • 24358
          • 5.7.X

          #5
          Please post in the correct forum for the version you're running.
          Vote for:

          - Admin Settable Paid Subscription Reminder Timeframe (vB6)
          - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

          Comment

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