Is there any mod for Removing all Pendings in 1 attempt?

Discussion in 'Directories' started by williamjack, Mar 26, 2008.

  1. #1
    Hello All

    i was looking Is there any mod for Removing all Pendings in 1 attempt?

    Actually some of my directories have about over 15000 + pending enteries.

    It is difficult to remove them by default code. As we can only select 20 in 1 step?

    Is there any mod to select all pendings and remove all at once?

    Thanks
    Sanjay
     
    williamjack, Mar 26, 2008 IP
  2. humm

    humm बहादुर बच्चा

    Messages:
    4,346
    Likes Received:
    850
    Best Answers:
    0
    Trophy Points:
    310
    #2
    delete from `PLD_LINK` where `STATUS`=1
    Code (markup):
    ^^ Run command at your mysql.

    Use at your own risk though, always backup db before use. Keep the code saved, its very useful. :D ;)
     
    humm, Mar 26, 2008 IP
  3. smub

    smub Notable Member

    Messages:
    3,443
    Likes Received:
    375
    Best Answers:
    0
    Trophy Points:
    230
    #3
    hmm why not review those slowly ?? are all SPAM ??
     
    smub, Mar 26, 2008 IP
  4. YMC

    YMC Well-Known Member

    Messages:
    2,787
    Likes Received:
    404
    Best Answers:
    4
    Trophy Points:
    190
    #4
    Gotta say not a shining endorsement of your sites...you have so many people who took the time to submit to your directory that you are going to thank them by deleting all of their submissions regardless of quality.

    Why not close submissions and work to get the queues down?
     
    YMC, Mar 26, 2008 IP
  5. dotcompals

    dotcompals Prominent Member

    Messages:
    2,905
    Likes Received:
    254
    Best Answers:
    0
    Trophy Points:
    320
    #5
    I think YMC 's suggestion is a far Better idea than blindly removing all pending links.

    Alternatively you can do selective link deleting.

    Deletes all links where the Title contains the word "poker"
    DELETE FROM `PLD_LINK` WHERE `TITLE` LIKE '%poker%' LIMIT 50;
    Code (markup):

    or...


    Deletes all links where the URL contains the word "poker"
    DELETE FROM `PLD_LINK` WHERE WHERE `URL` LIKE '%poker%' LIMIT 50;
    Code (markup):
    BACK UP YOUR DATABASE BEFORE TRYING THE ABOVE
     
    dotcompals, Mar 26, 2008 IP
  6. fear

    fear Banned

    Messages:
    3,750
    Likes Received:
    221
    Best Answers:
    0
    Trophy Points:
    205
    #6
    Nice one dotcompals. I liked it :D
     
    fear, Mar 26, 2008 IP
  7. louis2

    louis2 Peon

    Messages:
    1,410
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #7
    do something like that as suggested by dotcompals and ymc than wasting the submitters time.
     
    louis2, Mar 26, 2008 IP
  8. williamjack

    williamjack Notable Member

    Messages:
    2,189
    Likes Received:
    324
    Best Answers:
    0
    Trophy Points:
    225
    #8
    Thanks all for the suggestions.

    I got it working now with above codes mentioned by sunny and dotcompals

    Sanjay
     
    williamjack, Mar 26, 2008 IP
  9. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #9
    let me know which is working too.
    I also want to delete mass spam submissions.
     
    MeetHere, Mar 27, 2008 IP
  10. williamjack

    williamjack Notable Member

    Messages:
    2,189
    Likes Received:
    324
    Best Answers:
    0
    Trophy Points:
    225
    #10
    This one by sunny
    is good to delete all spam pendings.
     
    williamjack, Mar 27, 2008 IP
  11. Red_Virus

    Red_Virus Well-Known Member

    Messages:
    3,756
    Likes Received:
    249
    Best Answers:
    0
    Trophy Points:
    135
    #11
    I some times use the soution shown by Sunny on my free directories, when the amount of spam submission just grows out of proportion, I am really impressed with the query shown by dotcompals, will try and blog about it.
     
    Red_Virus, Mar 27, 2008 IP
  12. enQuira

    enQuira Peon

    Messages:
    1,584
    Likes Received:
    250
    Best Answers:
    0
    Trophy Points:
    0
    #12
    you should be careful though in case you have active listings with that keyword in the title or description. you can add "AND STATUS = '1'"


    ps: in the second query there is a typo (extra WHERE).
     
    enQuira, Mar 27, 2008 IP
  13. mcjp6

    mcjp6 Well-Known Member

    Messages:
    1,140
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    140
    #13
    Hi, I am new at sql but would love to ged rid of some of the spam that I have submitted. can someone pls let me know exactly how to type in that command.

    ie I go to cpanel, mysql, then phpMyAdmin, then I select the db from the left and it shows me the db structure. what field do I use to type in commands??

    would appreciate any help. thanks
     
    mcjp6, Mar 27, 2008 IP
  14. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #14
    There should be some buttons right at the top, like browse, insert, export, import.

    One of them should be "SQL". Go to that page and paste the SQL query in the box. Submit it.
     
    mikey1090, Mar 27, 2008 IP
    mcjp6 likes this.
  15. mcjp6

    mcjp6 Well-Known Member

    Messages:
    1,140
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    140
    #15
    fantastic, easy when you know how! rep added, thanks for quick answer..
     
    mcjp6, Mar 27, 2008 IP
  16. JamieG

    JamieG Banned

    Messages:
    1,825
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Reading this lot and looking at how complicated mysql is to the untrained I'm glad we put a 'pending' status in the script in my sig, that way you can delete them all in one go via admin without worrying about messing with complicated databases.
     
    JamieG, Mar 27, 2008 IP
  17. westhaven

    westhaven Well-Known Member

    Messages:
    3,936
    Likes Received:
    452
    Best Answers:
    0
    Trophy Points:
    195
    #17
    very usefull info for me infact as i have over 150k listing pending per dir :D
     
    westhaven, Apr 8, 2008 IP
    Raj Kumar likes this.
  18. dotcompals

    dotcompals Prominent Member

    Messages:
    2,905
    Likes Received:
    254
    Best Answers:
    0
    Trophy Points:
    320
    #18

    150K links pending? LOL , that's a lot..
     
    dotcompals, Apr 8, 2008 IP
  19. westhaven

    westhaven Well-Known Member

    Messages:
    3,936
    Likes Received:
    452
    Best Answers:
    0
    Trophy Points:
    195
    #19
    yea as i am out this shit now :cool:
     
    westhaven, Apr 9, 2008 IP
  20. humm

    humm बहादुर बच्चा

    Messages:
    4,346
    Likes Received:
    850
    Best Answers:
    0
    Trophy Points:
    310
    #20
    Punks is always best at what he does. :D ;)
     
    humm, Apr 9, 2008 IP