-
Author
-
December 1, 2013 at 05:44 #7530hughmParticipant
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.
December 1, 2013 at 07:49 #7532adamParticipanti 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.December 1, 2013 at 08:01 #7533adamParticipantI 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/December 1, 2013 at 17:28 #7537hughmParticipantThanks 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.
December 1, 2013 at 17:41 #7538hughmParticipantThanks 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.
December 1, 2013 at 19:41 #7540adamParticipantOk 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?
December 1, 2013 at 21:36 #7543hughmParticipantI 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.December 2, 2013 at 23:24 #7595SQadminKeymasterYou can try to disable with a code the search form when you are activating an account. Code should go in functions.php
COPY CODEif (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 solutionDecember 3, 2013 at 16:42 #7651hughmParticipantThanks 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!
December 3, 2013 at 20:06 #7664hughmParticipantLooks like the following addition gets rid of the home page image”
remove_action(‘wp_head’, ‘kleo_home_page_image’, 9);
December 4, 2013 at 00:11 #7668SQadminKeymasterGreat. That was it 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 10, 2013 at 10:54 #8051topdogParticipant@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?
December 10, 2013 at 19:48 #8078hughmParticipantI 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? -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.