vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Deleted user, now how to delete posts? (https://vborg.vbsupport.ru/showthread.php?t=201872)

Urinemachine 01-15-2009 01:13 PM

Deleted user, now how to delete posts?
 
Hello - I deleted a user and their name says guest under it now, which is good. But, their posts still show.

Can I delete their posts somehow in a graceful manner? I could do a SQL query and just start dropping things but I think that'd get hairy.

Also, can I delete their posts even if they're the original poster (thread starter) and still have their thread remain? IE - make the 2nd post the first post of the thread since the user I want to delete will be removed?

Thanks all

SEOvB 01-15-2009 01:53 PM

I'm not so sure its possible now that you've deleted the user. You need to delete the posts before deleting the user.

One way to try is to register a new user with that username and run the maintenance tools for rebuilding information and see if they get reassociated with his account by chance, then remove the posts and then the user.

It should only remove his posts, and no one elses. So if he started a thread, it should remain while his first post is gone.

Bellardia 01-15-2009 04:41 PM

You could forcefully change a new users userid to the user id of the one you deleted (If you can find it somewhere). All posts will be associated with this user and delete the posts.

Urinemachine 01-17-2009 03:03 AM

If the user created a thread and I delete his posts, will the thread be deleted? Or will the 2nd poster inherit the thread?

SEOvB 01-17-2009 03:06 AM

Quote:

Originally Posted by Urinemachine (Post 1715349)
If the user created a thread and I delete his posts, will the thread be deleted? Or will the 2nd poster inherit the thread?

The second post will become the first unless you delete the whole thread.

Lynne 01-17-2009 03:34 AM

Quote:

Originally Posted by FRDS (Post 1715353)
The second post will become the first unless you delete the whole thread.

I think you may be wrong here. I know if I try to delete the first post of a thread when on the site, I get told:
Quote:

Deleting the first post of a thread will result in the deletion of the thread.
That's using the inline moderation tool.

SEOvB 01-17-2009 04:00 AM

Quote:

Originally Posted by Lynne (Post 1715372)
I think you may be wrong here. I know if I try to delete the first post of a thread when on the site, I get told:


That's using the inline moderation tool.

First time for everything :D

Really though, i always thought it just deleted the first post :o

Digital Jedi 01-17-2009 04:58 AM

It will delete the whole thread, sadly.

Just in case you couldn't find it, the SQL Query for restoring a Guest post to it's original user name is:

PHP Code:

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

Just make sure you add your table prefix to post.

Dismounted 01-17-2009 11:57 AM

Depends how you delete his posts. If it is a single query to the post table, the thread information and the rest of the posts will still exist in the database, but the thread will not be displayed on the front-end.

Urinemachine 01-18-2009 04:52 AM

So I can restore them back to users from guest, then delete psots from user? That will take the thread out though if they started it? Is there a way to split the thread from the second post onward? I have a couple threads 20 pages long that i could split at post #2 and then delete the post and user after


All times are GMT. The time now is 01:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01222 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete