Activity Stream
48,167 MEMBERS
64894 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member

    Default Delete users that are using ICQ

    is there a command in sql i can use that dose that?
    ViPeRR Reviewed by ViPeRR on . Delete users that are using ICQ is there a command in sql i can use that dose that? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    also delete users that have 0 post count.

  4.     
    #3
    JGM
    Quote Originally Posted by ViPeRR View Post
    also delete users that have 0 post count.
    AdminCP>Users>Prune / Move Users.



    JGM.

  •     
    #4
    Respected Member
    ok try these 2 queries. If you have a prefix it will have to be added to the front of user.

    PHP Code: 
    select from user where posts 
    PHP Code: 
    select from user where icq != '' 
    If that gives you the results you want then you can use these queries to delete them.
    PHP Code: 
    delete from user where posts 
    PHP Code: 
    delete from user where icq != '' 
    Remember to always backup your user table before performing any sql commands.

    Also doing it this way the posts and topics for those with an icq being deleted will look funny.

  •     
    #5
    Member
    that delted icq not people using icq

  •     
    #6
    Member
    Don't you have a prune option inside VB ACP?

  •     
    #7
    Respected Member
    No that command says delete from user which means any user that has an ICQ address in that field will get deleted. Not the icq field.

    Did you run the select first like I said to see what results would happen?

  •     
    #8
    Member
    Quote Originally Posted by Lock Down View Post
    No that command says delete from user which means any user that has an ICQ address in that field will get deleted. Not the icq field.
    Code: 
    "delete from user where icq != ''
    Shouldn't that be:
    Code: 
    delete * from user where icq != ''

  •     
    #9
    Respected Member
    Quote Originally Posted by plonk View Post
    Code: 
    "delete from user where icq != ''
    Shouldn't that be:
    Code: 
    delete * from user where icq != ''
    Nope.

  •     
    #10
    Member
    I meant for the inactive users.

  • Page 1 of 2 12 LastLast

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

    Similar Threads

    1. Chrome, IE To Allow Users To Delete Flash Cookies
      By Daniel in forum News & Current Events
      Replies: 1
      Last Post: 4th May 2011, 07:54 PM
    2. Mass prune or delete inactive users?
      By kicker-hp_27 in forum vBulletin
      Replies: 9
      Last Post: 2nd Mar 2011, 07:22 PM
    3. Chat Messenger for Users within Same OS (RDP users)?
      By LEVAC109 in forum General Discussion
      Replies: 1
      Last Post: 28th Sep 2010, 03:37 AM
    4. Integrating VB USers with IRC Users ?
      By danswano in forum vBulletin
      Replies: 0
      Last Post: 15th Jun 2010, 05:39 PM
    5. BAN and Delete users post
      By wCruiser in forum phpBB
      Replies: 3
      Last Post: 4th Sep 2009, 05:05 PM

    Tags for this Thread

    BE SOCIAL