Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17388

Add php event to bump_topic_allowed function

XMLWordPrintable

      RE: https://www.phpbb.com/community/viewtopic.php?t=2648116

      I was trying to make an extension to facilitate this request whereby a user with the moderator permission 'bump any topic' can, as you can imagine... bump any topic inside the forum that they have the moderator permission for.

      The problem here is that the function bump_topic_allowed doesn't have a php event to alter the return value from the function. If it did, it would mean that extensions would be able to return a positive value that would allow users to bump a topic under different circumstances to those currently defined within this function by default.

      This function is used in viewtopic.php to check to see if the template variable can be set (ie. create the bump topic URL) and then in posting.php to check if the topic can actually be bumped and if so, bump the topic.

            Marc Marc
            danieltj Daniel James
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: