Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • in reply to: Suggestions & Ideas #30797
    harish
    Participant

    Sendy Integration. https://sendy.co/api
    Many other forms are doing it, could you please also help us do integration with Sendy?

    harish
    Participant

    Hi Ally,

    Thank you for all your support. I got it to work with your guidance. This case is now resolved.

    We really appreciate your support.

    Thanks,
    Harish.

    harish
    Participant

    HI Ally,

    Still looking forward to a reply. Is there any way we can autogenerate MemberID for all who submit the form and use those memberIDs as username for the users to login?

    Please kindly give one last solution. If I can’t get it to work, I will have to go through an entirely different approach and different plugin and start from scratch.

    harish
    Participant

    Hi Any chance you can help us on this?

    $username = 'kr' . $form->getEntryId(); 
    

    If we can assign entry ID to $username or have an unique number automatically be assigned to $username we could get this problem resolved and get going.

    Please let us know if you can help.

    Thanks,
    Harish.

    harish
    Participant

    debug file attached.

    Attachments:
    You must be logged in to view attached files.
    harish
    Participant

    I edited the config file and submitted the form. I didn’t see anything strange in Debug.log file.

    After submitting the form, I don’t see the user listed in BuddyPress users (neither in ‘all’ nor in ‘pending’ users list). So, The username is not going through when I tried to assign ‘kr’ . $form->getEntryId() to the $username but it works perfectly

    
    add_action('quform_post_process_1', function (array $result, Quform_Form $form) {
        if (function_exists('bp_core_signup_user')) {
    		$username = 'kr' . $form->getEntryId();
            $email = $form->getValueText('quform_1_6');
            $password = $form->getValueText('quform_1_44');
    

    Is there something else I could try?? Not sure what else I can do but I’m missing something within the code.

    harish
    Participant

    I attached the code that worked and the code that didn’t work for your reference. Thanks a bunch.

    Attachments:
    You must be logged in to view attached files.
    harish
    Participant

    Hi Thank you for the example,

    We did try implement it. But the Field IDs are editable by the user and we can’t use field ids to login instead of username.

    So, instead of user input for username, we want the username itself to be the member ID that automatically increments. So, no one can change the member ID and the user can login using the member ID (as username).

    add_action('quform_post_process_1', function (array $result, Quform_Form $form) {
        if (function_exists('bp_core_signup_user')) {
    		$username = $form->getValueText('quform_1_45');
            $email = $form->getValueText('quform_1_6');
            $password = $form->getValueText('quform_1_44');
     
            // Profile fields
            $usermeta = array(
    			'field_1' => $form->getValueText('quform_1_4'),
                'field_2' => 'kr' . $form->getEntryId(),
            );
     
            $usermeta['profile_field_ids'] = '1,2';
            $usermeta['password'] = wp_hash_password($password);

    we would like to assign ‘kr’ . $form->getEntryId() to the $username

    add_action('quform_post_process_1', function (array $result, Quform_Form $form) {
        if (function_exists('bp_core_signup_user')) {
    		$username = 'kr' . $form->getEntryId();
            $email = $form->getValueText('quform_1_6');
            $password = $form->getValueText('quform_1_44');
     
            // Profile fields
            $usermeta = array(
    			'field_1' => $form->getValueText('quform_1_4'),
            );
     
            $usermeta['profile_field_ids'] = '1';
            $usermeta['password'] = wp_hash_password($password);

    But when we try to use the modified code, it won’t work.

    All we need now is to assign the $username to ‘kr’ . $form->getEntryId()
    So, users can use the kr{entry_id} as username.

    Is there anyway you can help us pleaseeee?? if this is solved, we can close this ticket.

    harish
    Participant

    Hi

    My client is so peculiar about “member ID”. We have implemented your guide (http://support.themecatcher.net/quform-wordpress-v2/guides/integration/creating-a-user) to setup wordpress user when the submit the form.

    Thanks for the link to buddypress registration form as well.

    Is there any way we can convert the Form “entry ID” into a member ID with a prefix to it? Right now I see that you have “entry ID” for each form that is being submitted.

    We want to add a prefix to this entry ID and make it a member ID. and use the member ID as the default username with which the User can login. (instead of a username that the user provides, we want to have the user use the member ID that is being generated automatically).

    This is the only requirement we are struggling to come up with using your plugin.

    Please help us out.

    Thanks,
    Harish.

    harish
    Participant

    HI I see that there is an entry number for each form submitted. Is there a way to generate a member ID out of it? and save it to the database or supply it to buddypress extra fields?

    Please help.

    Thanks,
    Harish.

    harish
    Participant

    Thank you for the links.

    I would like to assign a custom member ID to each user at the time of signup. Something like “kr000000001” or something like date-of-birth plus 4 numbers such as “12011990-0001”

    Thank you for sharing the link but none of it talks about dynamically adding the member ID like kr0000001 for first user who signs up, kr0000002 for the second user that signs up and so on. could you please let me know this.

    Thanks,
    Harish.

    in reply to: Block Web based Redirection #26031
    harish
    Participant

    Is there a way to set all email elements to call this code? even when we create new forms with email elements, I want them to use this code as well and block the public emails.

    in reply to: Block Web based Redirection #26030
    harish
    Participant

    How do I do it for multiple email elements in multiple forms. I don’t see the unique_ids editable. I could just change all the email unique _ids in all the forms to one single number and then use that in the code if these are editable.

    in reply to: Block Web based Redirection #25993
    harish
    Participant

    Any help on this please?

    in reply to: Block Web-based Email #25980
    harish
    Participant

    I went through the documentation

    Creating a custom validator


    and added gmail, hotmail keywords to the list “in Array” one per line in the advanced tab. but the form continued to submit.

Viewing 15 posts - 1 through 15 (of 18 total)
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy