Skip to Content Skip to Menu

Flairs not working with automatic article publication activity (filtering issue)

  • robster80
  • robster80
  • ONLINE
  • Posts: 57
  • Thanks: 5
  • Karma: 0
2 days 20 hours ago - 2 days 20 hours ago #342034 by robster80
Hello,
I have an issue with the Flairs functionality in CB Activity. Specifically, I cannot add a flair to an automatic activity triggered by article publication.
Even if I manually add a flair from the administrator panel (which is not an ideal solution, since I would like this to be available for users), the flair does appear above the activity, but filtering does not work for it. At this point, it is only a visual marker, and what I really need is for flairs to work as a functional filter as well.
It is especially important for my use case to be able to assign the proper flair to each type of activity, since I had to stop using tags (they don’t work at all in my setup — I mentioned this in previous tickets, but unfortunately I don’t have the time to debug it further).
Flairs look like a great feature, and I really want to use them, but having them work consistently across all types of activities is a critical requirement for me.Thank you in advance for your help!

Best regards,
Robert.
Last edit: 2 days 20 hours ago by robster80.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49580
  • Thanks: 8485
  • Karma: 1465
2 days 19 hours ago #342035 by krileon
Flair filtering requires an entry in the _comprofiler_plugin_activity_flairs database table, which is just an activity_id and flair_id so relatively simple to insert if you're doing this programmatically. How are you generating your activity? Flair wasn't developed with programmatic activity in mind so that table inserting only happens on normal frontend activity. So for example it should work if you edit the generated article activity on frontend then apply the flair to it and save there. Backend is for management and moderation so none of this behavior applies there (same for mentions and hashtags in backend).


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.

  • robster80
  • robster80
  • ONLINE
  • Posts: 57
  • Thanks: 5
  • Karma: 0
2 days 19 hours ago #342036 by robster80
Yes, I can technically edit such an activity on the frontend after the article has been created, but when I try to add a flair there I get an error saying the activity has no content. If I then add any content, the activity loses its relation to the linked article.
So in practice, this makes it impossible to use flairs with programmatically generated activities (such as article publication triggers), which is exactly the case where I’d need them most.

Could you please consider extending the flair functionality so that:
1. A flair can be attached to programmatically generated activities without requiring content editing, and
2. The flair entry is inserted into #__comprofiler_plugin_activity_flairs without forcing the user to turn the automatic activity into a manual one.

If I understand correctly, this would make flairs really powerful for all kinds of activities, not just manual posts.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49580
  • Thanks: 8485
  • Karma: 1465
2 days 19 hours ago #342038 by krileon

Yes, I can technically edit such an activity on the frontend after the article has been created, but when I try to add a flair there I get an error saying the activity has no content. If I then add any content, the activity loses its relation to the linked article.

That sounds like a bug and will look into that as that certainly shouldn't be happening. What version of CB Activity do you have and what asset does the activity have? It should have an asset of "article.ARTICLE_ID" to be treated as an article.

Could you please consider extending the flair functionality so that:
1. A flair can be attached to programmatically generated activities without requiring content editing, and
2. The flair entry is inserted into #__comprofiler_plugin_activity_flairs without forcing the user to turn the automatic activity into a manual one.

You should already be able to do that using that database table using either PHP or SQL. How are you generating activity? If with CB Auto Actions will add a parameter for that so it's easy to configure there.


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.

  • robster80
  • robster80
  • ONLINE
  • Posts: 57
  • Thanks: 5
  • Karma: 0
2 days 18 hours ago #342040 by robster80
CB Activity version: 6.1.1+build.2024.09.24.17.47.31.dc6223263
Activity asset: article.3252

I believe this activity was generated either by the CB Activity Bot or by core functionality (since I don’t see a plugin with that exact name in my CB installation or on the Joomlapolis site). I definitely didn’t configure anything in CB Auto Actions for it.

I enabled the option in CB Activity Plugin Settings > Activity > Article, with the tooltip saying:
“Log activity when a user creates an article. Note this requires the CB Activity Bot to be installed and published.”

(BTW: under this setting, categories can only be excluded. In my case, I would strongly prefer an Include as the second option, because I have dozens of categories to exclude and only a few that I actually want to include.)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49580
  • Thanks: 8485
  • Karma: 1465
2 days 18 hours ago - 2 days 18 hours ago #342041 by krileon
I'm adding flair, and other activity features, support to ActivityEntity which is an object for logging activity, but you will not be able to select flair from that configuration and I've no plans to allow that as that far complicates that simple configuration. This however will be supported in CB Auto Actions so you'd need to switch your activity logging to that once this is all implemented if you want to set flair on automatic activity creation.

As for it not letting you save article activity without a message that was already fixed in CB Gallery 3.0 compatibility branch and am backporting that for a release early tomorrow.

(BTW: under this setting, categories can only be excluded. In my case, I would strongly prefer an Include as the second option, because I have dozens of categories to exclude and only a few that I actually want to include.)

You'll be able to deal with that when moving your activity logging to CB Auto Actions. Please understand that configuration is simple and is meant for the majority usecase. More specific usecases should move their activity logging to programmatic tools like CB Auto Actions or custom implementations.


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: 2 days 18 hours ago by krileon. Reason: typo

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

Moderators: beatnantkrileon
Powered by Kunena Forum