Support » Networking WordPress » How to autoclose user accounts after 24 hours

  • cmunns

    (@cmunns)


    Hello,

    How might I be able to allow users to create a site on a multisite subdirectory, then autoclose these accounts after a pre-determined amount of time?

    Thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Person

    (@person)

    What do you mean by ‘close’ the accounts? You want to lock them out from ever being able to access their blogs after 24 hours? Or are you looking to have the browser session & cookie removed after 24 hours?

    Better yet, why do you want to do this?

    cmunns

    (@cmunns)

    It’s for testing purposes, it doesn’t have to be 24 hours but I don’t want to overload the server so maybe somehow deleting them after a certain amount of inactivity would be better.

    ( I just don’t want the number of users to be insanely high because of temporary accounts )

    Person

    (@person)

    Oh, ok. What you’re looking for is to remove inactive accounts. I wouldn’t suggest removing users since a user might have more than one blog on your network.

    The only thing I could find was this script: http://borism.net/2008/12/31/deleting-inactive-wordpressmu-blogs/ (which supercedes this one: http://www.ringofblogs.com/2008/06/10/wpmu-cleanup-script-to-delete-unused-blogs/), but it’s incomplete, old and buggy, so I don’t suggest actually using it. You can, however, use it as a reference point for writing your own script.

    cmunns

    (@cmunns)

    I’ll give it a crack, thanks for the resource

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to autoclose user accounts after 24 hours’ is closed to new replies.