Open Queffect opened 7 years ago
It should be possible, tell exactly how you were implementing this? Like this?
<?php
namespace humhub\modules\adsense;
return [
'id' => 'adsense',
'class' => 'humhub\modules\adsense\Module',
'namespace' => 'humhub\modules\adsense',
'events' => [
[
'class' => \humhub\modules\dashboard\widgets\Sidebar::className(),
'event' => \humhub\modules\dashboard\widgets\Sidebar::EVENT_INIT,
'callback' => array(
'humhub\modules\adsense\Events',
'addAdFrame'
)
],
[
'class' => \humhub\modules\space\widgets\Sidebar::className(),
'event' => \humhub\modules\space\widgets\Sidebar::EVENT_INIT,
'callback' => array(
'humhub\modules\adsense\Events',
'addAdFrame'
)
],
[
'class' => \humhub\modules\user\widgets\ProfileSidebar::className(),
'event' => \humhub\modules\user\widgets\ProfileSidebar::EVENT_INIT,
'callback' => array(
'humhub\modules\adsense\Events',
'addAdFrame'
)
],
[
'class' => \humhub\modules\admin\widgets\AdminMenu::className(),
'event' => \humhub\modules\admin\widgets\AdminMenu::EVENT_INIT,
'callback' => [
'humhub\modules\adsense\Events',
'onAdminMenuInit'
]
[
'class' => \humhub\modules\directory\widgets\Sidebar::className(),
'event' => \humhub\modules\directory\widgets\Sidebar::EVENT_INIT,
'callback' => array(
'humhub\modules\adsense\Events',
'addAdFrame'
)
],
]
]
];
?>
Hello,
I love the module but I wanted to implement it on the directory page. I thought I could maybe add an event in the config.php file but apparently not.
Could you help me out or is this an impossible request? Thanks