vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Delete Guests Posts - URGENT (https://vborg.vbsupport.ru/showthread.php?t=200845)

tommyturnage 01-06-2009 06:43 AM

Delete Guests Posts - URGENT
 
I have a forum with 23,095 posts and about 1000 are a certain users.

Well he wanted me to delete him and his posts so I decided too.

But I forgot to delete his posts first so now I have about 1000 GUEST posts on my site.

How can I get rid of all the guest posts at once?

Marco van Herwaarden 01-06-2009 07:15 AM

Not so easy.

You will need to manually delete the posts (and threads??) using a query to delete posts with userid = 0. But deleting posts like this can leave threads useless etc. We usually do not delete all posts on request.

dismas 01-06-2009 07:15 AM

I think this will work for a guest. It works for a regular user, so it follows logically that it would work for a guest....

Use Advanced Search.

Put in "guest" as the username, click on "show results as posts" in the lower left, hit Search.

Click on the box in the upper right of the results to choose all the posts. Use the moderation pull down menu at the bottom to delete them.

This may take some time. There may be an easier way, but I don't know it off the top of my head.

tommyturnage 01-06-2009 02:25 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1703042)
Not so easy.

You will need to manually delete the posts (and threads??) using a query to delete posts with userid = 0. But deleting posts like this can leave threads useless etc. We usually do not delete all posts on request.

and what query would that be?

Quote:

Originally Posted by dismas (Post 1703043)
I think this will work for a guest. It works for a regular user, so it follows logically that it would work for a guest....

Use Advanced Search.

Put in "guest" as the username, click on "show results as posts" in the lower left, hit Search.

Click on the box in the upper right of the results to choose all the posts. Use the moderation pull down menu at the bottom to delete them.

This may take some time. There may be an easier way, but I don't know it off the top of my head.

That doesnt work
Code:

Invalid User specified. If you followed a valid link, please notify the administrator

Marco van Herwaarden 01-07-2009 10:10 AM

To just delete the posts (make backup first!!!!):
[sql]DELETE FROM post WHERE userid = 0[/sql]
This will delete all posts made by guests. But please be aware that this can make threads unreadible as posts in the midle (or even first post) might get deleted.

tommyturnage 01-07-2009 07:16 PM

Imma give it a try...

EDIT:

It worked

Thanks

Marco van Herwaarden 01-08-2009 08:55 AM

Ofcourse. ;)

Dismounted 01-08-2009 09:00 AM

Everything Marco touches, works. :D

Marco van Herwaarden 01-08-2009 09:13 AM

Now watch it or i am forced to touch you.

45wheelgun 06-07-2009 10:37 AM

I have the same problem except much worse. I have somehow doubled my message base. Each message is duplicated, one from the original poster who is a registered user, and one from the same user name listed as guest. I have 250k messages from accounts listed as "guest". I tried the above solution and it added the following code to the first message in each thread:

<span class="ev_code_WHITE">zzz</span>

It did not appear to remove any posts.


All times are GMT. The time now is 10:43 AM.

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.01121 seconds
  • Memory Usage 1,729KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete