Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Grab + modify field value and fill another field with result

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233931 by krileon
onAfterUserRegistration is fired after the user object has been stored to database. So yes your query field should be able to pull the value without a problem. It may not be working due to access restrictions. If the field is on a tab with Registered access for example you won't be able to get the fields value unless you're logged in, etc..

Have you an idea when it will be ready ?

No, I'm too busy working on CB 1.10.0 to work on next releases of incubator projects so I can't say when it'll be done, sorry.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 1 month ago #233951 by dotcom22
I looked and my field is inside a public tab but simply in position "not_on_profile_1". The field itself is not restricted in any way but I still unable to pass his value in my Post..

Anymore suggestion ?

Alternatively instead to try to modify the date, is possible to simply store the date value in European format that mean DD-MM-YYYY instead YYYY-MM-DD ? I suppose this is not possible due to some database constraint ??

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233969 by krileon
Don't know what more to advise. None of the format functions work outside of conditionals for now. This will be changing in next release, but I can not drop what I am doing to implement it as CB 1.10.0 is more important, sorry.

Anymore suggestion ?

Yes, edit your endpoint and have it do date( 'd-m-Y', strtotime( DATE_FROM_URL ) ). Then it'll work no matter what format you send the date 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.

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

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 1 month ago #233991 by dotcom22

Yes, edit your endpoint and have it do date( 'd-m-Y', strtotime( DATE_FROM_URL ) ). Then it'll work no matter what format you send the date in.


I'm sorry I don't understand well what you mean.. As I said, when we use a CB Date field, the value seem to be always stored in format YYYY-MM-DD and this even if in CB Configuration the settings related to "Date format" is well DD-MM-YYYY.

So you mean is possible to change this ?

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233998 by krileon

I'm sorry I don't understand well what you mean..

You're sending the information via HTTP POST using a Request action as per your original topic. The location you are sending it should reformat the string to whatever it needs. It shouldn't be the other way around. So whatever script you're sending the date to use the formatting as provided in my previous reply to allow it to accept any date format. Best case is your system should be using MYSQL standard date formatting (Y-m-d H:i:s) anyway and it should formatted on output.

As I said, when we use a CB Date field, the value seem to be always stored in format YYYY-MM-DD and this even if in CB Configuration the settings related to "Date format" is well DD-MM-YYYY.

It will always store to the database like that, because that's MYSQL standard date format. It's the only format that it should ever be stored as in your database. It's reformatted for display.


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

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

Moderators: beatnantkrileon
Powered by Kunena Forum