Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] AutoAction - Profile Book/Wall and Comment Field to Activity Stream

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
9 years 3 months ago - 9 years 3 months ago #266999 by jpdenny1
Hello CB.

Few quick questions regarding the title above. I've read the Use Case and watched the Vids. Using Auto Actions 6.3.0.CI.2015.0… and CB 2.0.9 nightly. Everything else most recent.

Auto Action Profile Book / Wall post to Activity Stream

1. What's the best trigger to use for Auto Action of a Profile Book and Wall post to the Activity Stream? (none seem to fit the use, tested many)

2. The 'Type' in the AutoAction Action Tab is [cb.profilebook] right? 'Mode' is Activity.

3. What's the appropriate message to put in? -I tried the one from the CB Latest Module

i.e. {p[cb:userfield field="formatname" reason="list" /]} added a new <a href="{e}">guestbook entry</a> to {r[cb:userfield field="formatname" reason="list" /]} - {e[date]} (no good)

4. Any hints as to what's best for the 'Links' part in the Action section i.e. link, url,description.

Auto Action Comment Field to Activity Stream

5. Finally (I got this kind of working yesterday and it affected so many things that I unpublished lots and and re-installed CB Activity) but... to publish a Field of type Comment to the Activity Stream what is:
Mode: Activity ?
Type: field ?
Message: [cb_comment] ?
Owner: [user_id] ?
Links part (not a clue what to put here!)
Type:
Url:
Description:

What's the most appropriate trigger also?

Sorry to bother you with this, but I'm sure the answers/knowledge will come in handy on the forum also for others.

Joomla 3.6.2
CB 2.0.15 Latest Nightly
GJ 3.0.1 nightly
Php version 5.5.35
Auto actions nightly
Activity nightly
Privacy nightly
Conditions nightly
CB Gallery 2.0
.....all nightly!
Uddeim 3.9
Last edit: 9 years 3 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
9 years 3 months ago #267006 by krileon

1. What's the best trigger to use for Auto Action of a Profile Book and Wall post to the Activity Stream? (none seem to fit the use, tested many)

CB ProfileBook doesn't have any triggers so to be honest I wouldn't try forcing it. The only way to get it to work is to act on the profile display trigger and condition for its POST data, which isn't very ideal and page refresh can cause a double trigger.

2. The 'Type' in the AutoAction Action Tab is [cb.profilebook] right? 'Mode' is Activity.

Whatever you want it to be. For example the type could be "profilebook". It's just a way to identify the activity source.

3. What's the appropriate message to put in? -I tried the one from the CB Latest Module

No idea, that's up to you. You don't have to supply a message at all. The latest module custom substitution stuff won't work here as that's specific to the module. Since CB ProfileBook doesn't have any triggers you'd have to rely on the post data, which won't be processed yet so it's a security risk.

4. Any hints as to what's best for the 'Links' part in the Action section i.e. link, url,description.

A link type of "custom" then supply whatever HTML you want it to display as the linked item. This is used in the CB Blogs system action for example.

You may want to edit some of the system actions to see how they're working and utilizing the various features. The activity action is very powerful and complex to provide the most flexibility in activity logging.

5. Finally (I got this kind of working yesterday and it affected so many things that I unpublished lots and and re-installed CB Activity) but... to publish a Field of type Comment to the Activity Stream what is:

CB Activity RC4 comes with a Comment fieldtype. You don't need CB Auto Actions to have a comment field. Aside from that I don't understand your question or what you're trying to do.


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.

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
9 years 3 months ago #267015 by jpdenny1
Thanks Kyle. Just that I actually expected it to integrate much easier:

'Add realtime activity streams to your website and your user profiles. Integrates with CB, GroupJive, ProfileBook, ProfileGallery and Kunena. CB privacy plugin settings are respected'.

I can get it to display now: but the trigger publishes it over and over and you said no trigger is ideal. I used this: [cb:userfield field="name" reason="list" /] added a new guestbook entry</a> to [cb:userfield field="name" reason="list" /] Unfortunately this shows: [user] text... [user] not [author] text... [user] Seems like I'll have to scrap the idea.

5.

I'm referring to the comment field type. Published under a tab. Independent of the Activity. Should have been clearer. Essentially it comes down to publishing any field entry to the Activity Stream, one that doesn't already do it automatically.
I can see a use for it in my usage (e.g. competition page, enter whatever to enter, quick and snappy), but as stated had a major problem with it yesterday, where modules and tabs went into hiding - took up space but not visible, Activity Stream tightened up also - had white space and display was off cue, after using the Auto Action with it to publish on Stream.

Is mode always 'Activity' when trying to Auto Action to Activity Stream?At least I'll know that is right.


I'm trying to use a combination of ProfileBook, ProfileWall, Profile Blog, Activity, Comment Field Type to make my site/network usability clever and useful for both users and admins. Don't need to use all, but exploring each one. There is a perfect solution there somewhere I imagine. This is the core of my site/network offering. None are perfect, (for my use) and very frustrating.

Joomla 3.6.2
CB 2.0.15 Latest Nightly
GJ 3.0.1 nightly
Php version 5.5.35
Auto actions nightly
Activity nightly
Privacy nightly
Conditions nightly
CB Gallery 2.0
.....all nightly!
Uddeim 3.9

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
9 years 3 months ago #267023 by krileon

