Skip to Content Skip to Menu

Create Kunena post on new user registration

  • Vorak
  • Vorak
  • ONLINE
  • Posts: 229
  • Thanks: 43
  • Karma: 3
2 days 18 hours ago - 2 days 17 hours ago #341214 by Vorak
Thank you. I can confirm that the error no longer shows, and that a new topic is created in the forum category of my choice.

However, it seems I still did something wrong. When an account is created, the forum post does not post the details (username, email, etc...) of the new user, but instead of my own account. 

I used this (as you can also see in the screenshot in my original post):

ID: [user_id]
Username: [username]
Display Name: [name]
Real Name: [cb_realname]
E-mail: 


In the Group Leader field I entered the ID of my own account as that's the account the posts should be made with in the forum. When I leave that empty, I get an error and no post is created.

What am I doing wrong?
Last edit: 2 days 17 hours ago by Vorak.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49229
  • Thanks: 8415
  • Karma: 1462
2 days 16 hours ago #341215 by krileon
Replied by krileon on topic Create Kunena post on new user registration
Sounds like you set the "Owner" and by doing so it will cause the substitutions to be from that user as the parameter states. You can pull in variables directly from a trigger or refer to the action user using substitutions. Below are two examples.

Variables:
Username: [var1_username]
Username: [cb:userdata field="username" user="[var1_id]" /]

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


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: Vorak

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

  • Vorak
  • Vorak
  • ONLINE
  • Posts: 229
  • Thanks: 43
  • Karma: 3
2 days 13 hours ago #341228 by Vorak
Thank you for this. I used the method per your second example (Action User) and now it works perfectly as intended!
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum