jianshan 发表于 2024-9-9 09:21:41

discuz 插件钩子 调用解析

模板中插件嵌入点,有时候做模板的时候不小心把嵌入点删除了,或者做圆角布局没修改好等都会的导致插件使用中出现问题。


插件钩子代码例子:<!--{hook/xxx_xxx}-->


插件钩子的作用在于能让插件在指定的一些位置输出有关代码,在制作Discuz模板的时候一定要参考默认模板中的插件钩子位置进行合理的安排!

下面是Discuz x2.5 模板文件中的插件钩子(插件嵌入点)列表:

一、全局(common/)extcredits.htm
   string spacecp_credit_extra
faq.htm
   string faq_extra
footer.htm
   string global_footer
   string global_footerlink
header.htm
   string global_cpnav_top (X2.5)
   string global_cpnav_extra1
   string global_cpnav_extra2
   string global_usernav_extra1
   string global_usernav_extra2
   string global_usernav_extra3
   string global_usernav_extra4 (X2.5)
   string global_nav_extra (X2.5)
   string global_header
userabout.htm
   array global_userabout_top
   string userapp_menu_top
   string userapp_menu_middle
   array global_userabout_bottom

二、论坛(forum/)collection_all.htm (X2.5)
   string collection_index_top
   string collection_index_bottom
collection_comment.htm (X2.5)
   string collection_nav_extra
collection_index.htm (X2.5)
   string collection_index_top
   string collection_index_bottom
collection_mycollection.htm (X2.5)
   string collection_index_top
   string collection_index_bottom
collection_nav.htm (X2.5)
   string collection_nav_extra
collection_view.htm (X2.5)
   string collection_viewoptions
   string collection_view_top
   string collection_threadlistbottom
   string collection_relatedop
   string collection_view_bottom
   string collection_side_bottom
discuz.htm
   string index_status_extra
   string index_nav_extra (X2.5)
   string index_top
   string index_catlist_top (X2.5)
   array index_favforum_extra (X2.5)
   array index_catlist (X2.5)
   array index_forum_extra (X2.5)
   array index_forum_extra (X2.5)
   string index_middle
   string index_bottom
   string index_side_top
   string index_side_bottom
discuzcode.htm
   array viewthread_attach_extra (X2.5)
editor_menu_forum.htm
   string post_image_btn_extra
   string post_image_tab_extra
   string post_attach_btn_extra
   string post_attach_tab_extra
forumdisplay.htm
   string forumdisplay_leftside_top
   string forumdisplay_leftside_bottom
   string forumdisplay_forumaction
   string forumdisplay_modlink
   string forumdisplay_top
   string forumdisplay_middle
   string forumdisplay_postbutton_top
   string forumdisplay_threadtype_inner (X2.5)
   string forumdisplay_filter_extra (X2.5)
   string forumdisplay_threadtype_extra (X2.5)
   string forumdisplay_bottom
   string forumdisplay_side_top
   string forumdisplay_side_bottom
forumdisplay_fastpost.htm
   string forumdisplay_fastpost_content
   string forumdisplay_fastpost_func_extra
   string forumdisplay_fastpost_ctrl_extra
   string global_login_text
   string forumdisplay_fastpost_btn_extra
   string forumdisplay_fastpost_sync_method
forumdisplay_list.htm
   string forumdisplay_filter_extra
   array forumdisplay_thread
   array forumdisplay_thread_subject (X2.5)
   array forumdisplay_author
   array forumdisplay_thread (X2.5)
   array forumdisplay_author (X2.5)
   string forumdisplay_threadlist_bottom (X2.5)
   string forumdisplay_postbutton_bottom
forumdisplay_sort.htm (X2.5)
   string forumdisplay_postbutton_bottom
forumdisplay_subforum.htm (X2.5)
   array forumdisplay_subforum_extra
   array forumdisplay_subforum_extra
guide.htm
   string guide_nav_extra
   string guide_top
   string guide_bottom
guide_list_row.htm (X2.5)
   array forumdisplay_thread
index_navbar.htm
   string index_navbar
post.htm
   string post_top
   string post_middle
   string post_btn_extra
   string post_sync_method
   string post_bottom
post_activity.htm
   string post_activity_extra
post_debate.htm
   string post_debate_extra
post_editor_body.htm
   string post_editorctrl_right
   string post_editorctrl_left
   string post_editorctrl_top
   string post_editorctrl_bottom
post_editor_option.htm
   string post_side_top
   string post_side_bottom
post_infloat.htm
   string post_infloat_top
   string post_infloat_middle
   string post_infloat_btn_extra
post_poll.htm
   string post_poll_extra
post_reward.htm
   string post_reward_extra
post_trade.htm
   string post_trade_extra
topicadmin_modlayer.htm
   string forumdisplay_modlayer
   string modcp_modlayer
trade_info.htm
   string viewthread_tradeinfo_extra
viewthread.htm
   string viewthread_top
   string viewthread_postbutton_top
   string viewthread_modoption
   string viewthread_beginline (X2.5)
   string viewthread_title_extra
   string viewthread_title_row
   string viewthread_middle
   string viewthread_bottom
viewthread_activity.htm
   string viewthread_activity_extra1
   string viewthread_activity_extra2
viewthread_fastpost.htm
   string viewthread_fastpost_side
   string viewthread_fastpost_content
   string viewthread_fastpost_func_extra
   string viewthread_fastpost_ctrl_extra
   string global_login_text
   string viewthread_fastpost_btn_extra (X2.5)
viewthread_from_node.htm
   array viewthread_postheader
   array viewthread_postheader
   array viewthread_postheader
   array viewthread_endline
viewthread_node.htm
   array viewthread_profileside
   array viewthread_imicons
   array viewthread_magic_user
   array viewthread_avatar
   array viewthread_sidetop
   array viewthread_sidebottom
   array viewthread_postheader
   string viewthread_modaction (X2.5)
   string viewthread_share_method
   string viewthread_useraction
   array viewthread_postsightmlafter (X2.5)
   array viewthread_postfooter
   array viewthread_postaction (X2.5)
   string viewthread_magic_thread
   array viewthread_magic_post
   array viewthread_endline
viewthread_node_body.htm
   array viewthread_posttop
   string global_login_text
   array viewthread_postbottom
viewthread_poll.htm
   string viewthread_poll_top
   string viewthread_poll_bottom
viewthread_portal.htm
   string viewthread_useraction_prefix
   string viewthread_useraction
   string viewthread_side_bottom
viewthread_trade.htm
   array viewthread_trade_extra
页: [1]
查看完整版本: discuz 插件钩子 调用解析