Skip to Content Skip to Menu

Notifications on by default

  • fioresns
  • fioresns
  • OFFLINE
  • Posts: 70
  • Thanks: 7
  • Karma: 0
1 day 1 hour ago #340178 by fioresns
Notifications on by default was created by fioresns
Hello! I see the notification fields. How can I make them become "on" by default (that means that if user doesn't disable them, he gets the notifications)?
And: is there a field or a json file or something like that that counts user's notification? 
 

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48757
  • Thanks: 8327
  • Karma: 1448
19 hours 29 minutes ago #340182 by krileon
Replied by krileon on topic Notifications on by default
Notifications dependent on CB fields will be entirely based on how you've setup that field. So to have them enabled by default then that field should have a value that would enable it by default. Typically you'd use a checkbox field. If you don't display them on registration then the only way to enable them by default is to use a Field action in CB Auto Actions to enable them after a user registers to force those notifications on. In a future release of CB 3.x we'll have a centralized notifications page to make this easier.

And: is there a field or a json file or something like that that counts user's notification?

I'm not sure I understand what you mean by this. Count their notifications in CB Activity?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • fioresns
  • fioresns
  • OFFLINE
  • Posts: 70
  • Thanks: 7
  • Karma: 0
17 hours 14 minutes ago - 17 hours 7 minutes ago #340189 by fioresns
Replied by fioresns on topic Notifications on by default

So to have them enabled by default then that field should have a value that would enable it by default. Typically you'd use a checkbox field. If you don't display them on registration then the only way to enable them by default is to use a Field action in CB Auto Actions to enable them after a user registers to force those notifications on.

 

I'm not sure about this. If I go in my profile, on notifications tab, I see a list of options that I can set yes or no. I'd like them to be, bay default, on YES (but user can still set them on NO). If I go on the cb_notif_pm field, I see it's HTML type. Should I change that in textbox? Or should I look somewhere else?
Last edit: 17 hours 7 minutes ago by fioresns.

Please Log in or Create an account to join the conversation.

  • fioresns
  • fioresns
  • OFFLINE
  • Posts: 70
  • Thanks: 7
  • Karma: 0
17 hours 9 minutes ago - 17 hours 7 minutes ago #340190 by fioresns
Replied by fioresns on topic Notifications on by default

And: is there a field or a json file or something like that that counts user's notification? 


 
I'm trying to make a badge showing how many notification a user has. So I was wondering if there is a notification counter per user somewhere.
Last edit: 17 hours 7 minutes ago by fioresns.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48757
  • Thanks: 8327
  • Karma: 1448
16 hours 58 minutes ago #340191 by krileon
Replied by krileon on topic Notifications on by default

I'm not sure about this. If I go in my profile, on notifications tab, I see a list of options that I can set yes or no. I'd like them to be, bay default, on YES (but user can still set them on NO). If I go on the cb_notif_pm field, I see it's HTML type. Should I change that in textbox? Or should I look somewhere else?

There isn't a way to set a default value for profile edit. Only profile registration IF the field is set to display on registration. To workaround this you'll need CB Auto Actions to establish defaults when a new user registers. The below should work fine for this.

Global
Triggers: onAfterUserRegistration
Type: Field
User: Automatic
Access: Everybody
Action
Field: NOTIFICATION_FIELD_HERE
Operator: Set
Value: 1

Add as many field rows as you need for setting the different defaults.

As for existing users the fastest way to change their existing value is through a database query or you can just leave existing users be and let them configure it themselves.

I'm trying to make a badge showing how many notification a user has. So I was wondering if there is a notification counter per user somewhere.

How many notifications they have in total or notifications they haven't seen yet? You can display the CB Activity notification icon and popover anywhere you like using the CB Activity Module.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • fioresns
  • fioresns
  • OFFLINE
  • Posts: 70
  • Thanks: 7
  • Karma: 0
16 hours 52 minutes ago #340192 by fioresns
Replied by fioresns on topic Notifications on by default

How many notifications they have in total or notifications they haven't seen yet? You can display the CB Activity notification icon and popover anywhere you like using the CB Activity Module.

Not seen! I think this is exactly what I'm looking for, but I'm not sure where to find it

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum