Skip to Content Skip to Menu

Custom Notifications

5 years 4 months ago #312883 by onedotlove
Custom Notifications was created by onedotlove
I would like to create an Notification area within my site similar to the image. I need to know if and how to layout a Notification area.

If it is possible, Please direct me in the right way.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48438
  • Thanks: 8275
  • Karma: 1443
5 years 4 months ago #312886 by krileon
Replied by krileon on topic Custom Notifications
CB Activity provides Notifications and it more or less already displays and functions like that. Example as follows.




CB Activity is template driven so you are free to customize it however you like. Basically add a border and remove the spacing between containers and it'll look nearly the same, which should be doable entirely with CSS. Example as follows.

Code:
.cb_template .notificationsStreamItems { border: 1px solid #dee2e6; } .cb_template .notificationsStreamItems > .notificationContainer { border-color: transparent !important; margin: 0 !important; } .cb_template .notificationsStreamItems > .notificationContainer + .notificationContainer { border-top: 1px solid #dee2e6 !important; }

The above would display as follows.




You can find the default template files below.

/components/com_comprofiler/plugin/user/plug_cbactivity/templates/default

However I do not recommend doing so right now as CB Activity 5.0.0 is almost complete and it will be including a full rewrite of the template files to be easier to modify and allow for per-stream templates instead of single global template.


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.
Attachments:

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

Moderators: beatnantkrileon
Powered by Kunena Forum