autosuggestion inconsistant


Home Forums Front End PM PRO autosuggestion inconsistant

This topic is: Resolved
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17137
    Andrew Perryman
    Participant

    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

    #17140
    Andrew Perryman
    Participant

    Shamim,

    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

    #17144
    Shamim Hasan
    Keymaster

    Please 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.

    #17152
    Andrew Perryman
    Participant

    Hi 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.
    #17157
    Andrew Perryman
    Participant

    PS..
    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”ent

    Just wild thoughts..

    Andrew.. 🙂

    #17166
    Shamim Hasan
    Keymaster

    Can you please go to profile edit page of that user and see under which name “Margaret Argent” is showing?

    #17170
    Andrew Perryman
    Participant

    Evening 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.
    #17174
    Andrew Perryman
    Participant

    PS..

    Margaret Argent

    So that means their ID is the “theargents” from their email theargents@xxxxxx.xx

    Andrew

    #17177
    Andrew Perryman
    Participant

    PPS..

    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

    #17180
    Shamim Hasan
    Keymaster

    Thank 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.

    #17185
    Andrew Perryman
    Participant

    Hi 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.
    #17190
    Andrew Perryman
    Participant

    Morning 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

Viewing 12 posts - 1 through 12 (of 12 total)

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.