1 (edited by PunBB 2019.08.29 19:37)

Topic: Список всех хуков ядра PunBB

Хуки помогают внедрять разные функции на punbb форум. Они подобны крючкам, (отсюда в принципе появилось и их название), за которые можно цепляться. В этой теме будет опубликован список всех хуков найденных в файлах форума punbb.

Если хуки какого либо файла вы не нашли, то будем благодарны за публикацию списка в посте ниже  PunBB_INFO_ICQ/yes

Список хуков корневых файлов:

/delete.php

dl_start
dl_qr_get_post_info
dl_pre_permission_check
dl_post_selected
dl_form_submitted
dl_topic_deleted_pre_redirect
dl_post_deleted_get_prev_post_id
dl_post_deleted_pre_redirect
dl_pre_item_ident_merge
dl_pre_header_load
dl_main_output_start
dl_pre_post_display
dl_new_post_head_option
dl_new_post_entry_data
dl_pre_confirm_delete_fieldset
dl_pre_confirm_delete_checkbox
dl_pre_confirm_delete_fieldset_end
dl_confirm_delete_fieldset_end
dl_end

/edit.php

ed_start
ed_qr_get_post_info
ed_pre_permission_check
ed_post_selected
ed_form_submitted
ed_end_validation
ed_pre_post_edited
ed_qr_update_subject
ed_qr_update_post
ed_pre_redirect
ed_pre_header_load
ed_main_output_start
ed_preview_pre_display
ed_preview_new_post_head_option
ed_preview_new_post_entry_data
ed_pre_main_fieldset
ed_pre_subject
ed_pre_message_box
ed_pre_checkbox_display
ed_pre_checkbox_fieldset_end
ed_pre_main_fieldset_end
ed_main_fieldset_end
ed_end

/extern.php

ex_start
ex_add_new_rss_info
ex_add_new_rss_item_info
ex_add_new_atom_info
ex_add_new_atom_item_info
ex_add_new_xml_info
ex_add_new_xml_item_info
ex_set_syndication_type
ex_qr_get_topic_data
ex_qr_get_posts
ex_modify_cur_post_item
ex_pre_topic_output
ex_qr_get_topics
ex_modify_cur_topic_item
ex_pre_forum_output
ex_qr_get_users_online
ex_pre_online_output
ex_qr_get_user_count
ex_qr_get_newest_user
ex_qr_get_post_stats
ex_pre_stats_output
ex_new_action

/footer.php

ft_about_output_start
ft_about_pre_quickjump
ft_about_pre_copyright
ft_about_end
ft_debug_output_start
ft_debug_end
ft_js_include
ft_end

/header.php

hd_pre_template_loaded
hd_template_loaded
hd_head
hd_gen_elements
hd_visit_elements
hd_qr_get_unread_reports_count
hd_alert
hd_main_elements
hd_end

/help.php
/index.php

in_start
in_qr_get_new_topics
in_pre_header_load
in_main_output_start
in_qr_get_cats_and_forums
in_forum_loop_start
in_forum_pre_cat_head
in_redirect_row_pre_item_subject_merge
in_redirect_row_pre_display
in_normal_row_pre_item_title_merge
in_row_modify_modlist
in_normal_row_pre_item_subject_merge
in_normal_row_pre_display
in_row_pre_display
in_end
in_info_output_start
in_stats_pre_info_output
in_stats_end
in_users_online_start
in_users_online_qr_get_online_info
in_users_online_add_online_user_loop
in_users_online_pre_online_info_output
in_new_online_data
in_users_online_end
in_info_end

/login.php
/misc.php
/moderate.php
/post.php
/profile.php
/register.php
/rewrite.php
/serch.php
/userlist.php
/viewtopic.php

vt_start
vt_qr_get_post_page
vt_find_new_post
vt_qr_get_first_new_post
vt_qr_get_last_post
vt_qr_get_topic_info
vt_modify_topic_info
vt_modify_page_details
vt_pre_header_load
vt_main_output_start
vt_qr_get_posts_id
vt_qr_get_posts
vt_post_loop_start
vt_row_pre_post_ident_merge
vt_row_pre_post_contacts_merge
vt_row_pre_post_actions_merge
vt_row_pre_display
vt_row_add_user_data_cache
vt_row_new_post_entry_data
vt_end
vt_qpost_output_start
vt_quickpost_pre_display
vt_quickpost_pre_fieldset
vt_quickpost_pre_message_box
vt_quickpost_pre_fieldset_end
vt_quickpost_fieldset_end
vt_quickpost_end
vt_qr_increment_num_views

