Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Checkbox field in Activity Stream

11 years 3 months ago #230492 by Andrew Dunn
Checkbox field in Activity Stream was created by Andrew Dunn
Hi
I have read the use case for creating custom messages on the activity stream however wondered how to modify this for a checkbox field.

My specific requirement is for a dance school. I have created a field for example called "cb_bronzemedalballroom" with the title "Bronze Medal - Ballroom" and when the admin updates the field from the backend to display something like:

"Jane has achieved her Bronze Medal - Ballroom "

Kind regards
Andrew

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago - 11 years 3 months ago #230506 by krileon
Replied by krileon on topic Checkbox field in Activity Stream
You could use the latest CB Activity that now has field by field activity logging then modify the profile activity model to change how the message outputs for checkbox fields at the below location.

/components/com_comprofiler/plugin/user/plug_cbactivity/models/profile.php

Alternative is to create custom activity entry using CB Auto Actions and its CB Activity action on the after profile update trigger. Then in a conditional check that the checkbox is equal to 1. Now add your custom activity however you'd like it to display.

Either one should fit your needs pretty well. The CB Auto Actions solution probably being the easiest.


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.
Last edit: 11 years 3 months ago by krileon.
The following user(s) said Thank You: Andrew Dunn

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

Moderators: beatnantkrileon
Powered by Kunena Forum