Please Log in or Create an account to join the conversation.
pepperstreet wrote: Just watched Nant's presentation " Implementation without coding using Community Builder framework tools " and also the written tutorial " Adding your own events to activity stream "
Nice little and crucial infos. Really appreciate any bit of knowledge and help. But its still a cumbersome task to get this kind of infos.
The presentation is a starting point, and the slides and short sample use cases are great. Are you gonna publish the slides on Joomlapolis or SlideShare or in any other format/location?
Currently, there seems to be no real documentation.
For example - Activity tutorial:
My dumb question: Where do those var-name-prefixes come from? How should I know what to enter in the value input fields? I am aware of the actual field names and substitution syntax... but what is var1_* var3_* ?!? And why those particular numbers? Any documentation is badly needed.
I also try to get infos about Integration:
- How to create an Auto-Actions plugin?
- How to integrate a 3rdparty extension into CB Activity stream?
Some rough answers are found in the forum. But that does not give a real good picture. Here one question, there a code snippet and suggestion... I am sure, the original developer is used to everything and knows all coherences and relations... but for people like me... there is no guide.
Looking forward to more documentation, tutorials and articles!
Please Log in or Create an account to join the conversation.
Each trigger sends variables with it. CB Auto Action has no idea what those variables are going to be called. So instead it names those variables 1 through 10 so they can be accessed. The variables are then parsed, cleaned, and turned into substitution accessible strings. There already is documentation for core triggers below.For example - Activity tutorial:
My dumb question: Where do those var-name-prefixes come from? How should I know what to enter in the value input fields? I am aware of the actual field names and substitution syntax... but what is var1_* var3_* ?!? And why those particular numbers? Any documentation is badly needed.
You can add new models to CB Auto Actions fairly easily. It uses dropdown support so you literally and create a new model and drop it into the models folder. I suggest reviewing existing models below to see how to create your own.- How to create an Auto-Actions plugin?
You've 4 options. First option; If the extension fires a CB trigger then you can simple use CB Auto Actions to do this. Second option; direct database insert from with your 3rd party extension. Third option; fire the CB trigger that adds new CB activity. Forth option; use data layer API to insert a new entry. Examples as follows.- How to integrate a 3rdparty extension into CB Activity stream?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
There is no best practice. All the methods work. All the methods are supported. Use whichever fits your needs best. The query usage is the most lightweight as the extension doesn't have to load in CB API. The trigger usage is the most safe as if the plugin isn't installed it just won't do anything (no missing function errors or anything), but requires CB API. The data layer API is most direct and flexible as well as affords usage of object class functions, but requires CB API and a check to ensure CB Activity exists before using it. They all have their strengths and weaknesses.What is best practice, if a 3rdparty component offers this kind of Events system:
No, I didn't create the extension nor have any experience with it.1. Can you give a hint if this Event System is of any help?
Please see my above reply.What integration method is to prefer?
I have no idea, again I did not develop that extension. CB API has a memory footprint just like any extension so it depends entirely on if your server can handle CB being loaded at the same time as your other extensions. CB has a relatively small footprint though so it should be fine.2. Cobalt supports basic CB integration (Avatar, Profile-link, Online-Status). Would it make sense to load CB API with this global option? Or does it have a big impact on the site? (memory? performance?)
The extension would need to load CB API and fire a CB trigger using $_PLUGIN->trigger. If it does then that trigger can be acted on using CB Auto Actions. This is entirely up to the extension developer, but is extremely unlikely they'd implement this as it creates a CB dependency (relies on CB or the trigger would do nothing).3. Sorry, what do you mean by "First option; If the extension fires a CB trigger then you can simple use CB Auto Actions to do this"? Why and how should another extension use CB triggers?
No, it's not loaded on every page. CB only loads wherever it's used. If you've the CB Activity module on every page then CB is loaded on every page for example. How you implement is entirely up to you and isn't something I can help you decide.4. Basic understanding: If I use CB and Activity on a site... the CB API is loaded on all pages that display CB infos, right?! So, if i would need CB data or trigger... i have to load the API in Cobalt/or template ?
Please Log in or Create an account to join the conversation.