Knowledgebase: v 4.x.x
How to enable all users notifications by default?
Posted by Lena Kosyakova on 21 July 2008 04:23 PM
There are three notifications in a user's left menu in the "My Notifications" section:
Notify on Listing Activation
Notify on Listing Expiration
Notify on Contract Expiration

These options are set to "off" by default. If you want to change this, you need to open the file:
system/lib/users/User/UserDBManager.php

and find the line ~ 28:
DB::query("UPDATE ?w SET contract_id = ?n WHERE sid = ?n", "users", $user_contract_id, $user->getSID());

and insert the following code after it:
DB::query("INSERT INTO users_notifications VALUES(?n, '1', '1', '1')", $user->getSID());

(363 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Fusion