bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

Edit post unlimited minutes?

(4 posts)
  • Started 2 years ago by worrypascanada
  • Latest reply from Jolaedana
  • This topic is resolved
  1. Hello,

    What configuration is needed to get my bbPress visitors or myself unlimited minutes or time to edit their/my postings?

    // A user can edit a post for this many minutes after submitting.
    $bb->edit_lock = unlimited;

    Thanks for all replies.

    Posted 2 years ago #
  2. well 10 years is enough time? Yes? Just give this parameter a value of 5.256.000 minutes...

    Posted 2 years ago #
  3. The following plugin should work, but I have not tested it.

    <?php
    /*
    Plugin Name: Ignore Edit Lock
    Plugin URI: http://bbpress.org/forums/topic/263
    */
    function members_ignore_edit_lock() {
    global $bb_roles;
    $bb_roles->role_objects['member']->add_cap( 'ignore_edit_lock', true );
    }
    add_action( 'bb_got_roles', 'members_ignore_edit_lock' );
    ?>

    Save that bit of code as members-ignore-edit-lock and put it in bbPress' my-plugins/ directory.

    Posted 2 years ago #
  4. This worked like a charm for me, and was requested by many of my members. Thanks!

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.