• Resolved dolf h

    (@dolf-h)


    I am very happy with this beautiful plugin, but still facing just one unsolved problem.
    In Pie-register is a date-field which doesn’t show in my users-list. The field is correctly selected. Other Pie-register-fields have no problem.

    This is the field in my database:

    a:1:{s:4:”date”;a:3:{s:2:”dd”;s:2:”30″;s:2:”yy”;s:4:”1690″;s:2:”mm”;s:2:”11″;}}

    In the same users-list there are a number of users who are imported. These data are correctly shown in the users-list. The database shows these fields as : 1964-08-28

    In another users-list I took up the same field, but that one only contains the new users – so not the imported ones – , nor does the field show in the users-list.
    Any suggestions?

    https://wordpress.org/plugins/amr-users/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author anmari

    (@anmari)

    Hi dolf

    That plugin has rather strangely represented the date as a multi-level nested array. It appears to be allowing for other fields beyond just date to be stored in the same meta field. S2member unfortunatey does a similar thing. This choice makes it very hard to ever query/sort users efficiently by that data.

    The converted dates are stored much more sensibly – HOWEVER
    I’m wondering whether if you have checked how your ‘converted’ data is being handled by pie ? eg: in user profile fields or whatever reporting they offer ? Quite possibly not well at all – plugins normally expect the data to be stored the same way that they stored it when they query and display the data.

    This plugin does try to dig down a bit but even that would not help with this structure without some custom coding. eg: if one removes the top level and just has a pie-date meta record with value a:3:{s:2:"dd";s:2:"30";s:2:"yy";s:4:"1690";s:2:"mm";s:2:"11";}
    then the plugin would do it’s best and extract 3 fields out of that, as a quick test shows here:

    Created name Pie Date Dd for pie_date-dd
    Created name Pie Date Yy for pie_date-yy
    Created name Pie Date Mm for pie_date-mm

    If this date is important to your reporting, then I’d suggest bringing it up with the Pie support people and seeing if there is a way to rather store the data in a way that makes it more useful for querying – for example the way wordpress stores the ‘user_registered’ date eg: 2015-11-17 03:18:25

    Failing that, an add-on could be written to create a more useful meta date field from the pie date every time it is save or updated and then use that new field in the listing rather (ugly)

    Or use a different registration plugin. Hope that helps – good luck.

    Hello,

    I am not sure which user-list you are referring to? Are you referring to the PR users Import/Export? or to the All Users page?
    Regarding your other question, the CSV for users import should be exactly the same as the given example one. No new fields will be imported to PR via CSV. neither we import custom data through the user import.

    Thanks

    Plugin Author anmari

    (@anmari)

    Hi Genetech, dolf is posting in amr-users support forum so I assume they talking about the user lists amr-users generates. It digs into user meta and allows folks to grab fields for reporting. I gather dolf may have done his own import of old data.

    Thread Starter dolf h

    (@dolf-h)

    Hi Anmari,

    Thank you for your prompt reply. I know now, that I didn’t make any mistake.
    In the profile (front and back) the fields are correctly shown by the Pie-register as a seperate date-, month- and year-field.
    I understand what the problem is and I think I can do without these data in the user-list. After all, in the profile I can see the required data.

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

The topic ‘Pie-register date field doesn't show’ is closed to new replies.