特别注意:
1、确定使用某一个嵌入点时,请在后台“验证扩展”页面,编辑嵌入点文件(hook.class.php),将使用的对应嵌入点代码前面注释清除即可。
2、在调试完成后,不需要的嵌入点,请及时注释;
3、注意:把不用的嵌入点必须全部注释掉,否则将影响论坛访问速度,切记!!!。
hook.class.rar
(3.62 KB, 下载次数: 2521)
- public function hook_discuz_userapp_userapp_menu_bottom(){
- ##官方嵌入点,调用实例
- return 'userapp_menu_bottom'.'调用成功!';
- }
复制代码
-
- //全局钩子
- // 所有模块执行前被调用
-
- function common(){
- xx_client::class_hook('hook_discuz_common',array(xx_G::member(),$_GET));
- }
- /**
- * 用于在帖子内容解析时嵌入自己的功能,函数中 $_G['discuzcodemessage'] 变量为待解析的字串
- * $value: array(
- * 'param' => caller 函数的参数数组,
- * 'caller' => caller 函数,此嵌入点被哪个函数调用
- * 'discuzcode' 被 discuzcode() 调用
- * 'messagecutstr' 被 messagecutstr() 调用
- */
- public function hook_discuz_discuzcode($value, $member, $get)
- {
- }
-
- /**
- * 用于在主题删除前后嵌入自己的功能,此函数将在 deletethread() 中被调用 2 次,
- * 函数中 $_G['deletethreadtids'] 变量为待处理的 TID 数组
- * $value: array(
- * 'param' => deletethread() 函数的参数数组,
- * 'step' => 删除的步骤
- * 'check' 检测步骤
- * 'delete' 删除步骤
- * )
- */
- public function hook_discuz_deletethread($value, $member, $get)
- {
- }
-
- /**
- * 用于在帖子删除前后嵌入自己的功能,此函数将在 deletepost() 中被调用 2 次,
- * 函数中 $_G['deletepostids'] 变量为待处理的 ID 数组
- * $value: array(
- * 'param' => deletepost() 函数的参数数组,
- * 'step' => 删除的步骤
- * 'check' 检测步骤
- * 'delete' 删除步骤
- * )
- */
- public function hook_discuz_deletepost($value, $member, $get)
- {
- }
-
- /**
- * 用于在头像调用时嵌入自己的功能,函数中 $_G['hookavatar'] 变量为新头像返回值
- * $value: array(
- * 'param' => avatar() 函数的参数数组
- * )
- */
- public function hook_discuz_avatar($value, $member, $get)
- {
- }
-
- /**
- * 贴内用户信息标记,返回值为标记显示内容 全局嵌入点类
- * $post: 当前帖子信息数组
- * $start: 用户填写的前置字符
- * $end: 用户填写的后置字符
- */
- public function hook_discuz_profile_node($post, $start, $end, $member, $get)
- {
- }
- public function hook_discuz_spacecp_credit_extra($member, $get)
- {
- }
- public function hook_discuz_faq_extra($member, $get)
- {
- }
- public function hook_discuz_global_footer($member, $get)
- {
- }
- public function hook_discuz_global_footerlink($member, $get)
- {
- }
- public function hook_discuz_global_cpnav_top($member, $get)
- {
- }
- public function hook_discuz_global_cpnav_extra1($member, $get)
- {
- }
- public function hook_discuz_global_cpnav_extra2($member, $get)
- {
- }
- public function hook_discuz_global_usernav_extra1($member, $get)
- {
- }
- public function hook_discuz_global_usernav_extra2($member, $get)
- {
- }
- public function hook_discuz_global_usernav_extra3($member, $get)
- {
- }
- public function hook_discuz_global_usernav_extra4($member, $get)
- {
- }
- public function hook_discuz_global_nav_extra($member, $get)
- {
- }
- public function hook_discuz_global_header($member, $get)
- {
- }
- public function hook_discuz_global_userabout_top($member, $get)
- {
- }
- public function hook_discuz_userapp_menu_top($member, $get)
- {
- }
- public function hook_discuz_userapp_menu_middle($member, $get)
- {
- }
- public function hook_discuz_global_userabout_bottom($value, $member, $get)
- {
- }
- public function hook_discuz_forum_post_top($member, $get)
- {
- }
- public function hook_discuz_forum_post_infloat_top($member, $get)
- {
- }
- public function hook_discuz_forum_index_status_extra($member, $get)
- {
- }
- public function hook_discuz_forum_collection_index_top($member, $get)
- {
- }
- public function hook_discuz_forum_collection_index_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_collection_nav_extra($member, $get)
- {
- }
- public function hook_discuz_forum_collection_viewoptions($member, $get)
- {
- }
- public function hook_discuz_forum_collection_view_top($member, $get)
- {
- }
- public function hook_discuz_forum_collection_threadlistbottom($member, $get)
- {
- }
- public function hook_discuz_forum_collection_relatedop($member, $get)
- {
- }
- public function hook_discuz_forum_collection_view_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_collection_side_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_index_nav_extra($member, $get)
- {
- }
- public function hook_discuz_forum_index_top($member, $get)
- {
- }
- public function hook_discuz_forum_index_catlist_top($member, $get)
- {
- }
- public function hook_discuz_forum_index_favforum_extra($value, $member, $get)
- {
- }
- public function hook_discuz_forum_index_catlist($value, $member, $get)
- {
- }
- public function hook_discuz_forum_index_forum_extra($value, $member, $get)
- {
- }
- public function hook_discuz_forum_index_middle($member, $get)
- {
- }
- public function hook_discuz_forum_index_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_index_side_top($member, $get)
- {
- }
- public function hook_discuz_forum_index_side_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_attach_extra($value, $member, $get)
- {
- }
- public function hook_discuz_forum_post_image_btn_extra($member, $get)
- {
- }
- public function hook_discuz_forum_post_image_tab_extra($member, $get)
- {
- }
- public function hook_discuz_forum_post_attach_btn_extra($member, $get)
- {
- }
- public function hook_discuz_forum_post_attach_tab_extra($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_leftside_top($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_leftside_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_forumaction($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_modlink($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_top($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_middle($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_postbutton_top($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_threadtype_inner($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_filter_extra($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_threadtype_extra($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_side_top($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_side_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_fastpost_content($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_fastpost_func_extra($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_fastpost_ctrl_extra($member, $get)
- {
- }
- public function hook_discuz_forum_global_login_text($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_fastpost_btn_extrat($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_fastpost_sync_method($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_thread($value, $member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_thread_subject($value, $member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_author($value, $member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_threadlist_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_postbutton_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_subforum_extra($value, $member, $get)
- {
- }
- public function hook_discuz_forum_guide_nav_extra($member, $get)
- {
- }
- public function hook_discuz_forum_guide_top($member, $get)
- {
- }
- public function hook_discuz_forum_guide_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_index_navbar($member, $get)
- {
- }
- public function hook_discuz_forum_post_middle($member, $get)
- {
- }
- public function hook_discuz_forum_post_btn_extra($member, $get)
- {
- }
- public function hook_discuz_forum_post_sync_method($member, $get)
- {
- }
- public function hook_discuz_forum_post_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_post_activity_extra($member, $get)
- {
- }
- public function hook_discuz_forum_post_debate_extra($member, $get)
- {
- }
- public function hook_discuz_forum_post_editorctrl_right($member, $get)
- {
- }
- public function hook_discuz_forum_post_editorctrl_left($member, $get)
- {
- }
- public function hook_discuz_forum_post_editorctrl_top($member, $get)
- {
- }
- public function hook_discuz_forum_post_editorctrl_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_post_side_top($member, $get)
- {
- }
- public function hook_discuz_forum_post_side_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_post_infloat_middle($member, $get)
- {
- }
- public function hook_discuz_forum_post_infloat_btn_extra($member, $get)
- {
- }
- public function hook_discuz_forum_post_poll_extra($member, $get)
- {
- }
- public function hook_discuz_forum_post_reward_extra($member, $get)
- {
- }
- public function hook_discuz_forum_post_trade_extra($member, $get)
- {
- }
- public function hook_discuz_forum_forumdisplay_modlayer($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_tradeinfo_extra($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_top($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_postbutton_top($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_modoption($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_beginline($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_title_extra($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_title_row($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_middle($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_activity_extra1($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_activity_extra2($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_fastpost_side($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_fastpost_content($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_fastpost_func_extra($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_fastpost_ctrl_extra($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_fastpost_btn_extra($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_postheader($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_endline($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_profileside($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_imicons($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_magic_user($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_avatar($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_sidetop($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_sidebottom($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_modaction($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_share_method($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_useraction($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_postsightmlafter($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_postfooter($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_postaction($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_magic_thread($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_magic_post($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_posttop($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_postbottom($value, $member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_poll_top($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_poll_bottom($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_useraction_prefix($member, $get)
- {
- }
- public function hook_discuz_forum_viewthread_side_bottom($member, $get)
- {
- }
- public function hook_discuz_group_group_navlink($member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_navlink($member, $get)
- {
- }
- public function hook_discuz_group_group_top($member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_top($member, $get)
- {
- }
- public function hook_discuz_group_group_nav_extra($member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_nav_extra($member, $get)
- {
- }
- public function hook_discuz_group_group_bottom($member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_bottom($member, $get)
- {
- }
- public function hook_discuz_group_group_side_bottom($member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_side_bottom($member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_postbutton_top($member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_filter_extra($member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_thread($value, $member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_postbutton_bottom($member, $get)
- {
- }
- public function hook_discuz_group_my_header($member, $get)
- {
- }
- public function hook_discuz_group_my_bottom($member, $get)
- {
- }
- public function hook_discuz_group_my_side_top($member, $get)
- {
- }
- public function hook_discuz_group_my_side_bottom($member, $get)
- {
- }
- public function hook_discuz_group_group_index_side($member, $get)
- {
- }
- public function hook_discuz_group_group_side_top($member, $get)
- {
- }
- public function hook_discuz_group_forumdisplay_side_top($member, $get)
- {
- }
- public function hook_discuz_group_index_header($member, $get)
- {
- }
- public function hook_discuz_group_index_top($member, $get)
- {
- }
- public function hook_discuz_group_index_bottom($member, $get)
- {
- }
- public function hook_discuz_group_index_side_top($member, $get)
- {
- }
- public function hook_discuz_group_index_side_bottom($member, $get)
- {
- }
- public function hook_discuz_home_follow_nav_extra($member, $get)
- {
- }
- public function hook_discuz_home_follow_top($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_avatar_top($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_avatar_bottom($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_blog_top($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_blog_middle($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_blog_bottom($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_credit_top($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_credit_extra($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_credit_bottom($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_privacy_top($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_privacy_base_extra($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_privacy_feed_extra($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_privacy_bottom($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_profile_top($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_profile_extra($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_profile_bottom($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_promotion_top($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_promotion_bottom($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_usergroup_top($member, $get)
- {
- }
- public function hook_discuz_home_spacecp_usergroup_bottom($member, $get)
- {
- }
- public function hook_discuz_home_space_album_pic_top($member, $get)
- {
- }
- public function hook_discuz_home_space_album_pic_op_extra($member, $get)
- {
- }
- public function hook_discuz_home_space_album_pic_bottom($member, $get)
- {
- }
- public function hook_discuz_home_space_album_pic_face_extra($member, $get)
- {
- }
- public function hook_discuz_home_space_album_op_extra($member, $get)
- {
- }
- public function hook_discuz_home_space_blog_list_status($value, $member, $get)
- {
- }
- public function hook_discuz_home_space_blog_title($member, $get)
- {
- }
- public function hook_discuz_home_space_blog_share_method($member, $get)
- {
- }
- public function hook_discuz_home_space_blog_op_extra($member, $get)
- {
- }
- public function hook_discuz_home_space_blog_face_extra($member, $get)
- {
- }
- public function hook_discuz_home_space_card_top($member, $get)
- {
- }
- public function hook_discuz_home_space_card_baseinfo_middle($member, $get)
- {
- }
- public function hook_discuz_home_space_card_baseinfo_bottom($member, $get)
- {
- }
- public function hook_discuz_home_space_card_option($member, $get)
- {
- }
- public function hook_discuz_home_space_card_magic_user($member, $get)
- {
- }
- public function hook_discuz_home_space_card_bottom($member, $get)
- {
- }
- public function hook_discuz_home_space_blog_comment_op($value, $member, $get)
- {
- }
- public function hook_discuz_home_space_blog_comment_bottom($member, $get)
- {
- }
- public function hook_discuz_home_space_doing_top($member, $get)
- {
- }
- public function hook_discuz_home_space_doing_bottom($member, $get)
- {
- }
- public function hook_discuz_home_space_favorite_nav_extra($member, $get)
- {
- }
- public function hook_discuz_home_space_interaction_extra($member, $get)
- {
- }
- public function hook_discuz_home_global_usernav_extra1($member, $get)
- {
- }
- public function hook_discuz_home_global_usernav_extra2($member, $get)
- {
- }
- public function hook_discuz_home_space_home_side_top($member, $get)
- {
- }
- public function hook_discuz_home_space_home_side_bottom($member, $get)
- {
- }
- public function hook_discuz_home_space_home_top($member, $get)
- {
- }
- public function hook_discuz_home_space_home_navlink($member, $get)
- {
- }
- public function hook_discuz_home_space_home_bottom($member, $get)
- {
- }
- public function hook_discuz_home_magic_nav_extra($member, $get)
- {
- }
- public function hook_discuz_home_medal_nav_extra($member, $get)
- {
- }
- public function hook_discuz_home_space_menu_extra($member, $get)
- {
- }
- public function hook_discuz_home_space_profile_baseinfo_top($member, $get)
- {
- }
- public function hook_discuz_home_follow_profile_baseinfo_top($member, $get)
- {
- }
- public function hook_discuz_home_space_profile_baseinfo_middle($member, $get)
- {
- }
- public function hook_discuz_home_follow_profile_baseinfo_middle($member, $get)
- {
- }
- public function hook_discuz_home_space_profile_baseinfo_bottom($member, $get)
- {
- }
- public function hook_discuz_home_follow_profile_baseinfo_bottom($member, $get)
- {
- }
- public function hook_discuz_home_space_profile_extrainfo($member, $get)
- {
- }
- public function hook_discuz_home_follow_profile_extrainfo($member, $get)
- {
- }
- public function hook_discuz_home_space_home_doing_sync_method($member, $get)
- {
- }
- public function hook_discuz_home_space_wall_face_extra($member, $get)
- {
- }
- public function hook_discuz_member_logging_side_top($member, $get)
- {
- }
- public function hook_discuz_member_logging_top($member, $get)
- {
- }
- public function hook_discuz_member_logging_input($member, $get)
- {
- }
- public function hook_discuz_member_logging_method($member, $get)
- {
- }
- public function hook_discuz_member_global_login_extra($member, $get)
- {
- }
- public function hook_discuz_member_register_side_top($member, $get)
- {
- }
- public function hook_discuz_member_register_top($member, $get)
- {
- }
- public function hook_discuz_member_register_input($member, $get)
- {
- }
- public function hook_discuz_member_register_logging_method($member, $get)
- {
- }
- public function hook_discuz_member_register_bottom($member, $get)
- {
- }
- public function hook_discuz_portal_portalcp_top($member, $get)
- {
- }
- public function hook_discuz_portal_portalcp_extend($member, $get)
- {
- }
- public function hook_discuz_portal_portalcp_middle($member, $get)
- {
- }
- public function hook_discuz_portal_portalcp_bottom($member, $get)
- {
- }
- public function hook_discuz_portal_view_article_top($member, $get)
- {
- }
- public function hook_discuz_portal_view_article_subtitle($member, $get)
- {
- }
- public function hook_discuz_portal_view_article_summary($member, $get)
- {
- }
- public function hook_discuz_portal_view_article_content($member, $get)
- {
- }
- public function hook_discuz_portal_view_share_method($member, $get)
- {
- }
- public function hook_discuz_portal_view_article_op_extra($member, $get)
- {
- }
- public function hook_discuz_portal_view_article_side_top($member, $get)
- {
- }
- public function hook_discuz_portal_view_article_side_bottom($member, $get)
- {
- }
- public function hook_discuz_search_album_top($member, $get)
- {
- }
- public function hook_discuz_search_album_bottom($member, $get)
- {
- }
- public function hook_discuz_search_blog_top($member, $get)
- {
- }
- public function hook_discuz_search_blog_bottom($member, $get)
- {
- }
- public function hook_discuz_search_global_footer($member, $get)
- {
- }
- public function hook_discuz_search_global_footerlink($member, $get)
- {
- }
- public function hook_discuz_search_forum_top($member, $get)
- {
- }
- public function hook_discuz_search_forum_bottom($member, $get)
- {
- }
- public function hook_discuz_search_group_top($member, $get)
- {
- }
- public function hook_discuz_search_group_bottom($member, $get)
- {
- }
- public function hook_discuz_search_global_usernav_extra1($member, $get)
- {
- }
- public function hook_discuz_search_global_usernav_extra2($member, $get)
- {
- }
- public function hook_discuz_search_portal_top($member, $get)
- {
- }
- public function hook_discuz_search_portal_bottom($member, $get)
- {
- }
- public function hook_discuz_userapp_userapp_app_top($member, $get)
- {
- }
- public function hook_discuz_userapp_userapp_app_bottom($member, $get)
- {
- }
- public function hook_discuz_userapp_userapp_index_top($member, $get)
- {
- }
- public function hook_discuz_userapp_userapp_index_bottom($member, $get)
- {
- }
- public function hook_discuz_userapp_userapp_menu_top($member, $get)
- {
- }
- public function hook_discuz_userapp_userapp_menu_middle($member, $get)
- {
- }
复制代码
|