Skip to Content Skip to Menu

Refresh request

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 7 months ago #261613 by chanteur94
Refresh request was created by chanteur94
Hi

I create a simple field text area cb_exemple.
Then I create a simple CB Auto Action before profil display - Action Request
My request is an Update of the field cb_exemple :

update #__comprofiler set cb_exemple = "0" where id='[user_id]'

When I open my profil display, the display is good ONLY if I refresh my page.

How to have the good result without refresh ?

Thank you.

Joomla 3.4.1 CB 2.0.7

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261659 by krileon
Replied by krileon on topic Refresh request
You're just updating the database and not the already existing user object, which is why it takes a page reload. You need to use onBeforeUserProfileAccess then set User to Manually then select Variable 1 for User Variable. This will give access to the user object data before the user object is constructed for profile view. Next I've no idea why you're using a direct query; just use a Field action.


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.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 7 months ago #261703 by chanteur94
Replied by chanteur94 on topic Refresh request
I don't find onBeforeUserProfileAccess ??

You're right, I haven't see the FIELD Action.

Tx

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261728 by krileon
Replied by krileon on topic Refresh request
It's a new trigger added in CB 2.x. CB Auto Actions doesn't have it in the dropdown yet. The Triggers parameter is a Tags usage so you just start typing the new trigger and press enter when you're done (I think space and comma may also 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.

Moderators: beatnantkrileon
Powered by Kunena Forum