vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Quick User Delete In PostBit (https://vborg.vbsupport.ru/showthread.php?t=142681)

cerjam 03-20-2007 10:00 PM

Quick User Delete In PostBit
 
My site gets spam bots alot and i'm always too lazy to go into the admincp and find the username and delete it. so i wrote this.

It injects a image into the postbit around the online/infraction images.

Find this in "POSTBIT/postbit legacy" whichever you use.
Code:

<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
Add this under that part

Code:

<if condition="$bbuserinfo[userid] == YOURUSERID">
<a href="admincp/user.php?do=remove&amp;u=$post[userid]" rel="nofollow"><img class="inlineimg" src="YOURDELETEUSERIMAGEURL" alt="<phrase 1="$post[username]">delete user</phrase>" border="0" /></a>
</if>


Only problem is it doesnt redirect you back to the thread, If anyone would like to tell me how to do that itd be great.

projectego 03-21-2007 11:10 AM

Nice idea, cerjam. It's also good to hear I'm not the only one who finds constantly having to have to login to the Admin CP to ban users over and over again a hassle. ;)

Marco van Herwaarden 03-21-2007 01:36 PM

Just curious, why do you want to delete the user instead of using an infraction to ban him. If you delete them they can reuse the same name/email address again.

Distance 03-21-2007 03:52 PM

Agreed.

KevNJ 03-21-2007 04:37 PM

Nice mod, although I wont be installing.

Not to take anything away from your mod. But since Ive installed this mod I have had ZERO spambots sign up since.
https://vborg.vbsupport.ru/showthread.php?t=124828

blazingpc 03-21-2007 06:39 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1208792)
Just curious, why do you want to delete the user instead of using an infraction to ban him. If you delete them they can reuse the same name/email address again.

Great point!!
Not to mention if you delete them then you will loose that number on your total members but if you just ban then the number stays but the spammer is gone.:)

puertoblack2003 03-21-2007 07:14 PM

thanks for your hack..but i agree with everybody else there are multiple hacks for spammer that you can install to stop this, which i have installed and it works great..

cerjam 03-22-2007 12:52 AM

why waste the space in the memberlist for 300 banned spam bots? this is so much cleaner. and if nothing else, someone can learn to make a postbit hack from this

Dream 03-22-2007 01:18 AM

I wish there was a button like this to delete user + all his messages.

thincom2000 03-23-2007 01:10 AM

You can easily do that with a query.

PHP Code:

$db->query_write"DELETE FROM " TABLE_PREFIX "post WHERE userid = " $vbulletin->GPC['userid'] ); 



All times are GMT. The time now is 01:13 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.01158 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)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