Daviparvjx, I told you, UM generates profile cards automatically with any information you choose in members directory > member (for all members).
The bottom line is, UM does not have an option to create one user profile card just so that one user can see or find him/herself in the directory alone.
I guess if you had 100 user members, you could create 100 user roles and 100 member directories manually, but that’s kinda silly… 🙂
I’ll see if I can come up with some code that would exclude all users except the profile owner from any directory search.
I must say, I do find your idea intriguing…
Hi!
Yeah I know it is not possible but after some thinking I know how to do it but i don’t know how to code it.
If you search yourself by your username, you find that you are the first one to be showed up. If in “Order users by” there were and option where you could search by the user {username} by default you would appear the first one.
And then for just showing yourself on “results & pagination” just putting to show 1 profile the problem would be solve.
You don’t need code for that. The only settings you need to know for that are:
Enable Search features: Yes
Show results only after search: Yes
User Roles that can use search: (default) members
Choose field(s) to enable in search: Username
I thought you wanted a user to go to the member’s directory search and be the only one found without searching, or by default. That’s the code I thought you needed.
Let me know if this helps,
-
This reply was modified 9 years, 7 months ago by
borisv.
Dude: “I thought you wanted a user to go to the member’s directory search and be the only one found without searching, or by default. That’s the code I thought you needed.”
That’s exactly what I need, sorry for my bad english and expression.
We seem to have a serious issue in communication.
I told you, it’s not possible that way. It’s only possible if a user enters his username in the directory search box. Only then him or her will be found.
To have that you’ll need to apply the settings I posted above.
Are we clear now?
Yeah it is clear. But by coding is is possible?
I am studing informática but have 0 knowledge of php, I know that is as simple as implement a function that gets user username and put is by default in the searchbox for example, but i don’t know how to do it.
It may, or it may not be as simple as that. Maybe someone else with the same interest as you here would like to provide the code.
Whatever you do, don’t mess around with the core files.
Do you know any plugin or any other option to do what I want?
Thanks!