[SOLVED] Auto Action Activity doesn't post to the activity stream

6 years 5 months ago - 6 years 4 months ago #298352 by fribse2011
We are currently using activity instead of a very little used forum, just a quick 'posting wall' on the club page to give small comments and stuff like that.
And the idea was that the posts would be made to that 'wall' by the club (user 17), whishing happy birthday to the member with a birthday.
If I leave owner empty, it's the user who has a birthday that posts to the wall, which is not what I want.
But if I enter an owner as 17, it's the diving club that are wished happy birthday.
The congrats text is like this
Tillykke til [name]
Can I set the owner to 17, and then substitute the [name] with the person who has the birthday somehow?

The other posts that user 17 makes are 'Welcome messages' to new members, and that doesn't make any sense that the users themselves makes posts that says welcome to myself.

I also see a difference when posting directly, and when posting through the activity.
If I want to add 'Felling like' or something like that, the activity posts it in the text, whereas the direct post places it in the top.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
Attachments:

Please Log in to join the conversation.

6 years 5 months ago - 6 years 5 months ago #298364 by krileon

Can I set the owner to 17, and then substitute the [name] with the person who has the birthday somehow?

Yes, this is done by using [action_user]. The Owner parameter does a user substitution switch. This means substitutions will be based off the id of Owner. All parameters that do a user switch note this in latest release in addition to the User parameter under the Global tab explaining [action_user]. You can utilize it as follows.

[cb:userdata field="username" user="[action_user]" /]

Eventually you'll be able to make system activity posts, which is really what you're needing but a system user isn't supported yet.

If I want to add 'Felling like' or something like that, the activity posts it in the text, whereas the direct post places it in the top.

Activity can't have 2 titles. If you supply a title and supply an action such as "feeling like" then the action will be appended to the bottom of the post.


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.
The following user(s) said Thank You: fribse2011

Please Log in to join the conversation.

6 years 4 months ago #298733 by fribse2011
Ahaa, gotcha, works like a charm, I just had to use:
[cb:userdata field="name" user="[action_user]" /]
instead, then it looks just like I want it to!

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
The following user(s) said Thank You: nant, krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.246 seconds

Facebook Twitter LinkedIn