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: Ban Everyone is ICQ UIN (https://vborg.vbsupport.ru/showthread.php?t=275579)

14kvision 12-16-2011 06:05 PM

How to: Ban Everyone is ICQ UIN
 
Hi,

I am in the mists of cleaning up my board from thousands of spam accounts and messages. I think I've managed to clear out all the messages but now I'm left with a ton of spam accounts. I noticed that the majority of these spam accounts have an ICQ UIN in their profile and none of my legitimate users have an ICQ.

SO....

Is it possible to move any account which has an ICQ entry in their profile to the banned users group?

Thanks!

TheLastSuperman 12-16-2011 06:33 PM

You can run a SQL Query:

Code:

UPDATE user SET usergroupid = '8'
WHERE icq != '';

However that will change everyone who has anything entered into ICQ into the banned usergroup (defaulted to usergroup id #8) so be careful OR add in a AND as so:

Code:

UPDATE user SET usergroupid = '8'
WHERE icq != '' AND usergroupid != '6';

So now it should run through all of the users and place them into the banned group IF they are not in the admin usergroup.

When your done w/ the query you decide to go with don't forget to update your counters in admincp so their usertitles are also updated :cool:.

14kvision 12-16-2011 06:33 PM

Is that done somewhere in the cpanel? Or do I do that in PHP my admin?

TheLastSuperman 12-16-2011 06:37 PM

^ phpMyAdmin and check my post above once more I just finished editing ;).

14kvision 12-16-2011 06:45 PM

Seems to have worked like a charm! Thank you very much!!!

TheLastSuperman 12-16-2011 07:34 PM

Quote:

Originally Posted by 14kvision (Post 2278402)
Seems to have worked like a charm! Thank you very much!!!

Your welcome ;).

Boofo 12-16-2011 07:44 PM

You should be able to run the query in the Run Queries in the Admin CP, shouldn't you?

TheLastSuperman 12-17-2011 01:56 AM

Quote:

Originally Posted by Boofo (Post 2278427)
You should be able to run the query in the Run Queries in the Admin CP, shouldn't you?

Should unless your not listed as having permission in the config file to run queries remember :cool:.

djjeffa 01-17-2012 02:11 AM

is there anyway to do this with members with 0 post and a icq username?

djjeffa 01-19-2012 11:42 PM

Quote:

Originally Posted by djjeffa (Post 2288837)
is there anyway to do this with members with 0 post and a icq username?

bump?


All times are GMT. The time now is 07:38 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.01245 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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