Skip to Content Skip to Menu

Auto Action: Message in the stream (New member)

  • XBOOMX
  • XBOOMX
  • ONLINE
  • Posts: 144
  • Thanks: 14
  • Karma: 1
5 hours 57 minutes ago #343253 by XBOOMX
Hi, I'm currently trying to set up Auto Action, but I'm stuck. There's already a preset action: when a new member registers, a message is generated in the stream (XXXXX has registered). I've deactivated this action because I want to create a different, more personalized one. I'm using:
Global
on AfterUserRegistration
Type: CB Activity
User: Automatic
ACL: All
Action
Mode: Activity
Method: Create
Stream: Recent Activity
Published: 1
Title: My Title
Message: My Message
This isn't working; the action isn't firing and is always stuck at zero. Can you point me in the right direction? I'm obviously doing something wrong.

Thanks a lot,
Thomas

Are there any examples or lists I can look at to learn from?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50137
  • Thanks: 8577
  • Karma: 1468
5 hours 47 minutes ago #343254 by krileon
The below would mimic what the internal behavior is doing.

Global
Triggers: onAfterUserRegistration
Type: CB Activity
User: Automatic
Access: Everybody
Action
Mode: Activity
Method: Create
Stream: Profile Activity
Asset: profile.[user_id].registration
Load By: None

That asset would just result in the same title displayed as the internal activity, which is "joined the site". Note that is a language string so you could just override it for example. To avoid that you could create your own asset. Below for example would work fine.

Asset: profile.[user_id].registered
Title: My Title
Message: My Message


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