特別注意:
1、確定使用某一個嵌入點時,請在后臺“驗證擴展”頁面,編輯嵌入點文件(hook.class.php),將使用的對應嵌入點代碼前面注釋清除即可。
2、在調試完成后,不需要的嵌入點,請及時注釋;
3、注意:把不用的嵌入點必須全部注釋掉,否則將影響論壇訪問速度,切記!!!。
(, 下載次數: 2937)
- public function hook_discuz_userapp_userapp_menu_bottom(){
- ##官方嵌入點,調用實例
- return 'userapp_menu_bottom'.'調用成功!';
- }
復制代碼
(, 下載次數: 1163)
- //全局鉤子
- // 所有模塊執行前被調用
- 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)
- {
- }
復制代碼 |