New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugins hooks in forum display #3724
Comments
@chack1172 - could you please open a PR for that? |
I'm not 100% sure if this is correct, a bit more detail would help, if someone can check see if this is okay. Thanks |
Since this issue has come up, there is one hook I want to add to forumdisplay.php, just above the eval for $threadslist. I'm making a PR for that right now. |
@veryard where is your PR? If you have any issues, let me know and I will help you |
@PaulBender and @chack1172 - are you willing to create a PR for the first part of this issue? Thank you |
@Eldenroot Looks like I made a commit to my fork rather than a PR. https://github.com/veryard/mybb/commit/149d4329cdc5631ee319a12a8efb09692aad788e |
Resolves mybb#3724
I think I new hook should be added in forumdisplay.php after the $threadcache and $tids are defined.
This will help making only one new query to the database if extra data is needed for a plugin.
Otherwise they should run one extra query for each thread displayed.
The text was updated successfully, but these errors were encountered: