Can I auto execute some PHP-code right after a New Group is created?

11 years 1 month ago #223638 by NicoFaaij
Hi,

I really like the plugins "CB Auto Action" and "CB GroupJive Auto". But the last one is limited to only 4 options (Join groups, Leave groups, New Group, New Category) and the first one doesn't have GroupJive events.

Is there a way to Auto execute some PHP-code right after a new group is created?

With kind regards,
Nico

Please Log in to join the conversation.

11 years 1 month ago #223726 by krileon
Yes, using CB Auto Actions using a Code action with the after group create trigger (latest CB Auto Actions has GJ triggers in the Triggers dropdown) and set the method to PHP.


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.
The following user(s) said Thank You: NicoFaaij

Please Log in to join the conversation.

11 years 1 month ago #223810 by NicoFaaij
Hi Krileon,

Times fly when you have CB-fun ;-) I thought I was on the latest version with my CB 1.9 but I was still on CB Auto Actions version 3.1.3 (???). So I updated this plugin and now I see the many GroupJive triggers.

Thank you very much!!!

By the way, what is the difference between PHP(eval) and PHP(create_function)?

Kind regards,
Nico

Please Log in to join the conversation.

11 years 4 weeks ago #223866 by krileon

By the way, what is the difference between PHP(eval) and PHP(create_function)?

Please see the below for differences.

www.php.net/manual/en/function.eval.php
www.php.net/manual/en/function.create-function.php

Normally eval is disabled on hosts. It's generally best to just go with create_function, but it's entirely up to you.


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.
The following user(s) said Thank You: NicoFaaij

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.364 seconds

Facebook Twitter LinkedIn