I still have the Like and Comment settings enabled under Activity > Article. Should I also move those to Auto Actions?
Do you need those activity? and do you need them to also have that flair?
I’m now realizing just how versatile Auto Actions is, but it has always seemed to have a steep learning curve. I remember you once said that creating detailed documentation isn’t possible, but that you’re ready to help prepare solutions — and I see you doing that in other threads too. Maybe collecting those ready-made solutions with some basic categorization in one place could help people like me better understand the tool and take advantage of its full potential?
The complexity in it is you need to have some understanding of what triggers you need and the variables those triggers provide. I've improved things a good bit as it now has a variable output for selected triggers just below the triggers parameter. Generally each persons usage is different from one another; especially conditions. I provide examples using the same format I did above so you're welcome to search our forums for them.
if article tags have the same names as flairs, could we automatically assign those corresponding flairs to the activity during its creation?
That might be doable. Will add a feature ticket and review when I have further time as I really need to get back to CB Gallery 3.0 or it's never going to get done, lol.
forge.joomlapolis.com/issues/9719
Since ActivityEntity has been extended with these features you can probably use the core activity logging functionality and instead just use CB Auto Action to extend those activity. This requires some PHP, but the below should probably work.
Global
Triggers: activity_onBeforeActivityEntitySave
Type: Code
User: Self
Access: Automatic
Action
Method: PHP
Code:
Code:
if ( ! preg_match( '/^article\.\d+/', $variables['var1']->getAsset() ) ) {
return;
}
$variables['var1']->setFlair( [ COMMA_LIST_OF_FLAIR_IDS ] );
Replace COMMA_LIST_OF_FLAIR_IDS as the name implies with a comma list of flair ids. You can find flair id within CB Activity > Flair as the far right column. This would avoid you having to make your own create, comment, and like activity auto actions and would only need this.