я настроил чтобы новым пользователям по умолчанию выставлялись галочки на все типы уведомления по е-мейл, так:
в файле includes/funcions_users.php нашёл вышеуказанный фрагмент :
Код: Выделить всё
if ($notifications_data === null)
{
$notifications_data = array(
array(
'item_type' => 'notification.type.post',
'method' => 'notification.method.email',
),
array(
'item_type' => 'notification.type.topic',
'method' => 'notification.method.email',
),
);
}
/**
* Modify the notifications data to be inserted in the database when a user is added
*
* @event core.user_add_modify_notifications_data
* @var array user_row Array of user details submitted to user_add
* @var array cp_data Array of Custom profile fields submitted to user_add
* @var array sql_ary Array of data to be inserted when a user is added
* @var array notifications_data Array of notification data to be inserted when a user is added
* @since 3.2.2-RC1
*/
и исправил его на:
Код: Выделить всё
if ($notifications_data === null)
{
$notifications_data = array(
array(
'item_type' => 'notification.type.post',
'method' => 'notification.method.email',
),
array(
'item_type' => 'notification.type.topic',
'method' => 'notification.method.email',
),
array(
'item_type' => 'moderation_queue',
'method' => 'notification.method.email',
),
array(
'item_type' => 'notification.type.bookmark',
'method' => 'notification.method.email',
),
array(
'item_type' => 'notification.type.quote',
'method' => 'notification.method.email',
),
array(
'item_type' => 'notification.type.pm',
'method' => 'notification.method.email',
),
);
}
/**
* Modify the notifications data to be inserted in the database when a user is added
*
* @event core.user_add_modify_notifications_data
* @var array user_row Array of user details submitted to user_add
* @var array cp_data Array of Custom profile fields submitted to user_add
* @var array sql_ary Array of data to be inserted when a user is added
* @var array notifications_data Array of notification data to be inserted when a user is added
* @since 3.2.2-RC1
*/
краткая спецификация, что за что отвечает:
Код: Выделить всё
moderation_queue -- Ваши сообщения/темы одобрены или отклонены модератором
notification.type.post -- В теме, на которую вы подписаны, появились новые сообщения
notification.type.topic -- В форуме, на который вы подписаны, появились новые темы
notification.type.bookmark -- В теме, помещённой в закладки, появились новые сообщения
notification.type.quote -- Вас процитировали в сообщении
notification.type.pm -- Вам отправлено личное сообщение
каждый пункт включается фрагментом, соответственно:
Код: Выделить всё
array(
'item_type' => 'notification.type.topic',
'method' => 'notification.method.email',
),
именно это то, - полагаю - , что это имел ввиду
rxu
разумеется для новичков лучше сделать копию оригинального
functions_user.php и фрагмент в коде с комменатриями /****/ прехватил специально для ориентира... частая проблема - теряют скобки