• Resolved ahau

    (@ahau)


    Hi again,

    I have started to see a message something like Ignored 7 names, because they were duplicate (already in the directory)

    As I am using this plugin for genealogy lists of names, sometimes the lists are just surnames, but from different places. For example, Smith may be in a marriage list for New York and Smith may be in a birth list for London and Smith maybe in a burial list from Singapore but I need all of them in each list.

    I have only added 19 directories so far but have another 56 to go and I am getting more and more records ignored because of duplicates.

    How can I get this plugin to allow duplicate names?

    Once again, thank you for your time – it is appreciated 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi @ahau,

    at this moment this is not possible in the plugin itself. Do you feel familiar with editing the PHP code?

    Kind regards,

    Jeroen Peters

    Thread Starter ahau

    (@ahau)

    Quite happy to edit code @jeroenpeters1986 so let me know the files and what to change and I will do it 🙂

    Really appreciate that 🙂

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hey @ahau,

    the simplest one is just to edit helpers.php, there is a function named name_directory_name_exists_in_directory().

    You can remove this whole function and replace it by:

    
    function name_directory_name_exists_in_directory($name, $directory)
    {
        return false;
    }
    

    That should help you already 🙂
    But please let me know 🙂

    Kind regards,

    Jeroen Peters

    Thread Starter ahau

    (@ahau)

    Perfect!

    I did find when I went to update a list that it adds everyone back in again, but all good because backups are my friend 🙂

    Once again thank you very much for your work and time with this – it is truely apprecieated 🙂

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi @ahua!

    Good to hear and thank you for your great review!

    Kind regards,

    Jeroen Peters

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to allow duplicate names’ is closed to new replies.