My client wants a front-end user management system. For that, I need to query some data I can't select from the UI.
- The user role: I tried [wpv-user field="roles"] but that doesn't seem to work
- The activity of the user: the client would like the number of times the user logged in, but I think the last login date is fine too
- User data: a link to a page with all the data for a specific user, and a form to edit those date front-end for any user (instead of just the logged-in one)
I've created a classic view and used the table format, but the fields "first name" and "last name" aren't sortable.
- The activity of the user: the client would like the number of times the user logged in, but I think the last login date is fine too
===>
There is no such feature available to record the activity of user. You may check for plugins available on wordpress.org
I've created a classic view and used the table format, but the fields "first name" and "last name" aren't sortable.
===>
You can build the custom search with sorting for post type views not the user type views.
-------------------------------------------------------------------------------------------------------------------------------------
No. I'm listing all users, and I need to show their user role in that list. I can query it with Greenshifts repeater builder, so it can be queried.
--------------------------------------------------------------------------------------------------------------------------------------
- The activity of the user: the client would like the number of times the user logged in, but I think the last login date is fine too
===>
There is no such feature available to record the activity of user. You may check for plugins available on wordpress.org
--------------------------------------------------------------------------------------------------------------------------------------
Again, I can query the last login date with Greenshifts repeater builder so it should be possible
--------------------------------------------------------------------------------------------------------------------------------------
No I didn't find a solution. Greenshift lacks some other things I need so I need to do this in Toolset. What I meant is that if I can query certain data with Greenshift, I should be able to query that data with Toolset too.
And I'm still not clear on how to build a front-end user edit form that can be used by admins for all users. I can only seem to edit my own data, so only for the currently logged-in user.
Well - I can not say anything whats possible for now.
If you can share your whole requirement and access details and tell me what exactly you want to dislay where I can guide you in the right direction.
I can easily guide you to create view for users and edit user form but then you will have to check how you can query certain data with Greenshift.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I see the view you created is working. We can not offer support to customize the things as per client requiirement as it may need customization and custom code that is beyond the scope of our support policy.
I can help you to get user role displayed.
To display the user role I've added the following custom shortcode to "Custom Code" section offered by Toolset with the code snippet namely "toolset-custom-code":
=> lien caché
Thank you for this. The most important thing however is that my client wants to be able to edit the user info from the front-end.
So for example on lien caché, you see a link "gegevens aanpassen". This links to a post form to edit the ships info.
Below that, you see a heading "Gegevens eigenaar". That's the owner of the ship. In this case, his name is Nelson A. He is the post author. I added a link "gegevens aanpassen" for that too, which leads to a front-end user edit form. But when I click on it, I can only edit my own user data. I want to edit the user data for Nelson A.
I would like to mention here all this is custom code and which is beyond the scope of our support policy. If you need further help with any of such query you are welcome to contact any of our certified partners:
- https://toolset.com/contractors/
Thank you for your trouble. I didn't expect to need custom code for this to be honest, I expected there would just be a standard shortcode for this that I didn't find in the documentation.