Skip to Content Skip to Menu

[SOLVED] cb auto actions - k2

10 years 1 month ago - 10 years 1 month ago #252522 by giorgionasis
[SOLVED] cb auto actions - k2 was created by giorgionasis
hallo there,

i want to achieve something complicated and i need some directions.

i want to incluce in the cb activity an action of k2. Specifically, when a user publish an item i want the activity to be displayed in his profile.i just want some basic directions on how to start.

thank you
Last edit: 10 years 1 month ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48671
  • Thanks: 8312
  • Karma: 1446
10 years 1 month ago #252566 by krileon
Replied by krileon on topic cb auto actions - k2
You can push the activity straight to the database or use the cbactivityActivity database object after including the CB Activity class file found below.

components/com_comprofiler/plugin/user/plug_cbactivity/cbactivity.class.php

You basically just fill in the variables of the object as needed. For example type could be "k2" with subtype as "published" and item being the article id. There's no model file for K2 though so it's not going to do any sort of specific parsing to output article details or links.


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.

10 years 1 month ago #252623 by giorgionasis
Replied by giorgionasis on topic cb auto actions - k2
hallo,

do you mean to write a function in the file?

i imagined a better way of combination of cb auto actions with cb activity..

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48671
  • Thanks: 8312
  • Karma: 1446
10 years 1 month ago #252656 by krileon
Replied by krileon on topic cb auto actions - k2
CB Auto Actions acts on CB triggers. K2 is not CB and does not fire CB triggers. So it can not act on K2 behavior.


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.

10 years 1 month ago #252828 by giorgionasis
Replied by giorgionasis on topic cb auto actions - k2
ok thank you kyle

so i should write the functions i want in the file you mentioned?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48671
  • Thanks: 8312
  • Karma: 1446
10 years 1 month ago #252866 by krileon
Replied by krileon on topic cb auto actions - k2
No, the file mentioned is what you'd need to include to use CB Activity API. You need to implement the functionality you're wanting into K2 or a K2 plugin of some sort.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum