What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Question Up Block Only If Last Post Author Is Equal To Op?

Discussion in 'Up Thread' started by Gordon, Apr 27, 2017.

  1. Gordon

    Gordon Authorized Member Authorized

    I posted this question a couple of days ago here: http://www.sonnb.com/threads/up-block-is-this-possible-limit-according-to-activity.1353/ but maybe that was the wrong section (sorry for the double post).

    Is there any way to disable up block if someone else other than the original poster posts a message?

    I mean:
    OP posts => block thread tools for him until timer expires
    Someone posts in his thread => clear the up block status and allow OP to reply (then restart up block timer)

    This is for a non-classified community, to allow discussions while avoiding bumps. Thanks!
     
  2. sonnb

    sonnb Administrator Staff Member

    So they are 2 different questions?

    You can do that by modifying the code.

    File: Library/sonnbUpThread/Model/Log.php
    Method: isValidDuration

    You add a check here: get last_post_user_id. Compare with current user id. If not equals return true.
     

Share This Page