-
Improvement
-
Resolution: Fixed
-
Minor
-
3.3.13
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.
- is related to
-
PHPBB-16852 Addition of a new PHP event concerning bump topics
- Unverified Fix