This topic has 13 replies, 4 voices, and was last updated 10 years by hughm.

  • Author
  • #7530
     hughm
    Participant

    I am using Gravity Forms Registration Add On to customize my registration process. When a new user clicks on the validation link in their Activate Your Account email, Gravity forms uses the following:

    add_action( ‘wp_head’, ‘wpmu_activate_stylesheet’ );
    get_header( ” );

    The problem seems to be the get_header template tag which brings in my entire SweetDate homepage and not just the header (site logo and menu bar) as intended by gravity forms. I believe it is the Sweetdate template that is doing this. The message “Your Account is now active” appears but in the footer below the member search on my homepage.

    Can you tell me how I might fix this so the header bar (logo and menu) displays without the member search with the “Account Activated” message below, like a normal page and not the homepage.

    #7531
     hughm
    Participant
    This reply has been set as private.
    #7532
     adam
    Participant

    i use gravity forms as well. what if you create a new page in wp-admin under pages->add new and put in whatever you want for the “account activated message” and then go to wp-admin->forms->settings->confirmations and then set it to redirect to your newly created page after the user submits the registration form?

    my workflow using gravity forms is a bit different though:
    gravity forms registration page->automatically activate account (without sending activation email)->redirect right to membership levels page so they can choose their account type. it’s a pretty simple process that way.

    #7533
     adam
    Participant

    I just realized you’re talking about the page AFTER they click the link in the email to activate. This might be of some help:
    http://gravitywiz.com/customizing-gravity-forms-user-registration-activation-page/

    #7537
     hughm
    Participant

    Thanks for the link. I already looked at the tutorial and it doesn’t actually help. But nice idea.

    The problem is that the SweetDate Front Page Template when you look at it in Firebug or any inspector, does not have a separate header. It is all one image. So when Gravity Forms directs the new user verification email link to your site, it tries to call the header which normally is just the top header bar, and instead it gets your entire homepage. And the “Your Account is Now Active” message appears beneath this off the screen.

    So I was trying to either redirect the gravity forms verification link to a separate page with a standard header or possibly reconstruct the home page so that a header does exist, so that the link works as intended.

    #7538
     hughm
    Participant

    Thanks for the link. I already looked at the tutorial and it doesn’t actually help. But nice idea.

    The problem is that the SweetDate Front Page Template when you look at it in Firebug or any inspector, does not have a separate header. They get the header and footer in the template file so it all becomes one image on the home page. So when Gravity Forms directs the new user verification email link to your site, it tries to call the header which normally is just the top header bar, and instead it gets your entire homepage. And the “Your Account is Now Active” message appears beneath this off the screen.

    So I was trying to either redirect the gravity forms verification link to a separate page with a standard header or possibly reconstruct the home page so that a header does exist, so that the link works as intended.

    #7540
     adam
    Participant

    Ok I think I know why it works for me. I have two header files. One with image and one without. Can you create one without and direct it to use that header?

    #7543
     hughm
    Participant

    I think the header is ok as is. The problem is that my homepage uses the Front Page Template which has the header embedded into the search and image content along with the footer. So the entire homepage comes in as one big image.
    I probably need to figure out how to reconstruct the homepage apart from this front page template so that the header, content, and footer are called separately. That way my verification link will be able to pull just the header and then put the message beneath it without getting the entire home page.

    #7595
     SQadmin
    Keymaster

    You can try to disable with a code the search form when you are activating an account. Code should go in functions.php

    COPY CODE
    
    if (isset($_GET['page']) && $_GET['page'] == 'gf_activation' ) {
    	add_action('after_setup_theme', 'my_custom_code1');
    }
    function my_custom_code1() {
    	remove_action('after_header_content','render_user_search');
    	remove_action('after_header_content','render_user_register');
    	remove_action('after_setup_theme', 'kleo_home_form');
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #7651
     hughm
    Participant

    Thanks for the code. It works, except my home page image still appears in miniature up in the header. I am not using the slider but instead am using an image. Although I may use the slider down the road. Could you help me with adding a line to remove the image. Thanks!

    #7664
     hughm
    Participant

    Looks like the following addition gets rid of the home page image”

    remove_action(‘wp_head’, ‘kleo_home_page_image’, 9);

    #7668
     SQadmin
    Keymaster

    Great. That was it 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #8051
     topdog
    Participant

    @hughm @adam or anyone else who maybe able to assist me.

    I’m working on a demo site and trying to use Gravity Forms instead of the regular Buddypress registration form because I have an extra long form with checkboxes and Buddypress just formats everything in one long row.

    I created a test registration form and mapped the GF form fields with the corresponding Buddypress fields. However, when I register a dummy account only some of the form fields carry over to Buddypress. When you go to the user profile most of the fields are blank.

    Any advice on how to fix this?

    #8078
     hughm
    Participant

    I believe GF has “varied results” with checkboxes. So if you can switch these to drop down lists you should be ok.
    I have had problems getting the date selector to work with my GF registration form. This according to GF support is mapped correctly but the age search on SweetDate doesn’t work. Does your date selector display birthdate correctly? And does it enable the age range search?

Viewing 14 posts - 1 through 14 (of 14 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?