User Registration for only information

Hi!

I need some advice in something that I'm working on.

I want to create a form that the user can fill with their personal information and when they submit the info, WordPress create a unique ID for the user and save all the information in the database, something like the plugin e-newsletter. That way I can search for the user with that unique ID.

The user do not need to have a profile, they only need to know their unique ID, that way when they call, I can pull out all the information with the ID.

Hope you guys can help me with this as always!

Thank You,
Jose

  • Adam Czajczyk

    Hey Jose,

    I hope you're well today and thank you for your question!

    You're wishing to collect user data to create a kind of database of users and to be able to easily identify them by ID and to keep this database separate from WordPress standard user registration, am I correct?

    I can think of three ways of doing it:

    1. Custom development:

    Using some basic HTML + PHP + WP core functions you should be able to craft a plugin. However providing a ready code is a bit beyond the scope of this support forum, so you may want to post a question at our "Jobs & Pros" job board here (no WPMU DEV staff involved):

    https://premium.wpmudev.org/wordpress-development/

    2. Advanced plugin setup:

    With our CustomPress plugin you could build an entire "section" (custom post type/custom taxonomy) for holding all the necessary data. In other words, this would let you build your "database structure".

    https://premium.wpmudev.org/project/custompress/

    Please take a look at the "Usage" tab at this page also. You might want to find out more about WP custom post types as well:

    https://codex.wordpress.org/Post_Types

    Next step would be to use a plugin such as User Role Editor to allow unregistered users to add their "posts" (which would equal collecting user data in this case):

    https://wordpress.org/plugins/user-role-editor/

    If necessary, you may also want to use a plugin like Gravity Forms or similar to easily build a custom front end form for users.

    3. Install a simple CRM plugin

    CRM stands for Customer Relationship Manager and there's a few plugins for WordPress. You might want to take a look at these:

    https://wordpress.org/plugins/tags/crm

    I hope this helps and if you have any further questions, I'll be glad to assist!

    Cheers,
    Adam

  • Jose

    Hi @Adam Czajczyk

    Thank You so much for all the information.

    I found a quick solution using Contact Form 7.

    First I installed the plugin named Contact Form DB. This plugin creates a database for different types of contact form plugins including contact form 7. This plugin add all the submissions to that database. Is very easy to read, search and export.. pretty cool.

    Then I installed a plugin named Contact Form 7 Dynamic Text Extension, with this one you can create your custom php and add them to a field and more stuff.

    I added this code to the functions.php. It creates a different number inside a specific field each time a user go to that form and it creates a custom shortcode:

    function genTicketString() {
        return substr(md5(uniqid(mt_rand(), true)), 0, 8);
    }
    add_shortcode('quoteticket', 'genTicketString');

    This is my shortcode inside contact form 7:

    [dynamictext number "quoteticket"]

    Is not perfect, but I think is a good solution for now.

    Thank You!
    Jose

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.