vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Cleaning up USER THREADS AND POST (https://vborg.vbsupport.ru/showthread.php?t=157269)

Mrdby 09-07-2007 05:28 PM

Cleaning up USER THREADS AND POST
 
Is there anyway to CLEAN UP all DELETED USERS that have started threads and made post? I hate having threads that were started by a member that are no longer members.

Weapon-x 09-10-2007 09:35 PM

Shouldn't it just delete members post and topics when you the admin delete them manually? If not I am very curious about this. Do you have an example I can see?

Eikinskjaldi 09-10-2007 10:42 PM

When you delete a user it assigns their posts to guest.

If you delete all the posts belonging to a deleted user then it is going to play havoc with the conversations in the thread.

Generally speaking any kind of hard deletion is a bad thing and should be avoided.

Mrdby 09-10-2007 10:55 PM

phpbb uses it. but for the last poster umm this is a good mod to have..instead of going through deleting guest for ever member you delete. suppose you prune over 300 members that have posted and became inactive....you going to go through each topic started or thread to delete it?

Weapon-x 09-10-2007 11:26 PM

Quote:

Originally Posted by Eikinskjaldi (Post 1336570)
When you delete a user it assigns their posts to guest.

If you delete all the posts belonging to a deleted user then it is going to play havoc with the conversations in the thread.

Generally speaking any kind of hard deletion is a bad thing and should be avoided.

Can't you just run a MySQL query? Say user 8 is guests and clean up all guests posts?

Eikinskjaldi 09-11-2007 04:41 AM

Quote:

Originally Posted by Weapon-x (Post 1336600)
Can't you just run a MySQL query? Say user 8 is guests and clean up all guests posts?

Yes you can.

But like I said, why would you. What if a now deleted user (and, once again, I am having real trouble understadning why you would ever delete a user, I don't even delete spammers...just ban them) was having a conversation with another user. You are suddenly removing half the conversation.


In addition posts are referenced in other tables, thread for example remembers first and last postids and users. How do you want to handle that? what if the only poster in a thread is a deleted user, you will need to delete the thread as well, or assign the first post to someone else.

You are playing with fire here, I guess I am being less helpful than I might otherwise be because I am having trouble understanding why you would ever delete a user, let alone their posts.

Weapon-x 09-11-2007 12:29 PM

Quote:

Originally Posted by Eikinskjaldi (Post 1336751)
Yes you can.

But like I said, why would you. What if a now deleted user (and, once again, I am having real trouble understadning why you would ever delete a user, I don't even delete spammers...just ban them) was having a conversation with another user. You are suddenly removing half the conversation.


In addition posts are referenced in other tables, thread for example remembers first and last postids and users. How do you want to handle that? what if the only poster in a thread is a deleted user, you will need to delete the thread as well, or assign the first post to someone else.

You are playing with fire here, I guess I am being less helpful than I might otherwise be because I am having trouble understanding why you would ever delete a user, let alone their posts.

Yeah. I just ban users too. I leave the post unless it has some mature content in it then I delete it.

But the easy way is to run a MySQL query. To get rid of old posts. Should you post the mySQL script to show people *IF* they still want to delete guest posts?

Eikinskjaldi 09-11-2007 08:40 PM

Quote:

Originally Posted by Weapon-x (Post 1336967)
Yeah. I just ban users too. I leave the post unless it has some mature content in it then I delete it.

But the easy way is to run a MySQL query. To get rid of old posts. Should you post the mySQL script to show people *IF* they still want to delete guest posts?

delete from post where userid=$userid

I predict running this query will stuff up the thread table

Weapon-x 09-12-2007 03:30 AM

Quote:

Originally Posted by Eikinskjaldi (Post 1337238)
delete from post where userid=$userid

I predict running this query will stuff up the thread table

Oh it will :eek:


All times are GMT. The time now is 05:05 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.01047 seconds
  • Memory Usage 1,730KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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