-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscribe Toggle in Notification Dropdown #41
Conversation
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
@marc1706 look what we're cooking up |
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]> # Conflicts: # styles/prosilver/template/event/overall_footer_after.html
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
$sql_ary = []; | ||
|
||
$sql = 'SELECT user_id | ||
FROM ' . $this->table_prefix . 'users |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably limit user types to USER_NORMAL
and USER_FOUNDER
to skip unused accounts.
$sql = 'SELECT method | ||
FROM ' . $this->table_prefix . "user_notifications | ||
WHERE method = '" . $this->db->sql_escape('notification.method.phpbb.wpn.webpush') . "'"; | ||
$result = $this->db->sql_query($sql); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need at least 1 positive result so probably $this->db->sql_query_limit($sql, 1)
.
{ | ||
$sql = 'SELECT method | ||
FROM ' . $this->table_prefix . "user_notifications | ||
WHERE method = '" . $this->db->sql_escape('notification.method.phpbb.wpn.webpush') . "'"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add AND notify = 1
as far as we're looking for enabled notification types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this I'm just looking to see if it exists yet, because if it does it means it's already been installed and people have started making settings already.
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Signed-off-by: Matt Friedman <[email protected]>
Requires a new core template event in
notification_dropdown.html
after the footer DIV (likenotification_dropdown_footer_after
)Depends on phpbb/phpbb#6625