Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

PAP integration debugging ?

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
12 years 1 month ago #216563 by activha
Replied by activha on topic Re: PAP integration debugging ?
Well thanks for all but it did not work
I had to revert to sending both infos to pap and test there instead of having the test within CB

If we had an ajax DB lookup that would have been much better :-)

thanks anyway

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #216604 by krileon
Replied by krileon on topic Re: PAP integration debugging ?
Realistically you need a custom plugin to implement what you're wanting. CB Auto Actions can do pretty much all simple things and even some complicated, but you've too much exchange going on for it to work out well. The below tutorial can get you started on a trigger based plugin (install-able example included).

www.allmysocials.com/directory/tutorials/item/228-event-triggers

I agree the ajax checking would be cool and have already suggested it to Nick.


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
12 years 1 month ago #216620 by activha
Replied by activha on topic Re: PAP integration debugging ?
Thanks I'll have a look in depth at your page .

By the way, we have another problem with auto actions which is that we need to pass an updated password to PAP when the user updates its details.

It works ok for registration because we store it in a temp field before it goes to the DB, but it does not seem to work when the user simply updates its profile because I can not find a suitable trigger.

Would on new password work also for updating profiles ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #216630 by krileon
Replied by krileon on topic Re: PAP integration debugging ?
Profile update trigger only passes a password when it's actually changed. You'd do the below to check for it.

Conditional 1: [post_password] Not Empty

You can then use [post_password] or [password]; either should work.


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2336
  • Thanks: 117
  • Karma: 13
12 years 1 month ago - 12 years 1 month ago #216644 by activha
Replied by activha on topic Re: PAP integration debugging ?

krileon wrote: Profile update trigger only passes a password when it's actually changed. You'd do the below to check for it.

Conditional 1: [post_password] Not Empty

You can then use [post_password] or [password]; either should work.


What do you mean by [post_password] is it a check on the regular password CB field ?

I tried to do it but when testing [post_password] Not Empty, the autoaction always fires even if the profile is only updated without a password change

I tried also with a request but the CB field does not seem to be updated quickly enough, only redirect seems to work

So far, it's not easy to pass a password change :-(

If you can help, I have attached my autoactions and the php file handling the change in password for PAP


PS : it seems that [password] is always sent, first in plain, then in hash when profile is updated. If it is hashed is there a way to use say only the first 10 letters of the hash ? if it's always the same ? that way I could have a pap password usable and recurrent

Thanks
Attachments:
Last edit: 12 years 1 month ago by activha.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #216656 by krileon
Replied by krileon on topic Re: PAP integration debugging ?
[password] will either return hashed or plaintext depending on the trigger. For after profile update, if password was changed, it'll be plaintext. I'm not sure what more to advise as [post_password] should be null if the password wasn't changed so the not empty condition should work fine. You can also try the below to see if it'll work.

to_boolean([post_password]) Not Equal To 0


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