Skip to Content Skip to Menu

How to show username when registrate with invite code

  • camdri
  • camdri
  • OFFLINE
  • Posts: 35
  • Thanks: 0
  • Karma: 0
9 years 5 months ago - 9 years 5 months ago #264097 by camdri
Hi Kyle,

Managed to put the Query in a new Query Field on the Paramaters > Query tab.

In you SQL code it states on the last line:
WHERE i.`code` = `[invite_code]`
which should be the substitution of the invite_code in the current record. But it stays
empty.
When I use something like WHERE i.`code` = "83cc87e94e7904ac0fc0426b98b211f5", then it works fine!

Can it be that substitution of CB fields is not supported in queries? Or what am I doing wrong?
Last edit: 9 years 5 months ago by camdri. Reason: New insight after testing

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8281
  • Karma: 1443
9 years 5 months ago - 9 years 5 months ago #264124 by krileon
[invite_code] should substitute in the invite code stored to the users invite_code field. You may need to set the invite_code field to display on profile for it to substitute in correctly, but shouldn't have to with raw [invite_code] substitution. Substitutions are fully supported in query fields.

Turn on debug mode and maximum error reporting in Joomla global configuration then check query debugging at the bottom of the users profile page and find that query to see what value it's trying to substitute in.


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.
Last edit: 9 years 5 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum