Skip to content
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

Plugin hook adding/changing #2919

Open
1 task
euantorano opened this issue Nov 25, 2017 · 4 comments
Open
1 task

Plugin hook adding/changing #2919

euantorano opened this issue Nov 25, 2017 · 4 comments
Labels
b:1.10 Branch: 1.10.x t:enhancement Type: Enhancement. Contains minor improvements

Comments

@euantorano
Copy link
Member

euantorano commented Nov 25, 2017

As per this thread, there are some places where it would be useful to have some new hooks. Additionally, there are some places where hooks with the same name are ran multiple times. As part of 1.10, it would be good to ensure hook name are used only once and to look at which additional hooks can be added.

Probably the best thing to do is to comment here or in the thread a hook you'd like to see or that you know is duplicated and we'll check them off as we go:

@euantorano euantorano added the b:1.10 Branch: 1.10.x label Nov 25, 2017
@dvz
Copy link
Contributor

dvz commented Nov 26, 2017

Hooks that can be run in more than one place:

  • member_do_register_end (6)
  • member_do_login_end (2)
  • usercp_editsig_end (2)
  • modcp_do_modqueue_end (3)
  • modcp_modlogs_result (2)
  • report_do_report_end (2)
  • search_results_end (2)
  • search_do_search_process (6)
  • search_do_search_end (2)
  • archive_forum_thread (2)
  • admin_user_mass_email_preview_end (2)
  • admin_tools_cache_rebuild_commit (5)
  • admin_tools_tasks_enable_commit (2)
  • private_do_tracking_end (3)
  • warnings_warning (2)
  • datahandler_post_insert_post (2)
  • datahandler_post_insert_thread (2)
  • datahandler_post_insert_thread_post (2)
  • report_content_types (2)
  • printthread_start (2)

Those are presumably evoked with different conditions @labrocca

@dragonexpert
Copy link
Contributor

I think modcp_modlogs_result is okay because it is used for custom mod log entries when you first view the mod cp and for when you are checking the mod logs. I don't see a reason why that would need to change. I haven't used the other hooks before so I don't know as much about them.

@effone effone added the t:enhancement Type: Enhancement. Contains minor improvements label Apr 30, 2018
@Sama34
Copy link
Contributor

Sama34 commented Jun 10, 2020

Is this only for 1.10? I would like to suggest a new hook between the following lines:
https://github.com/mybb/mybb/blob/feature/admin/modules/forum/management.php#L868-L869

zingaburga/XThreads-MyBB-Plugin#25

@euantorano
Copy link
Member Author

euantorano commented Jun 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:1.10 Branch: 1.10.x t:enhancement Type: Enhancement. Contains minor improvements
Projects
None yet
Development

No branches or pull requests

5 participants