• Hi @xnau
    In this Topic
    I asked you is it possible that registered user can search only if his registered email is the same with email in first signup form?
    I my case, i can not ask every customer for his email because many of them are in a hurry.
    So i decided that registered users can search by CODE (in my laguage “tablice”) of his laptop, and i enter CODE (in my laguage “tablice”) with another data when i am creating a new record.
    I use your plugin signup form for adding new device to my internal databse.
    For registering users i would like to use some plugins for that use (wp forms, theme my login, profile builder etc…) or if you can recommend me some plugin

    Field CODE on my language is “tablice”.
    You give me this php code:
    <?php
    $current_user = wp_get_current_user();

    echo do_shortcode( ‘[pdb_list search=true filter=”owner_email=’ . $current_user->user_email . ‘”]’ );
    ?>

    Instead $current_user->user_email . in need user_tablice.

    Can you help me and say how to edit this lice with “tablice”?
    In registration form i need fields username,email,password,tablice.
    I would like to create registraion form by some pluge with your recommendation.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Roland Barker

    (@xnau)

    You can only use $current_user to get the user’s information if they are logged in as a WordPress user. If they are not logged in, then you don’t know who they are and so they will have to log in before you can show them personal information.

    If you are using a membership plugin, then your members are going to be WordPress users, so it works the same. When they are logged in you can use $current_user to get their info and use that to show them personal information from Participants Database.

    It is best to use their user_id or user_login because these things can’t be changed by the user, and they will reliably identify the user so you can show them their personal info. You can also use a special code, but this will need to be a “user meta value” because that is not a normal WordPress user field.

    You can get more information about user meta values here…

    Thread Starter master331

    (@master331)

    thanks for answer.
    another question.
    is it possible to setup serial number function?
    example. first entry gets number 1, second entry gets number 2, third entry gets numer 3…etc and that value to be shown as a field

    Plugin Author Roland Barker

    (@xnau)

    You’ll need to use a custom plugin for that. I have an example of a plugin like that here:

    https://gist.github.com/xnau/2409c27840f89813115a85db3a8ed0b4

    Thread Starter master331

    (@master331)

    @xnau

    “You can only use $current_user to get the user’s information if they are logged in as a WordPress user. If they are not logged in, then you don’t know who they are and so they will have to log in before you can show them personal information.

    If you are using a membership plugin, then your members are going to be WordPress users, so it works the same. When they are logged in you can use $current_user to get their info and use that to show them personal information from Participants Database.”

    1.can you recommend some membership plugin , which i can edit for my needs?
    2.i need to create 4 fields in registration form:
    username,password,email and tablice ( tablice on my language is “code”)
    3.Instead $current_user->user_email . in need user_tablice.

    Plugin Author Roland Barker

    (@xnau)

    I’m trying to answer your questions, but it seems that I don’t really understand what you are trying to accomplish. Maybe if you describe how you want it to work, it might be clearer what information you require to get things working.

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

The topic ‘Search for Registered Users Feature’ is closed to new replies.