Skip to:
Content
Pages
Categories
Search
Top
Bottom

Edit post unlimited minutes?


  • worrypascanada
    Member

    @worrypascanada

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • well 10 years is enough time? Yes? Just give this parameter a value of 5.256.000 minutes…

    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.


    jolaedana
    Member

    @jolaedana

    This worked like a charm for me, and was requested by many of my members. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.