Skip to Content Skip to Menu

[SOLVED] Auto Increment

  • jeffyg
  • jeffyg
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 0
9 years 10 months ago - 9 years 10 months ago #255155 by jeffyg
[SOLVED] Auto Increment was created by jeffyg
Hi,

I have the same requirement as listed in ticket #235653 by iway2013 and based on the guidance provided, I have done all that's mentioned.

www.joomlapolis.com/forum/153-professional-member-support/223173-auto-actions-progressive-id-only-for-user-approved-assign-a-progressive-number-onuserapproval#235675

The query (with some corrections) works in MySql but doesn't work in CB Auto Actions.

Appreciate urgent assistance on this matter. Let me know if any additional information is needed.

Regards,
Jeffy
Last edit: 9 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago #255182 by krileon
Replied by krileon on topic Auto Increment
Ensure you're using CB Auto Actions 6.1.1. If not then please update as there was a bug with automatic user object detection that would break expected conditions and substitution values. If you already have latest then please provide what triggers you're action is acting on, the conditions, the access, etc.. It helps to provide screenshots of at least the first two tabs for necessary debugging information.

You can also enable debug mode under the Parameters tab then enable debug mode and maximum error reporting in Joomla global configuration to see if any errors output during your action test.


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.

  • jeffyg
  • jeffyg
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 0
9 years 10 months ago #255198 by jeffyg
Replied by jeffyg on topic Auto Increment
Hi,

I am using 6.1.1

The trigger, condition and action screen shots are attached.

I have now enabled debug mode and also have enabled maximum error reporting

Regards,
Jeffy
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago #255205 by krileon
Replied by krileon on topic Auto Increment
Try using the after login trigger then attempt to login with a user and see if it updates. The problem with doing a query like that during a user store process is it does not update the user object so you can easily end up with the user object being stored after the trigger and your changes being completely lost.


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.

  • jeffyg
  • jeffyg
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 0
9 years 10 months ago #255228 by jeffyg
Replied by jeffyg on topic Auto Increment
Hi,

I tried the following

Before User First Login
After User Login
After User Confirmation

but nothing works

Appreciate if you can check and advise

Regards,
Jeffy

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago #255249 by krileon
Replied by krileon on topic Auto Increment
Your issue is your WHERE statement. You have the following.

`id` = 'user_id'

You're missing the brackets for the substitution. It should be the following.

`id` = '[user_id]'

You should also replace your table prefixes with #__ (e.g. adpc_ becomes #__).


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