Home › Forums › Front End PM PRO › autosuggestion inconsistant
Tagged: autosuggestion, problem
- This topic has 11 replies, 2 voices, and was last updated 6 years, 3 months ago by Andrew Perryman.
-
AuthorPosts
-
September 2, 2018 at 3:53 pm #17137Andrew PerrymanParticipant
Hi Shamim,
I have had real issues trying to search members using the above sometimes I have to use the email addres to have the system find a members name as their first or last name does not find them when creating a new message or adding them to a group on the back end. Sometimes I have to partly type a name e.g for Andrew I have to type Andre as the full Andrew will not be found. Sometimes I have to use the first part of their SMTP mail address before the @ integer, to find them. Also sometimes I type their surname in full but do not find them but then I back space (delete a letter at a time) and the presto it finds them when I have reduced the string to the last two letters.
e.g. full surname “Essom” the when I back space to “Es” it finds the member.what do you think could be happening here or is it the search feature which is the issue?
look ford to you suggestions.
Andrew
September 2, 2018 at 3:57 pm #17140Andrew PerrymanParticipantShamim,
Just as a seed of thought maybe you could add a tick box to have an option for an alphabetical list option when adding recipients or adding members to groups if auto suggest fails to find or work properly for both front and back end?
Andrew
September 2, 2018 at 6:13 pm #17144Shamim HasanKeymasterPlease add following code in your theme’s (child theme’s if any) functions.php
add_action( 'fep_autosuggestion_arguments', 'fep_cus_autosuggestion' ); add_action( 'fep_group_members_suggestion_arguments', 'fep_cus_autosuggestion' ); function fep_cus_autosuggestion( $args ){ unset( $args['search_columns'] ); return $args; }
Let me know.
September 2, 2018 at 10:18 pm #17152Andrew PerrymanParticipantHi Shamim,
I updated my child theme function file with your php action, refreshed both browser and host cache and it is a little more responsive but it still fails to find some names as per example regards attached pictures.
For example in the attached screen shots the auto suggestion does not like the name “Margaret” for some reason! It never finds it even if the full name is placed in the field. However if you type part of the surname then it finds it!
Andrew
Attachments:You must be logged in to view attached files.September 2, 2018 at 10:29 pm #17157Andrew PerrymanParticipantPS..
Shamim,One wonders if the “arg” clashes with the search routine because both the name and the surname have it in – but then I would think it would help find a match!
Margaret Argent
M”arg”aret “Arg”entJust wild thoughts..
Andrew.. 🙂
September 2, 2018 at 11:28 pm #17166Shamim HasanKeymasterCan you please go to profile edit page of that user and see under which name “Margaret Argent” is showing?
September 3, 2018 at 12:14 am #17170Andrew PerrymanParticipantEvening Shamim,
So yeah, do you mean WP user profile page?
There are a few other names that have the same result I usually paste in the first string of their smtp email address before the @ integer into the TO field, to find the recipient (if it does not find them the normal way by typing in variants of their full names) and that always works.
You thinking that there maybe a white space at the beginning or end of the name as I did try that in the TO box too.
I have all the members WP ID’s set as their email address (first string before the @) to help them remember their ID’s easily, but their Full First and Second Names are always set correctly.
screen shot attached of the members WP profile entry (Margaret Argent).
Hope this helps
Andrew
Attachments:You must be logged in to view attached files.September 3, 2018 at 12:18 am #17174Andrew PerrymanParticipantPS..
Margaret Argent
So that means their ID is the “theargents” from their email theargents@xxxxxx.xx
Andrew
September 3, 2018 at 12:28 am #17177Andrew PerrymanParticipantPPS..
Shamim,
Just as a heads up, as I have asked you before about listing first and last name in the directory listing, I have set the Directory section to show First and Last names in your core function file not in my child function file. I thought I better mention this just in case it has an impact.
Andrew
September 3, 2018 at 12:29 am #17180Shamim HasanKeymasterThank you.
“Display name publicly as” is the name which is made to show publicly.
First Name and Last Name is saved in meta and is not searchable by default.
When you search a user it searches by id, Username, Nickname, Email, Website url. So when you do not found any user please check if you are searching by any of these.September 3, 2018 at 2:02 am #17185Andrew PerrymanParticipantHi Shamim,
Bit confused as this does not help me, all I have ever done when using your add recipient to the TO field is type the first or last name when setting up a new message or adding a recipient to a group!
So it usually finds the names as I type but not all of them is there a problem doing it this way or is the system it not capable as our users will not know any other way to do it, and they will not know each others email address and for GDPR reasons that’s the way I want to keep it.
Does this then mean I have to retro set every WP users ID with the first and last name publicly in the WP profile section as per attached picture?
If so would there be a way to do this in WP-config as I have a lot of users to administer otherwise?
As it is nearly midnight where you, perhaps you could advise me more tomorrow.. 🙂
Have a good nights sleep.
Andrew
Attachments:You must be logged in to view attached files.September 3, 2018 at 5:58 am #17190Andrew PerrymanParticipantMorning Shamim,
Don’t research the above..
I have already found a method to change all our users “Display name publicly as” in WP profile from ID to first name last name.
Now autosuggest works like lightning and lists every variant name that I type.. ???? ???? ????
Andrew
-
AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.