Register Plus Redux
different input key/name (4 posts)

  1. Marcus
    NetWebLogic Support
    Posted 5 years ago #

    hi radiok, aside from login with ajax, your plugin can also work with another plugin I have, events manager. usually recommend it to lwa users that ask, just had another play with it and love the simplicity.

    one thing I've done recently is move to registration bookings, and a phone is added to the user meta. problem is, the name is dbem_phone, and whilst it'll work if we add a custom field in your plugin with that name, would be great if we could use another name instead.

    one super quick workaround would be just to add a filter to line 1655, so it'd be:

    $key = apply_filters('rpr_custom_field_key',$this->sanitizeText($v["custom_field_name"]));

    that way, I could whip up a quick search/replace function that users can adjust.

  2. Marcus
    NetWebLogic Support
    Posted 5 years ago #

    lesson: test before you send. this doesn't work, nor does search/replacing all these occurences in your script.

    any suggestion in that department is welcome. i am also considering making your additional fields optionally appear in the booking information section, which would solve this issue.

  3. radiok
    Plugin Author

    Posted 5 years ago #

    Marcus, the much delayed in development version of R+R has a neat feature in which you specify the meta name, so you could have a field "Enter your name:" but the database would store it as "users_name". You see, instead of sanitizing your field name, it uses whatever you specify. This could be a really cool way to link R+R to other plugins that use meta fields. Anyway, long story short, I've had a major lack of interest in finishing my own code, so it's really delayed progress. Sorry! But, yeah, that will work the way you want, whenever I finish.

  4. Marcus
    NetWebLogic Support
    Posted 5 years ago #

    thanks for letting me know. thinking more about this, i'll find a slighly more robust solution for the phone field. the second bit would still be possible regardless anyway

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic