1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice
  3. What happens when the XF 2.0 is out? See the discussion here: http://www.sonnb.com/threads/what-happens-when-xf-2-0-is-out.1146/
    Dismiss Notice

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