Strolen's World · Legacy archive

Pligg Purge

Started by Strolen Jun 5, 2011 2 posts Locked

  1. Pligg Purge

    #1

    http://pligg.com/blog/1329/remove-spam-content-and-inactive-members-from-your-database/


    DELETE FROM pligg_links
    WHERE link_status = 'spam'



    DELETE FROM pligg_comments
    WHERE comment_status = 'spam'



    DELETE FROM pligg_users
    WHERE pligg_users.user_id NOT
    IN (
    SELECT link_author
    FROM pligg_links
    )
    AND pligg_users.user_id NOT
    IN (
    SELECT comment_user_id
    FROM pligg_comments
    )
    AND pligg_users.user_id NOT
    IN (
    SELECT vote_user_id
    FROM pligg_votes
    )
    AND pligg_users.user_level 'god'
    AND pligg_users.user_level 'admin'
  2. Re: Pligg Purge

    #2
    I didn't have any problems with this. Here's what I did:

    1) Rename login_center.tpl to login_center.tpl.bak
    (This way you can easily restore it in an instant if you want to later)

    This will disable registration ability, but for good housekeeping, you should also

    2) Under Language - Section: General - PLIGG_Visual_Register
    Remove the text "register" and leave it empty

    This will remove the Register link from you site.

    If for some reason, these actions cause you problems, they are extremely easy to un-do, so there is no downside to trying it. It worked for me.

Strolen's World · All categories · Guildhall