7 – Incorrect user data that is loaded after saving

I'm running into some data inconsistencies when trying to load user data after saving the data. Basically, I have a callback that will update a field in the current user object. In a simplified version the callback goes:

function update_name_field_callback ($ new_value, $ ajax) {
global user $;
$ user_data = user_load ($ user-> uid);
$ user_wrapper = entity_metadata_wrapper (& # 39; user & # 39 ;, $ user_data);

$ user_wrapper-> field_name-> set ($ new_value);

$ user_wrapper-> save ();

yes ($ ajax) {
ctools_include (& # 39; ajax & # 39;);
ctools_include (& # 39; modal & # 39;);

$ ret = array (
& # 39; command & # 39; => & # 39; modal_display & # 39 ;,
& # 39; title & # 39; => & # 39; New Name & # 39 ;,
& # 39; output & # 39; => views_embed_view (& # 39; user_name & # 39 ;, & # 39; page & # 39;)

// Returns the ajax instructions to the browser through ajax_render ().
print ajax_render (array ($ ret));
drupal_exit ();

In another module, I use the hook_user_update to grab any changes and update an external database with the new information. It goes something like:

function my_module_user_update (& $ edit, $ account, $ category) {
_update_external_db_user ($ account)

Up to this point, everything is working as expected. the my_module_user_update parameter $ account has the new value for the name field and the correct information is sent to the external database. My problem comes when Drupal is rendering the Username page and use the hook_views_post_execute in a different module:

function my_other_module_views_post_execute (& $ view) {

if ($ view-> name === "user_name") {
global user $;
$ user_data = user_load ($ user-> uid);
$ user_wrapper = entity_metadata_wrapper (& # 39; user & # 39 ;, $ user_data);


At the point of my ERROR HERE comment, the user that is loaded does not have the new field value, it is still the existing value. Does this have anything to do with AJAX? Why does not the global user get the updated field values ​​at this time?

Android Q: the user deletes the persistent permission in uri in the application configuration. How to request permission again?

Aandroid Q. I create a file in Android with Storage Access Framework (https://developer.android.com/guide/topics/providers/document-provider) For example, some image or video in the download directory. I use ACTION_CREATE_DOCUMENT for this and then I get a persistent permission for this uri. As a result, I get access to this file from my application after updating my application, restarting the device. But the user can go to the configuration of the system application and delete this permission. And then I do not have access to this file for this Uri (for example, I stored this Uri in the database). But I need to show this image / video for the user. How should I do it? How can I request permission for this Uri again? ACTION_OPEN_DOCUMENT does not support the opening of only a certain Uri?

spring boot – EL1008E: The property or the field & # 39; User & # 39; can not be found in the object of type & # 39; java.lang.String & # 39 ;. Maybe it's not public?

I would like to know why I can not return a list with the methods I am implementing, I am working with spring mvc, I am just getting to know the programming language thanks!


@Query ("SELECT DISTINCT c.campania from Tbl_avt_audio c")
ListfindAllCampania ();

@Query ("SELECT DISTINCT u.user FROM Tbl_avt_audio u")
ListfindAllUser ();



Public listfind all ();

Public listfindAllCampania ();

Public listfindAllUser ();

implementation service

ITbl_avt_audioDao tbl_avt_audio private;

@Transactional (readOnly = true)
Public listfind all () {
return (List) tbl_avt_audio.findAll ();

@Transactional (readOnly = true)
Public list findAllCampania () {

return (List) tbl_avt_audio.findAllCampania ();

Public list findAllUsuario () {
return (List) tbl_avt_audio.findAllUsuario ();

authentication: How to keep the user connected when using OpenID Connect & Cookies in the dotnet core?

I'm working on an OpenID Connect Hybrid flow, basically the answer type in my case is: code id_token
Problem: I can not seem to keep the user session when I log in with the id_token.

I built the application using the OpenID Connect authentication driver and the .Net Core cookie driver.
However, cookies are session cookies, so they expire at the moment when the browser is closed, in which case the user closes the session and has to log in again when the browser is opened.
What made me think, that I have not been using update tokens even though I have asked them to the Authorization server.
So, the question to discard them all: How can I keep the user's login in the browser so that he only has to log in once? I realize that cookies must have an expiration date and should not be regular session cookies and I also realize that I must use update tokens to authenticate the user backstage and thus produce a new cookie in the process . However, is my thinking correct? If so, how to do that? If not, what was wrong?

seo – How to classify the pages that require user input?

We have a car product page where we describe details about the specific car / bike, such as images, videos, news, reviews, etc.

Now, we are planning to show the price and EMI of these cars as well. Prices and EMI vary from city to city. We are planning to create EMI and a page related to the price for each model city combination.

The only problem is how we create links for these price and EMI pages. Currently, the plan is to show the initial price and the EMI of a popular city and give a link to the user to select their city. Once the user selects the city, he / she will be taken to the price / EMI page based in the city. But the problem is that the crawler will not be able to crawl these pages and users must first select the city. How do we resolve this and make these links traceable?

User interface tests for multiple screen configurations

I was wondering if there was any tool / system that is capable of simulating multiple screens to use in the UI tests.

We are developing an application that can consist of multiple windows, depending on the user's configuration. We would like to test (manually) such configurations with more than 2 monitors, even if the developer / tester only has 1-2 monitors. We do not need to automate these tests. I would be able to see it from time to time when we make larger UI changes would be enough.

Thank you.

Members & # 039; User Titles

Do you keep the default user titles in your console or have you changed the number of publications and given different names for the user titles in your forum? CH has changed the publication count so that members can see a change immediately when the site is new. Then we added the option in our store to change it to whatever they want, but at some point they were lost and returned to the default configuration and I'm not sure what happened there.

What is the best user interface widget for ternary data?

In a form design wizard, people can define branding fields and then indicate how important they are. Some fields will always be in the form (for other purposes). However, for one of these fields, a person can indicate 3 "levels" of how they work:

  • Obligatory (the field is mandatory and the end user can not leave it empty)
  • Optional (the field is optional / can be left blank)
  • Disabled (the field can not be edited by the user / will always be blank).

Since each of these options is mutually exclusive, the use of multiple boxes / sliders is not the correct way.

One option is to use 3 radio buttons, however, this uses a lot of "room" for such a simple definition.

Is there a better tool? Where can I easily show the ternary status and receive comments (also on mobile devices)?

terminal – Ignore configuration wizard when creating new user

I wanted to create a new user using Terminal and managed to do it by finding answers in StackExchange, but I could not figure out how to skip the configuration wizard that appears when I log in to my newly created account. I wanted to do this also through the Terminal if possible.
Does anyone know a way to skip configuration wizard?

Thank you!

Better user interface to choose a birthday?

I am designing a form where the user needs to choose his birthday. only day and month, not the year.

Since it is only the day and the month, the standard practices for date collectors do not necessarily apply, although some do.

Nielsen and Norman recommend dividing the fields and spelling out the month if possible. The UX movement recommends the use of simple text fields, but that eliminates the possibility of spelling the month. There is also the question of whether the focus should be automatically changed to the next field: Lukas Mathis recommends not doing so, but without it, there is an additional click when using two fields.

I should also mention that the user interface should consist only of standard elements. I know there are excellent custom collectors out there, but this project does not have the budget to create one for such a small feature.