/viewforum.php

vf_start
vf_qr_get_forum_info
vf_modify_forum_info
vf_redirect_forum_pre_redirect
vf_modify_page_details
vt_qr_get_topics_id
vf_qr_get_has_posted
vf_qr_get_topics
vf_pre_header_load
vf_main_output_start
vf_pre_topic_loop_start
vf_topic_loop_start
vf_topic_loop_moved_topic_pre_item_subject_merge
vf_topic_loop_normal_topic_pre_item_title_status_merge
vf_topic_loop_normal_topic_pre_item_title_merge
vf_topic_loop_normal_topic_pre_item_nav_merge
vf_row_pre_item_subject_merge
vf_row_pre_item_status_merge
vf_row_pre_display
vf_no_results_row_pre_display
vf_end

2 (edited by PunBB 2019.08.29 16:05)

Re: Список всех хуков ядра PunBB

Список хуков администрирования, файлов директории /admin/

/admin/index.php

ain_start
ain_phpinfo_selected
ain_update_check_qr_get_hotfixes
ain_qr_get_users_online
ain_pre_header_load
ain_main_output_start
ain_pre_version
ain_pre_community
ain_pre_server_load
ain_pre_environment
ain_pre_database
ain_items_end
ain_end

/admin/bans.php

aba_start
aba_add_ban_selected
aba_add_ban_qr_get_user_by_id
aba_add_ban_form_submitted
aba_add_ban_qr_get_user_by_username
aba_add_ban_qr_get_last_known_ip
aba_edit_ban_selected
aba_edit_ban_qr_get_ban_data
aba_add_edit_ban_pre_header_load
aba_add_edit_ban_output_start
aba_add_edit_ban_pre_criteria_fieldset
aba_add_edit_ban_pre_username
aba_add_edit_ban_pre_email
aba_add_edit_ban_pre_ip
aba_add_edit_ban_pre_message
aba_add_edit_ban_pre_expire
aba_add_edit_ban_criteria_pre_fieldset_end
aba_add_edit_ban_criteria_fieldset_end
aba_add_edit_ban_end
aba_add_edit_ban_form_submitted
aba_add_edit_ban_qr_add_ban
aba_qr_update_ban
aba_add_edit_ban_pre_redirect
aba_del_ban_form_submitted
aba_del_ban_qr_delete_ban
aba_del_ban_pre_redirect
aba_pre_header_load
aba_main_output_start
aba_view_ban_pre_display
aba_end

3 (edited by PunBB 2019.12.10 13:40)

Re: Список всех хуков ядра PunBB

Список хуков в файлах директории /include/

/include/cache.php

ch_fn_generate_config_cache_start
ch_fn_generate_config_cache_qr_get_config
ch_fn_generate_bans_cache_start
ch_fn_generate_bans_cache_qr_get_bans
ch_fn_generate_ranks_cache_start
ch_fn_generate_ranks_cache_qr_get_ranks
ch_fn_generate_stats_cache_start
ch_fn_generate_stats_cache_qr_get_user_count
ch_fn_generate_stats_cache_qr_get_newest_user
ch_fn_generate_stats_cache_qr_get_post_stats
ch_fn_generate_censors_cache_start
ch_fn_generate_censors_cache_qr_get_censored_words
ch_fn_generate_quickjump_cache_start
ch_fn_generate_quickjump_cache_qr_get_groups
ch_fn_generate_quickjump_cache_qr_get_cats_and_forums
ch_fn_generate_quickjump_cache_forum_loop_start
ch_fn_generate_quickjump_cache_forum_loop_end
ch_fn_clean_quickjump_cache_start
ch_fn_clean_quickjump_cache_qr_get_groups
ch_fn_generate_hooks_cache_start
ch_fn_generate_hooks_cache_qr_get_hooks
ch_fn_generate_updates_cache_start
ch_fn_generate_updates_cache_qr_get_hotfixes
ch_fn_generate_updates_cache_write
ch_generate_ext_versions_cache_check_repository

/include/common.php

co_modify_url_scheme
co_common

/admin/common_admin.php

ca_fn_generate_admin_menu_start
ca_fn_generate_admin_menu_new_sublink
ca_fn_generate_admin_menu_new_link
ca_fn_prune_start
ca_fn_prune_qr_get_topics_to_prune
ca_fn_prune_qr_get_posts_to_prune
ca_fn_prune_qr_prune_topics
ca_fn_prune_qr_prune_posts
ca_fn_prune_qr_prune_subscriptions
ca_new_function