'Add realtime activity streams to your website and your user profiles. Integrates with CB, GroupJive, ProfileBook, ProfileGallery and Kunena. CB privacy plugin settings are respected'.

That description no longer reflects the current state of CB Activity. Thought we updated them all, but looks like we missed the addon page description.

I'm referring to the comment field type. Published under a tab. Independent of the Activity. Should have been clearer. Essentially it comes down to publishing any field entry to the Activity Stream, one that doesn't already do it automatically.
I can see a use for it in my usage (e.g. competition page, enter whatever to enter, quick and snappy), but as stated had a major problem with it yesterday, where modules and tabs went into hiding - took up space but not visible, Activity Stream tightened up also - had white space and display was off cue, after using the Auto Action with it to publish on Stream.

Do you want a field that's a Comments stream or are you meaning you want to log activity anytime a field value is changed? Sorry, I don't understand what you're trying to do. You seam to be confusing or mixing CB Auto Actions with a Comments field when they're two completely different and independent solutions.

Is mode always 'Activity' when trying to Auto Action to Activity Stream?At least I'll know that is right.

When logging activity to the activity stream yes the mode is always Activity.

I'm trying to use a combination of ProfileBook, ProfileWall, Profile Blog, Activity, Comment Field Type to make my site/network usability clever and useful for both users and admins. Don't need to use all, but exploring each one. There is a perfect solution there somewhere I imagine. This is the core of my site/network offering. None are perfect, (for my use) and very frustrating.

CB ProfileBook is old. It has no triggers and older usability. It does not work well with CB Auto Actions, because it has no triggers of its own. This causes significant problems for CB Auto Actions as it doesn't have anything specific to act on. It's not going to work well together. CB ProfileBook usage has basically been replaced by a combination of CB Activity (wall) and CB Blogs (blog).


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.

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
9 years 3 months ago - 9 years 3 months ago #267030 by jpdenny1
Ok thanks. It's the interface of the CB ProfileBook is a turnoff, will confuse General Users unless have basic coding knowledge.

I see a solution but I'll need to elaborate on the Comment Fields.

Case: 2 Usergroups: Admin and General User.

Activity is set to registered access but conditioned to Admins view only - it's handy, core stuff is automatically posted on it e.g. file uploads, avatar change etc. Admins can comment and cases or projects can be made with what I'm thinking will be ProjectFork. i.e. Using Activity for Admin purposes.

What to give the General Users?. Well like I said the ProfileBook series isn't ideal at all + to get updates for all Users in the CB PB Module any one of these would have to be published to Admins also (can't separate the two for full functionality). Admins can use the ProfileBook series on their own Profiles as they can be trained to use them. That's Admins sorted - will go with Blogs, yet I can't seem to get the Avatar to publish next to a Blog even with the setting set to show Avatar.

Anyway ---- A solution I see for the General User is the Comment Field Type, published under a Tab.

So instead of a General User making a comment on their profile and nothing happening - it would be great to alert Admins on the Activity Stream. Can go to General User Profile and answer or give feedback. The Admin could also comment on the Activity Stream e.g. 'I'll look after this' as I don't believe the General User could see this, handy.

BUT how to get this - what is essentially a FIELD to publish onto the Activity Stream. Auto Actions I still assume. I tried it and it broke stuff. The Auto Action fields are pretty difficult to understand for this i.e. Type: CB Activity then 'Action' section in particular, wonder if you could advise on the values to put in and the best trigger.

EDIT: got this working somewhat, but the stream display is awkward, it piles on top of the main activity stream. Also, Admins can directly write back off the Activity Stream to the Users Comment tab - awesome/exciting!Would really appreciate your take on the settings though.

Kind regards



Joomla 3.6.2
CB 2.0.15 Latest Nightly
GJ 3.0.1 nightly
Php version 5.5.35
Auto actions nightly
Activity nightly
Privacy nightly
Conditions nightly
CB Gallery 2.0
.....all nightly!
Uddeim 3.9
Attachments:
Last edit: 9 years 3 months ago by jpdenny1. Reason: Edit

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

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
9 years 3 months ago - 9 years 3 months ago #267074 by jpdenny1
Hello CB.

Kind of got this working more so now. But still not perfect.

There is duplication (not the fault of the trigger I believe), but it's not over and over please see attachment. + you'll see that in for example the first box when reply is clicked it runs into the frame. Update: 'See more' just worked for that actually but the same occurs in the third box which has no 'see more' option.

This use works extremely well if only fine tuned.

Here are my settings for getting the Comment Field under a Comment Tab to publish to Activity Stream:
(Note: I have called my Comment Field: cb_comment)

Global
Trigger: After Create Comment (only works when refresh the page actually)
Type: CB Activity

Action
Mode: Activity
Method: Create
Message: [cb_comment]
Item: 147 (Comment Field ID)

- Links, subsection of Action
Type: field
URL: www.iputinmywebsitehere.com (not sure what this is all about but it is required so put in something)

That will hopefully narrow things down to get some good advice on it.

Kind regards

Joomla 3.6.2
CB 2.0.15 Latest Nightly
GJ 3.0.1 nightly
Php version 5.5.35
Auto actions nightly
Activity nightly
Privacy nightly
Conditions nightly
CB Gallery 2.0
.....all nightly!
Uddeim 3.9
Attachments:
Last edit: 9 years 3 months ago by jpdenny1.

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

Moderators: beatnantkrileon
Powered by Kunena Forum