Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

You may not believe me but [userid] has a bug

  • saman2
  • saman2
  • OFFLINE
  • Posts: 408
  • Thanks: 7
  • Karma: -1
2 years 10 months ago #328462 by saman2
hi
i use [userid] subsitiution in my code in the php auto action. i have more than 50000 user and recently some time i give wrong userid. i clear my code previous month and can not access but it return incorrect userid. is it possible check it?
also if is it possible, give me the path to file that define [userid] subsition.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48630
  • Thanks: 8307
  • Karma: 1446
2 years 10 months ago #328475 by krileon
Replied by krileon on topic You may not believe me but [userid] has a bug
[userid] doesn't exist. It's [user_id]. It isn't defined anywhere. It's pulled directly from their user object. It's impossible for it to be wrong.

For CB Auto Actions it will be from the user who triggered the auto action or the user object sent with the trigger all of which will depend on what the User parameter is set to and what data is contained in the trigger being used.

My guess is your code is wrong or you aren't understanding what variables the trigger you're using is sending. See the below for a list of triggers and their variables.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18358-using-cb-triggers

Unfortunately I can't help you any further. We do not provide free support for paid products. If still having issues I suggest renewing your subscription, updating your site, and if issue continues post in our support forums.


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