首页 > discuz post_image_btn_extra 与post_image_tab_extra无效?

discuz post_image_btn_extra 与post_image_tab_extra无效?

我想做一个discuz的插件。我按照教程上做了下测试:

    if(!defined('IN_DISCUZ')) {
        exit('Access Denied');
    }
    class plugin_tutu{
        function post_image_btn_extra(){
            return "aaa";
        }
        function post_image_tab_extra(){
            return "sss";
        }
    }

可是没有任何反应。
然后我把post_image_btn_extra替换成global_usernav_extra1,却成功在相应位置输出了!


最终没人回答我的问题……最终我自己找到解决方法了……

if(!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
class plugin_tutu{
    
}
class plugin_tutu_forum extends plugin_tutu{
        function  post_image_btn_extra(){
        return "aaa";
    }
    function post_image_tab_extra(){
        return 'sss';
    }
}
【热门文章】
【热门文章】