MyBB Community Forums

Full Version: no arguement passed to newreply_end hook for plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is this by design that there is no arguments passed? What is this good for when it isn't sent any arguments?

There are things I would like to clean up in the text sent to the user's editor box on newreply.php and newreply.php only. Right now, I'm forced to use the pre_output_page hook to do this. This isn't really efficient and I do not wish to modify yet another mybb core file.
Have you tried to globalize the variable you want to change and change it?
Just did a quick test. Globalizing the $message within the plugin function works. However, I doubt this is good coding practice.
When there's no other way to do with and if you don't want to do core edits, that's the only thing you can do