Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2007, 05:28 PM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 09-10-2007, 09:35 PM
Weapon-x Weapon-x is offline
 
Join Date: Jan 2005
Location: USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 09-10-2007, 10:42 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-10-2007, 10:55 PM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 09-10-2007, 11:26 PM
Weapon-x Weapon-x is offline
 
Join Date: Jan 2005
Location: USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi View Post
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?
Reply With Quote
  #6  
Old 09-11-2007, 04:41 AM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Weapon-x View Post
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.
Reply With Quote
  #7  
Old 09-11-2007, 12:29 PM
Weapon-x Weapon-x is offline
 
Join Date: Jan 2005
Location: USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi View Post
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?
Reply With Quote
  #8  
Old 09-11-2007, 08:40 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Weapon-x View Post
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
Reply With Quote
  #9  
Old 09-12-2007, 03:30 AM
Weapon-x Weapon-x is offline
 
Join Date: Jan 2005
Location: USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi View Post
delete from post where userid=$userid

I predict running this query will stuff up the thread table
Oh it will
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:48 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.04293 seconds
  • Memory Usage 2,240KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete