Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Problem with Stream on CB Trigger

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 1 week ago #290081 by timstohr
Problem with Stream on CB Trigger was created by timstohr
Hi Kyle,
still having problems with the streams.
When a user comments on the stream in a 3rd party plugin stream (CB Activity stream), then I have the problem that the message appears as it should do and is added to the database.
HOWEVER when I press F5 and reload the page, the stream has disappeared on the 3rd party plugin stream BUT remains on the stream outputted by the module.

I have attached the view of my auto action

The post after I have posted


And what it looked like after I reloaded the page
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 1 week ago - 8 years 1 week ago #290085 by krileon
Replied by krileon on topic Problem with Stream on CB Trigger
You have a module and the page outputting the same stream? It's possible they're conflicting due to caching behavior. Disable the module and see if that works. Otherwise check the system actions for CB Gallery commenting which don't have this issue. Aside from that I don't know and am guessing maybe one of the variables you're sending and using for Sub-Type or Parent aren't static and change on reload. Typically you'd have Type to specify the main source of the activity (e.g. events) then subtype to specify the secondary source (if none then don't specify a subtype) and Item to specify the ID of the source (e.g. this would be the event id). You likely in your case only need to set Type and Item. Try the below.

Source: profile
Type: event
Sub-Type: (empty)
Item: [whatever variable contains event id]
Parent: (empty)
Owner: [whatever variable contains the event owner user id]


Note this is all being rewritten as we speak (Activity API class already rewritten 90%); type, subtype, etc.. will be gone in favor of single Asset (like CB Gallery) so it'll be easier to link content to a stream (migration will be added so you shouldn't lose anything). Basically just an FYI that improvements are coming.


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: 8 years 1 week ago by krileon.

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

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 1 week ago - 8 years 1 week ago #290087 by timstohr
Replied by timstohr on topic Problem with Stream on CB Trigger
Solved it but probably irrelevant since you are going to improve it.

It really did not like to have [var4] in sub-type. Even though it always overrode it before saving in the db (in db it was saved as "status") but it made it disappear and threw loads of errors (though not 100% sure that the errors had to do with that). Once I made sub-type fixed (I used "Eventcomment"), it completely and utterly stopped working. That seems a bit like a bug or at least you have to explain somewhere what the sub-type is for and that it should only say "status" and "comment").

So... to sum up. It works again now as it should because I am now leaving sub-type free.

Oh and via trial and error, I have also found out that when I have [var2] in ITEM all the comments that I make to posts are reproduced on all posts of that ITEM.
Last edit: 8 years 1 week ago by timstohr.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 1 week ago #290094 by krileon
Replied by krileon on topic Problem with Stream on CB Trigger
Yeah that's all being changed. The status post functionality is also being unlocked for all usages. So the code that annoyingly is trying to determine what is an isn't a status post won't be so wonky anymore. This means activity entries from things other than a user post can be edited (most plugins will turn it off by force though). In short this will be significantly less painful to configure in CB Activity 4.0.0. In addition to this a content.prepare Joomla plugin is being made so you'll be able to substitute in activity streams wherever you want that supports content prepare.

Oh and via trial and error, I have also found out that when I have [var2] in ITEM all the comments that I make to posts are reproduced on all posts of that ITEM.

That's the point. You're linking the comments to that event. For asset usage it'd be "event.EVENT_ID" for example (and is what type with item and no subtype or parent will migrate to). I've no idea what var2 is in your usage though.


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