Hello , How to make email notification set to immediately as default? If set to automatically how long user get email notification?
if they reply to topic they also subcribe that topic as default, they dont have to tick the subcribe box.
Open oxwall\ow_plugins\forum\init.php
After the following lines:
$event = new OW_Event('notifications.add', $params, $data);
OW::getEventManager()->trigger($event);
}
Add this code:
$subscribeService = FORUM_BOL_SubscriptionService::getInstance();
$userId = OW::getUser()->getId();
$topicId = $post->topicId;
if ( OW::getUser()->isAuthorized('forum', 'subscribe') && !$subscribeService->isUserSubscribed($userId, $topicId) )
{
$subscription = new FORUM_BOL_Subscription;
$subscription->userId = $userId;
$subscription->topicId = $topicId;
$subscribeService->addSubscription($subscription);
}
Hope this helps! :)