Announcement

Collapse
No announcement yet.

24 hour ban?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 24 hour ban?

    Is it possible to impose a time-limited ban on a user's posting privilages?

    Lets say you want to stop someone for posting for 24 hours. Is it possible to do that automatically? I know that you can define user groups and then move the particular user to that group manually and move them again after 24 hours...but is it possible to automate this process?

    Thanks

  • #2
    Jake does not think it is possible to automate this.

    Comment


    • #3
      Jake needs to stop talking about himself in the third person

      Abbas: You could do this via a cron job. You would need to talk to your host about how to implement this (if your host provides CPANEL, there is an option in there to do it). In the script run via that cron job, you would put the query to move that user back to their own usergroup. Everytime you banned someone, you would need to make a small change in the script and reupload it.

      I would put it in the forums/admin directory.
      For example:

      PHP Code:
      <?
      require("./config.php");
      $db=mysql_connect($servername,$dbusername,$dbpassword) or die("Can't open connection to MySQL");
      mysql_select_db($dbname) or die("Can't select database");

      mysql_query("UPDATE user SET usergroup='2' WHERE userid='XX'");
      ?>
      You'd substitute that user's id for XX in the example.

      Comment


      • #4
        Thanks tubedogg!

        Do you think this idea is worth implementing in one of the future versions of vB?

        -Abbas

        Comment


        • #5
          Now here is a neat idea. How about adding this to 2.1 Kier?
          Time Limited Banning. Nice.

          Comment


          • #6
            The problem with adding something like this to the default installation is that most people wouldn't use it and a good portion wouldn't be able to if they wanted to.

            Not all IPP's allow you to set CRON jobs and not all webservers support them.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API - Full / Mobile
            Vote for your favorite feature requests and the bugs you want to see fixed.

            Comment


            • #7
              Ok,

              So much for that idea.

              Comment


              • #8
                good idea

                As I normally have to do this manually. Maybe the option of 'ban this person permanently', and then the option of ban for X number of days??? This would be great.
                www.footyforums.net

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X