vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to automatically delete post of a banned user? (https://vborg.vbsupport.ru/showthread.php?t=307687)

ZUCCO 01-30-2014 01:44 AM

How to automatically delete post of a banned user?
 
I want that when I ban an user all his posts are deleted at the same time, how? thank you :)

tbworld 01-30-2014 03:35 AM

It would be much easier to prune threads by 'User name'. Otherwise, you could possibly use the code from the prune routine with the 'Banned' username/ID. Take a look at code 'admincp/thread.php' ...

If you are not a programmer you could simply insert a call at the end of the 'ban' routine, to the prune routine.
Code:

admincp/thread.php?do=prune
Unfortunately, showing you how to do this, is beyond the scope of a simple discussion and my time. You might want to request this in the paid/unpaid request forums.

If you decide to do the code yourself, show your code, and I can be of more assistance. :)

Barcham 01-30-2014 04:57 PM

This is very easy to do. Select one of his posts and using the Moderation Tools at the bottom of the post, select "Delete as Spam". This will give you the option to delete all the user's posts, soft or hard delete, as well as ban the user permanently.

ZUCCO 01-31-2014 01:25 AM

Thank you for your answers both is helpful :)

I will try


All times are GMT. The time now is 12:51 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.01501 seconds
  • Memory Usage 1,707KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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