• Hi, I stumbled across this plugin as an alternative to creating my own from scratch, so I thought I would give it a go to see if it would do the things I require for a breed club site I am creating.

    I have created two male dogs Test Dog 1 born 2024 and Test Dog 2 born 2020

    I am editing Test Dog 1, and have gone to where you select the father, in order to make Test Dog 2 the father of Test Dog 1, the dropdown says none, and then underneath is an ajax search box, so I type Test dog 2 and it appears, but when I click to select it, it disappears and just leaves the none and the search i typed.

    Am I missing something obvious or is this a bug?

    Hoping this can be sorted asap, so I dont have to create a plugin from scratch

    If everything else turns out ok I will definitely be going for the Pro version

    thanks

    Richard Bailey

    Cultro

    cultro.co.uk

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author angelneychev

    (@angelneychev)

    Hi Richard,

    Thanks for the detailed report, and no, you were not missing anything.
    That was a real bug, and your description was precise enough for me to
    reproduce it straight away.

    What was happening: the plugin waited for a full click on the search
    result, but the result list was already being dismissed the moment the
    field lost focus. On a slightly slower click, or in some browsers, the
    list closed before the click registered, so the selection never
    happened. That is exactly why you were left with "- None -" in the
    dropdown and your typed text still sitting in the box.

    This is fixed in version 1.0.2, which is now live on WordPress.org, so
    it should show up as an available update shortly. The result is now
    applied the instant the mouse goes down, so the selection always
    sticks.

    While I was in there I also fixed the part you were most likely
    expecting anyway: the Father and Mother dropdowns are no longer empty.
    Each one now lists the 50 most recently added dogs of the matching sex,
    so with a small database like your two test dogs you can simply pick
    the father from the dropdown without typing anything at all. The search
    box underneath still reaches every other dog in the catalogue, which
    keeps it usable once a breed club database grows past a few dozen dogs.

    Two more things worth mentioning, both aimed at keeping a pedigree
    sane. A dog is no longer offered as its own parent, in either the
    dropdown or the search. And a link that would close a loop is now
    refused outright: if the dog you are editing already appears somewhere
    in the ancestry of the dog you picked as its parent, the save is
    rejected and the reason is shown on screen, so two dogs can never end
    up descending from each other.

    The same improvements are in the Pro submit form, in case you get
    there.

    Thanks again for taking the time to write it up so clearly. It turned
    what could have been a hard-to-catch timing bug into a quick fix.

    Best regards,
    Angel
    Thread Starter Richard Bailey

    (@systmuk)

    Are yes thats a lot better thanks

    I added a few more dogs so i could see what a 3 gen pedigree looks like and thought i had done something wrong again, but then after reading the docs noticed that the actual pedigree in the name of the plugin is only in the pro version. whether i purchase the pro version then comes down to how the pedigree looks, can it be styled etc? i use elementor mostly, would also be great to be able to create a dog page layout using elementor widgets. do you have a screenshot of a 3 gen pedigree so i can see if the layout looks right for the site i am building

    thanks again

    Plugin Author angelneychev

    (@angelneychev)

    Hi Richard,

    Glad that sorted it.

    The pedigree tree is indeed the Pro part: the free plugin stores the
    parent links, Pro draws them as a tree.

    A live example with real dogs, three generations:
    https://dalmatianbg.org/dogs/3555/
    That site runs an earlier version, so small details differ, but the
    layout is the same.

    Pro also runs for 14 days without a licence, if you want to see it in
    your own theme.

    Styling: every part of the tree has its own class
    (.dogped-pro-pedigree, then __table, __cell, __cell--male /
    __cell--female), so CSS covers colours, borders, spacing and fonts. If
    you need different markup, copy pedigree-tree.php into a
    spotmaniac-dog-pedigree-pro folder in your theme and your copy takes
    over. Depth is a setting, one to five generations.

    Elementor: there are no widgets or dynamic tags, so you cannot build
    the page from field widgets. The tree has a shortcode,
    [dogped-pedigree id="123" depth="3"], which works in Elementor's
    Shortcode widget, so everything around it can be Elementor. The
    catalogue has one too.

    Best regards,
    Angel
    Thread Starter Richard Bailey

    (@systmuk)

    Hi, its me again 🙂

    I ve installed the pro version and I have imported around 1500 pedigrees from a csv file I have, for some reason one of the fields failed to import properly. dogped_sex. the csv has a column of Male, Female, but when its imported the sex is selected when you go to edit a dogs data. On the frontend, the dog says female, thus all pedigrees dont show the blue, pink background colours in cells.

    Have I done something wrong in the csv file or have I discoverd another bug (sorry)

    oh..and is there a way to import an image, say i have a url in a column dogped_image = “https://cultro.co.uk/dog/dog_image.jpg” ?

    Richard

    Plugin Author angelneychev

    (@angelneychev)

    Hi Richard,
    No need to apologise, you did nothing wrong. Your CSV is fine, this was
    a bug on my side.
    The importer saved the sex exactly as your spreadsheet spelled it, so
    “Male” went into the database as “Male”. Everything else in the plugin
    compares against lower case, so those dogs matched neither value: blank
    in the editor, labelled female on the front end, and no colours in the
    pedigree.
    While fixing it I found the same problem in the date columns, which is
    worse. Dates were stored as written, and the editor only understands
    YYYY-MM-DD, so it showed an empty date box. Saving such a dog would
    have written that empty value back and lost the date for good.
    Both are fixed in Pro 1.2.2, attached. Your 1500 dogs are repaired
    automatically when you update, so there is nothing to import again.
    Worth knowing: if the sex column does not say male or female, that row
    is skipped.
    Thanks for taking the time to report it. Two real bugs out of one
    import is a good catch, and both were worth fixing.
    Best regards,
    Angel

    Thread Starter Richard Bailey

    (@systmuk)

    thanks i have installed the updated plugin and it now marks the correct sex for each dog

    i know cant seem to get the color coding on the pedigree page, it seems to be ok on the fourth gen column, but not on the 1st three, also the 5th gen column is always blank, even though the parents of the 4th gen do exist

    and how do i import an image in using my csv and a url field?

    https://prnt.sc/kZhvkIbKQNWf

    Plugin Author angelneychev

    (@angelneychev)

    Hi Richard,

    The pedigree fixes are in the attached update, and photo import is now
    in there as well.

    Add a dogped_photo column to your CSV. If you put the pictures on the
    server over FTP, anywhere under wp-content/uploads, just write the file
    name, or the path if you used a subfolder:

    rex.jpg
    dogs/rex.jpg

    The plugin adds them to the media library as it imports, so they behave
    like any other uploaded image, thumbnails included. If your photos sit
    online somewhere else instead, a full web address in that column works
    too and they will be downloaded.

    Running the same file again will not create duplicates, so a re-import
    is safe.

    Best regards,
    Angel

    Thread Starter Richard Bailey

    (@systmuk)

    Angel

    Thank you for that. I have added photo urls to the csv and reimported and it worked well

    I had to split the csv into several smaller files as I was getting a timeout on 1700+ rows

    Unfortunately I am still not seeing the blue/pink background colouring on gens 1-4, gen 5 is fine and looks great

    see screenshot

    https://prnt.sc/8w41r7tG4OJe

    thanks, your support is fantastic

    Richard

    Plugin Author angelneychev

    (@angelneychev)

    Hi Richard,

    Glad the photo URLs worked. Noted on the timeout with 1700 rows, and
    splitting the file is the right workaround for now. Processing large
    imports in batches is on my list.

    On the colours: here is how the tree looks on my own installation, five
    generations deep:

    https://prnt.sc/Hh20Y31lwkF-

    Every cell is tinted, blue for males and pink for females, in all five
    columns. So the colouring itself works.

    I suspect what you are seeing in your last column is your theme
    striping the table rows rather than our colours. In a pedigree the top
    of each pair is the sire and the bottom the dam, so alternating row
    colours look exactly like male and female colouring. Your other columns
    are single cells spanning many rows, which is why nothing shows there.

    Two things would tell me for certain:

    1. In the page source, does dogped-pro.css appear anywhere?
    2. Right-click one of the plain cells, choose Inspect, and tell me
      whether the td carries a class ending in cell–male or cell–female.

    A link to the page would be quicker still. If the site is not public
    yet, or you would rather not post it here, send it through
    https://spotmaniac.com/en/contact and I will look at it directly. Pro
    questions are better handled there in any case, as these forums are
    meant for the free plugin.

    Best regards,
    Angel

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

You must be logged in to reply to this topic.