Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 307183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:32:07+00:00 2026-05-12T07:32:07+00:00

I run a forum which I built myself. Ok so all users have the

  • 0

I run a forum which I built myself. Ok so all users have the opportunity to delete themselves.

But all their threads and posts will remain. But right now where it should say their username it’s just blank.

How should I handle this?

Should I make a new user and call it e.g. “deleted user” and assign all threads/posts to that ID when they delete themselves?
Or should I just check if the user ID exist if not print e.g. “deleted user” as username?

What’s the smartest way? Any other ways tell me.

Thanks!

p.s (i’m not a native english speaker, looked up some fancy words on a online dictionary)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:32:07+00:00Added an answer on May 12, 2026 at 7:32 am

    I would suggest not actually deleting the user. You could simply add a column to the users table such as:

    ALTER TABLE users ADD COLUMN (is_active TINYINT(1) NOT NULL DEFAULT 1);
    

    Then when you “delete” a user, simply mark them as inactive:

    UPDATE users SET is_active = 0 WHERE users.id = 7;
    

    For user listings, and account access you would check the is_active status. For displaying of data such as posts and what not, you’d not care about their active status, youd just grab the name from the table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a forum type site in which posts will have different types: Discussion,
I'm looking for Forum software similar to phpBB, but intended to run within a
I have run into a problem trying to modify a form I myself have
We have a series of products with built in web servers each of which
I want to delete the records which i select, and run.html will refresh, how
I run the technical side of a discussion forum, which is plagued by a
I have written a C++ application, which I built using g++. For the purposes
I run a game and the running is done by hand, I have a
I run my blog using Wordpress and all too recently became a big believer
I have inherited an application built using the Microsoft Office Information Bridge Framework 1.6.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.