我刚刚安装了humhub并从github下载了聊天模块。https://github.com/ychoucha/HUMHUB-module-chat I将其克隆到humhub/受保护/模块中。但是,它没有出现在管理登录的模块部分。如何在Humhub中安装此模块或其他第三部分模块?
发布于 2016-05-30 22:24:57
根据2014年9月12日的https://github.com/humhub/humhub/issues/165链接,卢克说:
您还可以手动安装模块:
我试过任务模块,它起作用了。确保您拥有Humhub存储库中代码的最新稳定版本。您还必须能够直接从管理>模块>查找在线下载
发布于 2016-11-09 02:00:10
该模块在humhub v1.0之后不再工作。
根据文档,您需要添加一个config.php文件。https://www.humhub.org/docs/guide-dev-module.html
config.php (取代autostart.php)
<?php
use humhub\modules\dashboard\widgets\Sidebar;
return [
'id' => 'chat',
'class' => 'humhub\modules\chat\ChatModule',
'namespace' => 'humhub\modules\chat',
'events' => [
array(
'class' => Sidebar::className(),
'event' => Sidebar::EVENT_INIT,
'callback' => array(
'humhub\modules\chat\ChatModule',
'onSidebarInit'
)
),
],
];https://stackoverflow.com/questions/37492054
复制相似问题