Customizing Gravity Forms User Registration Activation Page

April 3, 2024: Fixed notices generated in PHP 8.0+.

October 17, 2020: Added support for Gravity Forms User Registration 4.6.

September 30, 2020: Migrated snippet to the Snippet Library.

January 7, 2020: Fixed noticed generated by use of create_function().

October 18th, 2013: Updated custom_maybe_activate_user() function to not rely on rgget() function.

Stop! There's a better way.

This snippet is available as a plugin with Gravity Perks, a suite of over 46 premium Gravity Forms plugins!

View Plugin Buy Gravity Perks

This article (and associated code) has been updated for Gravity Forms User Registration 3.0. If you have previously implemented this functionality and have upgraded to GFUR 3.0, please update your code with the latest versions below.

Want to customize User Activation emails? We’ve got you covered..

If you’ve checked out the latest beta for the Gravity Forms User Registration add-on, you might have noticed one of the awesome new features is “Pending Activations”. Here’s how they work.

When the user signs up, instead of automatically being registered as a user on your WordPress site, an activation email is sent to the email address they signed up with. The activation email contains an activation link. When the user clicks this link and visits the activation page, they are “activated” and their user account is registered.

One of the first things you’re probably going to want to do with this new feature is customize the activation page. This is the page where users land after clicking the activation link in the activation email. This walk-through aims to demonstrate how this activation page can be completely customized.

This process can be broken down into two simple steps:

  1. Create a custom activate.php template
  2. Override default activate.php template

1. Create a Custom activate.php Template

At the most basic level, all you need to do here is find the activate.php file in the GF User Registration plugin folder and place a copy of this file in your theme folder.

  • Path to GF User Registration activate.php file
    /wp-content/plugins/gravityformsuserregistration/includes/activate.php
  • Sample path to your theme folder
    /wp-content/themes//

The issue with this is that the activate.php template really isn’t easy to customize. There are a lot of nested conditionals and special variables that you probably won’t understand without really digging in.

GW Activate Template

To alleviate some of this burden, I’ve created a special version of the activate.php which you can download and include in your theme which is much simpler to customize. The primary benefit is that it takes 99% of the HTML output that lives in the activate.php template and moves it out to easy-to-edit template parts.

GW Activate Template on GitHub

Just click the “zip” button to download all the template files. Once downloaded, unzip the gfur-activate-template-master.zip file. Inside you will find a gfur-activate-template-master folder. Rename this to “gfur-activate-template” and move this folder into your theme folder.

github-download-zipDownload GW Activate Template Files

The Different Views of Activation

There are several different “views” or “parts” of the activation page.

activate-success
Success
This is the default view that a user will see after clicking the activation link in the activation email. This view is handled by the activate-success.php template part.
activate-error-already-active
Error: Already Active
Occurs when a user attempts to activate an activation key which has already been activated. This view is handled by the activate-error.php template part.
activate-error
Error
If anything goes wrong during the activation (i.e. bad activation key, username already registered, etc), this view will handling displaying the error. This view is handled by the activate-error.php template part.
activate-no-key
No Key
It’s quite unlikely that users will see this view since the activation key is passed in the activation link; however, for the sake of completeness, this view is what the user will see if no activation key is passed in the activation link. This view is handled in the activate-no-key.php template part.

2. Overriding the Default Activation Template

With the template files in place, you’re ready to override the default activate template files to point to your custom files. Doing this is actually pretty simple. Just add this code to your theme’s functions.php file:

/**
* Gravity Forms Custom Activation Template
* https://gravitywiz.com/customizing-gravity-forms-user-registration-activation-page
*/
add_action( 'wp', 'custom_maybe_activate_user', 9 );
function custom_maybe_activate_user() {

	$template_path    = STYLESHEETPATH . '/gfur-activate-template/activate.php';
	$is_activate_page = isset( $_GET['page'] ) && $_GET['page'] === 'gf_activation';
	$is_activate_page = $is_activate_page || isset( $_GET['gfur_activation'] ); // WP 5.5 Compatibility

	if ( ! file_exists( $template_path ) || ! $is_activate_page ) {
		return;
	}

	require_once( $template_path );

	exit();
}

In plain speak, this code says: “Here is a path to the template file I’d like to use for my activation page. If this file exists and we’re on the GF User Registration activation page, go ahead and load my custom activation page file.”

If you’re using the GW Activate Template files and followed the instructions above, you won’t need to change this snippet at all. It’ll just work. Otherwise, you will need to change the $template_path variable to point to the location of your own custom activate.php file.

Is it possible to customize the activation email sent to the user?

Yup! We’ve written a tutorial with step-by-step instructions on how you can customize the user activation email. Check it out.

Anything else?

That’s it for now. Give it a go and let me know how it works out of you. I’m eager for any feedback you have!

Comments

  1. Thomas Bove
    Thomas Bove September 23, 2023 at 4:57 pm

    I am using the GP Auto Login in combination with GP Better User Activation.

    I seem to be having trouble getting this to work properly. Both plugins are installed and I have feeds set up on my GF.

    Users are being setup upon registration but not auto-logging in or redirecting. It seems the Auto Login is firing after the activation when I go to Pending Activations and activate the new user accounts.

    Should it not be the other way around? And, did I do something wrong? There does not seem to be a way to change any of this in the GUIs available in the plugin and add-on settings..

    Thanks!

    Reply
    1. Samuel Bassah
      Samuel Bassah Staff September 25, 2023 at 2:05 pm

      Hi Thomas,

      If user activation is required, the auto-login happens after the account is activated. I see you have a ticket with the same issue, so I’m going to reply to your ticket to request additional information on your setup.

      Best,

  2. Martin
    Martin July 29, 2022 at 6:01 am

    Thanks for this.

    Am I correct in understanding that: $template_path = STYLESHEETPATH . ‘/gfur-activate-template/activate.php’; looks for the revised pages in the currently active theme directory rather than in the /themes/ directory?

    If so you need to remember for all time, to move the gfur-activate-template every time you change themes.

    Is there an easy way to put the gfur-activate-template folder somewhere that isn’t theme dependent? I tried: $template_path = ‘***/gfur-activate-template/activate.php’; where *** is the path to my /wp-content/themes/ but for some reason it kept using the version of the gfur-activate-template folder.

    Reply
  3. Omri
    Omri February 15, 2022 at 4:42 am

    Hello,

    The activate.php in ‘/wp-content/plugins/gravityformsuserregistration/includes/activate.php’ seems to be utilized instead of the views in the theme folder ‘gfur-activate-template’ (activate-success.php, activate-no-key.php and activate-error.php), these files make no difference when edited.

    Can you please check it? Thank you in advance.

    Reply
    1. Samuel Bassah
      Samuel Bassah Staff February 15, 2022 at 9:19 am

      Hi Omri,

      I just tried it and it works as expected. Can you confirm if you’ve added the PHP code to override the default activation template? Also, check to see if the gfur-activate-template folder name is correct. However, if it’s still not working for you, you can get in touch with us via our support form if you have an active Gravity Forms license so we can dig into this further.

      Best,

    1. Samuel Bassah
      Samuel Bassah Staff December 10, 2021 at 6:24 am

      Hi Erika,

      In other to be sure what’s happening, we’ll have to take a look at your setup. If you’re a Gravity Perks subscriber, you can get in touch with us via our support form so we can dig into this further.

      That said, we have a better way of customizing the activation page using our GP Better User Activation Perk, so you may also want to check that out. Once activated you can use the [gpbua] merge tag to insert the user activation content anywhere in your page layout.

      Best,

  4. Ruben
    Ruben September 30, 2021 at 1:24 pm

    Im disappointed, nothing work. I add the code in functions child and main theme, add the folder, changed the name, modify the path. Nothing work for me. Does someone can tell me that it works in 2021?

    Reply
    1. Samuel Bassah
      Samuel Bassah Staff February 8, 2021 at 9:35 am

      Hi Hossein,

      We have a snippet you can use to skip user registration for logged in users. Another solution will be to use a role based plugin to hide the page with the register form from Logged in users.

      Best,

    1. Ryan Donovan
      Ryan Donovan November 5, 2020 at 2:56 pm

      Hello RB, Thank you for that information. When you apply this to your site and run it live, do you get this error? Let us know. 😃

    1. Ryan Donovan
      Ryan Donovan October 23, 2020 at 1:46 pm

      Hey Henry, this is a great question. We currently are just addons for Gravity Forms so we could not combine the two to make one. The Perk we have within Gravity Wiz is created to solve that issue. As Scott previously mentioned Visual page builders are supported in GF Better User Activation using the [gpbua] shortcode. Is there something that you are looking for that is not resolved within these solutions? Let us know and we would be happy to help!

  5. Henry
    Henry October 18, 2020 at 2:50 pm

    Great thanks for this. I installed and seems to work. But I am using Elementor for all my page themes. How can I put what you did into my normal Elementor page template?

    Reply
  6. Peter Netz Lassen
    Peter Netz Lassen October 6, 2020 at 4:51 am

    Hi Maybe this is more a fuature request?

    I HAVE to manually activate a new user. So I would ask if this auto activation could look “human” maybe with more than one “Office hour” random minutes activation delay?

    Hope that can be done?

    Peter

    Reply
    1. Samuel Bassah
      Samuel Bassah Staff October 6, 2020 at 8:22 am

      Hi Peter,

      I’m not sure I understand your request very well, but you could send Users an activation link to activate their account. Also, Gravity Forms User Registration Add-on is what actually handles the user activations, so you may want to contact Gravity Forms Support with the Feature Request.

      Best,

    1. Samuel Bassah
      Samuel Bassah Staff September 18, 2020 at 7:52 am

      Hi Mike,

      Do you already have the snippet inserted inside your theme’s function.php file? Please note that template files are supposed to use the theme’s styles and it’s just a starting point for you in case you want to do advanced customization.

      In case the issue you’re experiencing is with the Theme’s styles not displaying at all, then we’ll have to take a closer look to determine what may be wrong. If you have a Gravity Perks License, you can send us a message via our support form so we can dig into this.

      Best,

  7. PAUL CABALLERO
    PAUL CABALLERO September 15, 2020 at 11:55 am

    Hi, thanks for all the assistance. I have another question. Some people receive an error message when they want to activate their account: “activation was not successful due to following error: invalid activation key”

    Can I activate it manually? Or what should they do to correct that error and activate their account?

    Reply
    1. Samuel Bassah
      Samuel Bassah Staff September 15, 2020 at 1:17 pm

      Hi Paul,

      There have been known issues where using BuddyPress conflicts with Better User Activation which generates a similar error. In case you have BuddyPress, unset the “Activation” page in BuddyPress Settings. Also, you can manually activate a user account within the Form entry page.

      Best,

  8. paul
    paul September 14, 2020 at 12:20 pm

    Hi, Is it possible that users do not have to activate their account with the link? Is there an option for them to directly use their account once they have uploaded their username and password?

    Reply
  9. Joachim
    Joachim September 7, 2020 at 12:35 pm

    FYI: The latest update of the User Registration Add-on uses a new activation link – domain.ext/?gfur_activation=XXX – as explained in the change log: “Updated the activation page query string to use the “gfur_activation” parameter instead of “page” to fix an issue with WordPress 5.5 where a 404 not found error occurs. Existing activation links will automatically redirect to the new page.”

    As a result, the code above no longer works, altdough it’s rather straightforward how to change it to work with the new queryvar.

    Reply
    1. Ryan Donovan
      Ryan Donovan September 8, 2020 at 1:18 pm

      Hello Joachim, Thank you for bringing this up. I will forward this to my team and we will update this with the necessary steps moving forward. Have a wonderful day.

    1. Ryan Donovan
      Ryan Donovan September 2, 2020 at 11:20 am

      Hello Carla, This is a bit of a strange one. I have attempted to test your page but cannot recreate this issue as I see the same header, footer, and body with the correct CSS. You will notice that I have gone through the registration process as well. Is their something specific I should be doing to recreate this issue or is it possibly a cache issue? Let us know.😃

  10. Faizan Khan
    Faizan Khan May 12, 2020 at 3:02 pm

    How can I edit the html…I want to remove wplogin line from it.I have downloaded the activation code but there is no line such that.

    Reply
    1. Ryan Donovan
      Ryan Donovan May 12, 2020 at 3:15 pm

      Hello Faizan, This is a built-in WordPress function. Do you have a custom login page that you have set up? If so then you can alter the email to include the custom login page/activation page url instead of the supplied URL.

  11. news covid-19
    news covid-19 April 6, 2020 at 4:09 pm

    Fantastic site. Plenty of useful info here. I’m sending it to a few buddies ans also sharing in delicious. And naturally, thanks for your sweat!

    Reply
  12. Greg
    Greg January 1, 2020 at 2:58 pm

    HI,

    I have error with php 7.2 :

    Deprecated: Function create_function() is deprecated in /www/test.com/wp-content/themes/test/gfur-activate-template/activate.php on line 40

    here is this line of code:

    function hooks() {
    
        add_action('body_class', create_function('$classes', '$classes[] = "gfur-activate"; return $classes;'));
    
    }
    

    Any chance for fix ?

    Reply
  13. andys
    andys November 15, 2019 at 8:52 am

    I tried the code but I get an error “There has been a critical error on your website.” whenever I save the code to the end of the functions.php file.

    Any Ideas?

    Reply
  14. Justin Staples
    Justin Staples October 22, 2019 at 9:12 pm

    Hi! I am assuming the code above no longer works? And we should just be encouraged to purchase the plugin? That is what I am gathering from this since everyone including myself is not getting the above steps to work for the activation page. This is really ugly: https://prnt.sc/pmu2z7

    Any other suggestions?

    Reply
    1. David Smith
      David Smith Staff November 4, 2019 at 4:51 pm

      Hi Justin, this template simply provides a way for you to customize the activation page. If your theme doesn’t load its required styles and markup via the wp_head and wp_footer actions, the results won’t be very attractive. The good news is that this template is completely customizable so you can modify it to make it as attractive as you want.

      But, yes, the plugin is a great alternative if you want something that “just works” and requires no coding.

  15. Ryan
    Ryan April 26, 2019 at 7:38 pm

    Hi

    I followed the instructions for gfur-activate-template and then edited both the activate-error.php and activate-success.php file but it doesn’t seem to ue the changes I’ve made – instead it seems to ignore the edits I’ve done to those two files and displays the default message.

    Can you advise please?

    Reply
    1. David Smith
      David Smith Staff April 26, 2019 at 8:19 pm

      Hi Ryan, if you change any template are you seeing your changes? If not, the template is probably not being included correctly. That’s a good place to start debugging.

    2. Ryan
      Ryan April 27, 2019 at 7:37 am

      Hi David

      Yeah, I downloaded the files from Github, dropped the extracted files into the correct place and renamed the folder as described above and activated it.

      The plugin is working, as its changed the pages from the default one, so thats good.

      But when I modify the template files it doesn’t work :(

      Is there anything I else I needed to configure after downloading and activating?

    3. Ryan
      Ryan April 27, 2019 at 7:51 am

      Cheers. Will give those a try. TBH you guys are the mutts nutts when it comes to handy gravity form additions – happy to join for the value you provide straight up.

      Will have a look at it again and let you know :)

  16. Ryan GWz
    Ryan GWz April 4, 2019 at 4:43 am

    How is the password stored in order to be output in plain text on the activation page?

    This seems like a major security flaw. I would never trust I site that displays a password in plain text in any format.

    Reply
  17. Cassie
    Cassie February 5, 2019 at 8:32 pm

    Thanks for this! The one weird thing I can’t seem to resolve is this: the actiation page behaves as if it’s the wordpress front page. So my site has a chunk of code in the header to display a banner with different content if is_front_page() evaluates to true. It also grabs some custom fields from the current page. What’s happening is that on the activation page, is_front_page() is true and the get_field() calls return content applied to my site’s static front page. I’d ideally like it to not do this, is there any obvious solution?

    Reply
  18. Dan
    Dan January 25, 2019 at 1:02 pm

    Thanks for this Tutorial, but I’m wondering how this Activation page is generated or what theme template is being used. Is it the page.php or index.php or something else?

    I’ve created a Default Page using Elementor Pro’s Theme Builder which applies to the Entire Site but this Activation page is NOT injected into that template. It reverts to the base theme template file.

    Any ideas on how to integrate better with Theme templates?

    Reply
    1. David Smith
      David Smith Staff January 28, 2019 at 12:31 pm

      Hi Dan, this snippet loads activate.php which handles loading the theme header and footer.

      The plugin version of this will allow you to use a page though I’m not sure how well it would integrate with a page builder (if that’s what Elementor Pro provides).

  19. Geoff
    Geoff October 9, 2018 at 9:15 am

    I’ve been playing with this just now, and downloaded the source code for the files from the git page, was ready to pull my hair out with it not working, going through the PHP, decided to echo out each variable, everything was looking right, and as expected – what wasn’t right was when downloading the files from git, it adds -master to the end of the folder name. Looking over comments others have had when they’ve not had this working, it maybe an issue they’re facing also.

    Reply
    1. David Smith
      David Smith Staff November 10, 2018 at 6:18 am

      Hi Geoff, renaming the unzipped folder covered in the tutorial but I’m confident your comment will be useful to other folks who miss that step as well. ?

  20. Mike
    Mike August 7, 2018 at 7:34 am

    I’m not seeing this work for me.

    I uploaded the directory to my theme and added the code to the functions.php file, but it’s still loading the default activate messaging text.

    I ran through the snippet troubleshooting, but it appears I’ve done everything properly. Any pointers on what to look for?

    Reply
  21. Justin
    Justin June 7, 2018 at 3:38 pm

    Hi,

    I have a private site (users already logged in with no wp-admin access) where I have Gravity From user registration set up so they can register students using a form.

    I set up a notification where is sends the {activation_url} to their personal email to activate the new user. The problem is that activation urls only work for users that are logged out of the site.

    How can I get {activation_url} to work while a user is logged in?

    Reply
    1. David Smith
      David Smith Staff June 8, 2018 at 8:25 am

      Hi Justin, I’m not aware of a such a limitation with the activation URL; however, this is a question best directed to Gravity Forms support who actually provide this merge tag. :)

  22. Shannnon
    Shannnon May 22, 2018 at 2:05 pm

    Thanks so much for the code! It works great. The only problem I’m having is when the activation page loads, it is not including my child theme css file. I can’t seem to fiqure out how to fix this. Do you have any suggestions?

    Reply
    1. David Smith
      David Smith Staff May 23, 2018 at 4:04 am

      Most themes will automatically work with this but in cases where your theme does not, you can manually include your theme’s CSS manually in the activate.php template() method.

  23. Craig
    Craig March 21, 2018 at 4:59 pm

    I couldnt’ get it to work… I tried everything.. I used your custom template. I tried… adding the the gfur-activate-template folder to my theme “applay/” to my theme root “themes/” I added your code snippet to my “applay/functions.php” file and nothing worked…

    Reply
  24. marcruger
    marcruger March 6, 2018 at 1:19 am

    Hello there

    after following all the steps and moving the template folder to my theme folder and paste the code into my function.php, I’m getting this error ” is currently unable to handle this request. HTTP ERROR 500″. Any idea? When I remove the snippet code then my site came back. I have a plugin installed name LearnDash and Uncanny Owl. I don’t know if this might cause the conflict but I deactivated the uncanny own. Can anyone help? Thanks in advance.

    Reply
  25. Kristof Gheyssens
    Kristof Gheyssens January 15, 2018 at 5:15 am

    Thx for the snippet! However, and this is probably due to Avada, although they disagree, the get_header and get_footer in de activate.php load the code ok, except for the Avada dynamic css and some Avada JS in the footer. Anyone else with Avada experiencing this problem?

    Reply
  26. Andrew Beaumont
    Andrew Beaumont June 25, 2017 at 10:40 pm

    A better solution would be to use WordPress’s template_include filter. This way you avoid exiting prematurely, which could matter for some themes and plugins.

    Reply
    1. Kristof Gheyssens
      Kristof Gheyssens January 15, 2018 at 5:18 am

      @Andrew Beaumont : this completely fixed my Avada issue! YOU ROCK!! It now loads the css/js which which were not loaded with the default STYLESHEETPATH . ‘/gfur-activate-template/activate.php’;

    2. Richard
      Richard October 16, 2018 at 7:48 am

      Having same issue with Avada. Not sure where Andrew’s solution should be placed. Does anyone have this functioning correctly?

  27. Weird Mike
    Weird Mike June 3, 2017 at 5:02 pm

    So I have followed all the instructions, but the activation page keeps opening as my homepage and I can’t figure out how to change that. I’m using BuddyPress and Gravity Forms User Reg on a MultiSite installation with the theme Kleo (sorta popular theme) and I can’t seem to change the page that the activation goes to.

    I really wanna buy the GW Perks, but I sadly can’t afford that right now, so I’m trying to find a way to make it point to another page.

    Reply
    1. David Smith
      David Smith Staff June 3, 2017 at 10:41 pm

      Hey Mike, are you coming from the activation link sent by Gravity Forms? It should have a parameter in the URL: page=gf_activation

    2. Weird Mike
      Weird Mike June 4, 2017 at 12:23 am

      That is correct. I was editing all the files and the only one that let me change the heading was the one inside of the GF registration folder/

    3. David Smith
      David Smith Staff June 4, 2017 at 1:59 am

      Hm, if you’re confident you’ve configured everything per the instructions in the tutorial and it’s not working, there is probably a theme/plugin conflict. You can try testing for that. Unfortunately, there just isn’t much else we can do via free support. This is an issue that would require a WP login so we can dig into your configuration and see what’s going on.

  28. abdiaziz
    abdiaziz May 31, 2017 at 6:02 am

    i have an order form where the client inputs details of the product and also personal details that should be captured by user registration addon.the client submits the order and they should be registered. when the user logs in at a later time, they should be able to see their order details also show pending orders or something close to that..

    Reply
    1. David Smith
      David Smith Staff May 31, 2017 at 10:23 pm

      Sounds like you want Gravity Forms User Registration Add-on and maybe something like Gravity View.

  29. Asaf Braverman
    Asaf Braverman May 28, 2017 at 10:43 am

    David, I’m considering getting your Gravity Forms Better User Activation plugin and have a question: on a multi-lingual buddypress site, I’m creating user registration forms in different languages. Can different custom activation pages be assigned to different user registration forms? (So that the activation pages appear in the appropriate language)? Thanks in advance!

    Reply
    1. David Smith
      David Smith Staff May 28, 2017 at 11:18 am

      Hi Asaf, this is not readily possible with the perk. I’ve added this to the feature requests and will keep it in mind. :)

  30. Morgan
    Morgan April 23, 2017 at 2:24 pm

    This is really useful, just what I was looking for! Are there any related instructions on getting this code to use theme stylesheets?

    Reply
    1. David Smith
      David Smith Staff April 25, 2017 at 2:21 pm

      It should automatically load the theme’s stylesheets if your theme is configured in a traditional WordPress method. If not, you might be interested in trying our upcoming plugin, GP Better User Activation. It lets you use a WordPress page as the activation page which is loaded by your theme. Feel free to drop us a line via support if you’re interested.

    2. Morgan
      Morgan April 26, 2017 at 2:07 pm

      Sorry, I should have asked: *When’s the new plugindue out? *Will it be part of the Perks package?

    3. David Smith
      David Smith Staff April 26, 2017 at 2:53 pm

      It’s due to be publicly available in the next month or so. It will be part of the Gravity Perks package. :)

  31. seyed ahmad
    seyed ahmad March 16, 2017 at 7:58 am

    our users dont like login first , just disable this error. for example if user already registered then just update their posts and if they dont registered automatically, register now automatically.

    Reply
  32. seyed ahmad
    seyed ahmad March 16, 2017 at 12:00 am

    hi i read ur article but i have question plz. i made form for advrtisement system. users fill form and fields and automatically register by user registration. they dont need to register and i dont want but for some field and repost their ads (by custom post type) they need to have email and phone information and login automatically to see their ads posted. how can i disable this error when rhey post new ad : this email already exist. thank u

    Reply
  33. CraigM
    CraigM March 2, 2017 at 3:50 pm

    I am struggling getting this to work. I think that it is probably a path error. I duplicated all of the empty directories in my child theme and placed your downloaded files as directed. I prefer identical file structures when I am troubleshooting issues at a later date.

    I copied my activate.php file to my child theme at:

    /public_html/wp-content/themes/virtue_premium_child/wp-content/plugins/gravityformsuserregistration/includes/gfur-activate-template

    The three php files are also in the above directory: activate-error.php, activate-error.php, and activate-success.php

    I have tried every possible path without any luck, I keep displaying the default account activation page.

    I simply placed my name in theprintf line in activate-success.php file to eliminate any possible errors.

    <?php printf( __('Craig – Your account is now activated. View your site or Log in‘), $url, $url . ‘wp-login.php’ ); ?>

    I am using the Virtue theme by Kadence Themes but I cannot see how the theme would inferfere with the default account activation page.

    I am at a loss. Any guidance would be sincerely appreciated. CraigM

    Reply
    1. CraigM
      CraigM March 2, 2017 at 3:55 pm

      A little more information I place the code below in my functions.php file as directed.

      My functions.php file is located at:

      /public_html/wp-content/themes/virtue_premium_child

      This is where I have been changing the $template_path by trying every possibility of the full path to my activate-success.php file.

      Thanks for your help! CraigM

    2. David Smith
      David Smith Staff March 3, 2017 at 8:25 am

      As a first step, I would complete the tutorial with the instructed path. If that works, you’ll know it’s just a pathing issue.

    3. CraigM
      CraigM March 6, 2017 at 10:47 am

      This is a continuation of a previous request.

      I have tried the original supplied path without success. I have also tried all the variations on the path by adding the directories in front of ‘/gfur-activate-template/activate.php’.

      Could my failure to get your code to work for me have anything to do with it being used in a child theme?

      $template_path = STYLESHEETPATH

      I’m not sure about this because I do not know how to inspect it. I think STYLESHEETPATH is returning the path to the main theme not the child theme.

      I could be WAY off course, your help would be greatly appreciated as I am still learning.

      Thanks, Craig

    4. CraigM
      CraigM March 6, 2017 at 12:43 pm

      I have tried to hard code the path to my child theme all the way down to the acrivate.php file without success.

      $template_path = ‘/public_html/wp-content/themes/virtue_premium_child/templates/wp-content/plugins/gravityformsuserregistration/includes/gfur-activate-template/activate.php’;

      Still no joy, I cannot get it to work.

      I have changed the printf statements to indicate that I have successfully activated your module as follows:

      <?php printf( __('Craig-Success – Your account is now activated. View your site or Log in‘), $url, $url . ‘wp-login.php’ ); ?>

      I simply cannot get the module to work, I know I am doing something wrong. I just don’t know what to try next.

      CraigM

    5. CraigM
      CraigM March 6, 2017 at 4:38 pm

      What is happening is that we never override the Gravity Forms activate.php. That file is located at: /public_html/wp-content/plugins/gravityformsuserregistration/includes

      There are no other activate.php files in the child theme.

      I have included my child theme’s functions.php contents in the code section.

      I have been playing with replacing STYLESHEETPATH with get_stylesheet_directory()

      I have had no luck with that either.

      I am a complete loss. I’ve tried everything I know but I’ve gotten nowhere.

      I really could use some direction. I am completely confused. I have been working on this the best part of the day and I have not gotten anywhere.

      CraigM

    6. David Smith
      David Smith Staff March 7, 2017 at 9:15 am

      I would expect that code to work. If it’s not working, we’ll have to dig in. There are two ways we can do this, a) you can use our installation service or b) we have a perk coming out soon that handles this functionality without any code. If you’d like to be the very first user to try this, pick up a copy of Gravity Perks and drop us a request.

  34. Sasha
    Sasha February 3, 2017 at 6:27 am

    Hi, I’m not a coder, Gravity support sent me to this tutorial as my activation page is broken, it ignores our Avada theme. I have placed the files folder to the theme folder, then replaced the functions.php code with the short code supplied, but the website goes blank, showing no content at all. Had to place the original functions code back. Adding the code does nothing (without the first line of code, otherwise I get error). So, our activation page is still a mess and gravity support simply told me to contact you. Could yo help, please? Thank you.

    Reply
  35. david
    david December 4, 2016 at 5:29 am

    Hey,

    I am using the Divi theme and although your customisation code works well (thank you!!), I am having an issue adding the header. When I echo the template type, it is giving me ‘Blank Template’ (divi has that template and one other with header/footer) which by default gives pages without header/footer as you would expect. What I am not really sure of is why it thinks it is that template. I tried various ways to add a template name to your activate.php file e.g. by adding a custom name as a comment at the start of the file, but ‘template type’ always comes out as ‘Blank Template’.

    Any idea how I can override this so that our activate pages do have the header and footers?

    Thanks for all your very great work.

    cheers david

    p.s. sorry for posting this on another page of yours, it has been a long day!

    Reply
    1. David Smith
      David Smith Staff December 5, 2016 at 9:23 pm

      Hi David, I’m not super familiar with how Divi works but there’s a chance another user might know how to help you with this one. :)

    2. David Smith
      David Smith Staff January 16, 2017 at 5:24 pm

      We’ll definitely take Divi into consideration when we create a plugin for this functionality.

    1. David Smith
      David Smith Staff December 6, 2016 at 9:05 am

      It looks like a fatal error is occurring on the first page load. Enable WP_DEBUG (there is a section on that here) and let me know what the error is.

  36. Nat
    Nat October 20, 2016 at 10:42 pm

    Hi,

    Thanks for the script I eventually got it working…

    but I’ve a few questions:

    1. How can I change the page title of activate.php – it seems to pull in my blog home as the pages title. Any chance of making activation as standard word press page-templatename.php ??

    2. On – activate-success.php How do I email the user their password? Could it be included in the activation email? or sent by email to the user after activation?

    Thanks for any pointers…

    Cheers

    Reply
    1. David Smith
      David Smith Staff October 30, 2016 at 11:22 pm

      Hi Nat, you should be able to change the title via the wp_title filter. I don’t have ready solution for sending the password to the user on activation.

      We do have plans to make this available as a perk in the future. That version would allow you to configure the activation page as a standard WordPress page and give complete control over the contents of each possible scenario (success, failure, etc).

    1. Dimitri
      Dimitri September 22, 2016 at 9:14 am

      Hi David,

      thanks a lot. I was able to get my site working again, but the snippet doesn’t work on my site. I will contact the theme support today and see if they can help to fix it, hopefully, they can (I use Total Theme). The problem was – I have added the snippet into the functions and the site handles some extra hooks for added code. Additionally, as the snippet doesn’t work I thought the code placed wrong so I was trying to dig deeper and place the code in some crazy variations :D that’s why the site crashed at the end.

    2. David Smith
      David Smith Staff September 22, 2016 at 10:31 am

      Glad you were able to fix your site. :)

      In regards to the snippet not working still… this snippet won’t make anything look different when it is installed by default. Try changing the templates (like activate-error.php or activate-success.php) to make sure that you aren’t seeing your changes.

    3. Dimitri
      Dimitri September 22, 2016 at 10:34 am

      Hi David,

      this is so LOL, somehow I didnt know it – I was all the time trying to change the activate.php to get that code running and it looked ugly of course. I have been trying to add some styles to the php file etc… Ok, the code is running now (I was able to add some echos into the new path and those are now displaying) Now I will try and customize the file you mentioned :D

    4. Dimitri
      Dimitri September 22, 2016 at 10:36 am

      But wait a min you are writing above that the default view should look like this, but in my case its still ugly, it is definitely doesn’t look like this. So I am again doing something wrong I guess.

    5. David Smith
      David Smith Staff September 22, 2016 at 10:57 am

      What I mean is that it will look like however it looked before you installed the snippet. It just provides the ability to change the look. It won’t suddenly look like the screenshots above unless you’re using the TwentyTwelve theme. But if you’re using the TwentyTwelve theme, it will look like the screenshots above even without the snippet.

    6. Dimitri
      Dimitri September 22, 2016 at 11:05 am

      Thanks David,

      then I have to work on the CSS so it will look better. I’m at the same pos like the guy below. Trying to get that running on a specific site. But in my case you $url = website etc doesn’t work.

  37. Merxhan Emini
    Merxhan Emini September 21, 2016 at 11:11 am

    Hi,

    I followed the instructions and implemented the custom registration on my website But when I click on the registration page I get a blank page and no error. The error i get is: Fatal error __clone method called on non-object …ocs/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php 282 which gives me no information on how to fix this.

    I think the issue is on the activate-success.php I am using WPML on Kleo Theme with Gravity forms registration addon. Is there a way you can help me on this?

    Reply
  38. Eric Moore
    Eric Moore August 22, 2016 at 3:46 pm

    I am using gravity-forms-user-registration and the above code to modify the activation screen. I have been trying to modify the activation page so that the password is not shown. I just want to show a password reset link similar to this:

    http://mySite.com/wp-login.php?action=rp&key=myActivationKey&login=myLogin

    I have been able to show the link but when I click on the password reset link, I get an login error

    Your password reset link appears to be invalid.

    Does GF user registration work with the password reset option? How can I solve this issue?

    Reply
    1. David Smith
      David Smith Staff August 23, 2016 at 10:58 pm

      Hi Eric, I’m assuming the reset link needs to be dynamically generated with a nonce of some sort for security. If you’d like to hire us to help with this, get in touch.

  39. Sascha
    Sascha July 21, 2016 at 4:29 am

    Hi David,

    does this work with a childtheme as well? I followed the steps above but still have the WordPress standard page when following the confirmation link sent via email.

    1. I have a folder named ‘gfur-activate-template’ in my childtheme folder

    2. In that folder I have the files ‘activate-error.php’, ‘activate-no-key.php’, ‘activate-success.php’ and ‘activate.php’

    3. Into the ‘functions.php’ that´s placed in my childtheme folder I copied your snippet.

    Where am I going wrong?

    Thanks for helping

    Sascha

    Reply
    1. David Smith
      David Smith Staff August 8, 2016 at 2:32 pm

      Hi Sascha, it sounds like you understand how this should be configured. It’s not clear to me what would be going wrong. Are you seeing any errors?

    2. Sascha
      Sascha November 10, 2016 at 5:52 am

      Hi David,

      sorry, it´s been a couple of month. I am still working on that project and still have the issue but concentrated on other problems to solve. And I must have missed the notification that you sent an answer. Funny thing finding my own post when googling for this issue again :D

      I do not see any errors. What happens is that simply the WP standard activation page is showing up. Please see this screenshot: http://www.quult.com/screenshot.jpg

    3. Sascha
      Sascha November 10, 2016 at 6:38 am

      Me again…

      everything works fine! Because the text on the activation page appeared in german I thought this must be the WP standard page. My fault. After editing the GF activation page I found out that the template is used like it should. Thanks for your time.

      Sascha

    4. Sascha
      Sascha November 11, 2016 at 11:03 am

      Yes :) But there´s one more thing… I customized the php-files but no CSS does take any effect!? How can I achieve this?

      Thanks again

      Sascha

    5. Sascha
      Sascha November 11, 2016 at 11:15 am

      I put the CSS-file in the same folder and include it with the link-tag in the html-file´s head. But even CSS put directly into the div-tag doesn´t take effect.

    6. David Smith
      David Smith Staff November 11, 2016 at 11:39 am

      Sounds like one of two things; either the template isn’t loading or there is a theme/plugin conflict.

    7. Sascha
      Sascha November 11, 2016 at 3:14 pm

      Isn´t there a way to simply redirect to a page I can create with WordPress? It would be great to lead the user directly to the website including the menu, sidebar and all that stuff instead of displaying a link saying ‘Activation successful. Please log in here’ or something. Is there a way to achieve this?

    8. David Smith
      David Smith Staff November 12, 2016 at 12:35 pm

      Sure, it’s possible, you would just need to developer a custom solution to handle it. This is more or less how the perk version of this snippet will work. No ETA on that, however.

  40. Eldred
    Eldred May 12, 2016 at 11:39 pm

    How would I direct the success response to a page that wasn’t my front page?

    I have a large slider on my front page and I’d rather they saw the success message on a page without my slider.

    I have tried changing the url in the activate-success file to

    $url = is_multisite() ? get_blogaddress_by_id( (int) $blog_id ) : home_url(‘/new-registration/’, ‘http’);

    But it doesn’t seem to work.

    Reply
    1. David Smith
      David Smith Staff May 18, 2016 at 10:00 am

      Try changing the $url to the exact URL you want.

      $url = ‘http://mysite.com/path/of/url/’;

  41. Gregg Henry
    Gregg Henry April 14, 2016 at 1:26 am

    Hopefully this helps anyone else having issues where it appears their custom html in the activate-*.php files isn’t working.

    Basically, the theme name is getting included in the $this->template_folder variable so every get_template_part() was failing in activate.php.

    If you don’t have your activate php files in a folder you can just fix the get_template_part calls.

    David – I also submitted an issue on github.

    Reply
    1. Gregg Henry
      Gregg Henry April 14, 2016 at 1:27 am

      And…I totally forgot to thank you for this awesome bit of code! It’s extremely helpful!

  42. ian
    ian March 24, 2016 at 7:15 pm

    Hey Dave, I’m seeing a few errors since the latest GF update. All views of the activate.php are throwing this: Strict Standards: Non-static method GFAddOn::get_base_path() should not be called statically, assuming $this from incompatible context in /////wp-content/themes/f4d/gfur-activate-template/activate.php on line 27 and Notice: Undefined property: GWActivateTemplate::$_full_path in /////wp-content/plugins/gravityforms/includes/addon/class-gf-addon.php on line 4645

    I see they updated get_base_path method to public from protected. Does this require us to declare this now in activate.php? Any ideas?

    Reply
  43. Vainucleo
    Vainucleo March 3, 2016 at 11:11 am

    This works great BUT as you mentioned in above comments it looks like default template. How and where should we modify the code to include our active theme header and footer?

    Reply
    1. David Smith
      David Smith Staff March 6, 2016 at 4:33 pm

      Hi Vainucleo, it sounds like you might not have included this correctly. It should automatically pick up your theme’s header and footer.

  44. Vainucleo
    Vainucleo February 18, 2016 at 4:51 am

    Sorry if I go OT but I really don’t know where to find help, ’cause I can’t believe I’m the only one with this issue… How do you all handle the User activation thing? With GF user registration addon and activation required, once the user submit the form he receives an email from WP with the activation link but he also receive the GF notification. What I really need is to make GF send the notification ONLY once the user has been activated. Any ideas? Tnx

    Reply
  45. Bryant Callahan
    Bryant Callahan February 11, 2016 at 7:18 pm

    Thanks for this snippet! Quick question- how exactly do I go about modifying the new templates now. I can see them in my editor, but I’m not sure where to put the HTML to actually style them.

    Thanks!

    Reply
    1. David Smith
      David Smith Staff March 8, 2016 at 10:44 pm

      Hi Bryant, the files you’ll want to modify are activate-success.php, activate-error.php, and activate-no-key.php. Just start making changes and experiment. :)

  46. Ry
    Ry February 10, 2016 at 7:19 pm

    Hi there,

    Thanks for this, it works like a charm!

    I would like that a user already be ‘logged in’ when they arrive on the activation success page. While I think this is happening, I have to refresh the page for any conditional outputs based on is_user_logged_in () (for instance conditional menu items based on whether a user is logged in or not.

    Do you know how this might be accomplished?

    Thanks in advance!

    Reply
  47. Eva
    Eva February 2, 2016 at 7:13 am

    Hi David, I had to update the theme of one project I was working on 2 years ago. I am usin grafity forms and user registration. I updated also the user registration plugin.

    I followed the steps you wrote above and recognized, that I already have done this 2 years ago.

    Now if I register on the website and click the link in my activation email, the site with the information of user account with username and password is shown. E.g. http://www.xyzdomainname.com/?page=gf_activation&key=14d82de87ftde44895ea1

    This page looks horrible! Everything is widescreen, no CSS is working and I do not know how the style it. Can you perhaps give me a hint?

    The other question:

    My welcome email is also telling me that after clicking the link, another email will be sent with my password and username. But this never happens. I read that WordPress made here some changes and passwords were no longer sent in emails. Is this correct? Where can I edit the text of the welcome email? I use a plugin – SB Welcome Email – but this part does not work anymore.

    Thanks, Eva

    Reply
    1. Dimitri
      Dimitri September 22, 2016 at 6:10 pm

      I could figure this out. You have to check your page.php and see where the content starts, check the code, hooks, div tags etc and paste it into the file.

      I changed this:

      <

      div id=”content” class=”widecolumn”>

      In my case to this (I work with a Total Theme):

      And closed it all with this:

                  <!-- #content -->
      
      
      
              <!-- #primary -->
      

      Don’t forget to adjust the code. The end should be directly above the javascript code snippet.

      Hope it helps you guys.

  48. Ross Wintle
    Ross Wintle January 29, 2016 at 2:56 pm

    OK. I’ve just tried integrating this with a theme based on Sage (http://roots.io/sage). It was a bit tricky because they use a theme wrapper which basically puts all the header and footer stuff into a standard template.

    My code to get around that looks something like this:

    add_action(‘wp’, ‘custom_maybe_activate_user’, 9); function custom_maybe_activate_user() {

    $template_path = STYLESHEETPATH . '/gfur-activate-template/activate.php';
    $is_activate_page = isset( $_GET['page'] ) && $_GET['page'] == 'gf_activation';
    
    if( ! file_exists( $template_path ) || ! $is_activate_page  )
        return;
    
    \Roots\Sage\Wrapper\SageWrapping::wrap( $template_path );
    require_once(STYLESHEETPATH . '/base.php');
    
    exit();
    

    }

    Oh, and you’ll need to:

    use \Roots\Sage\Wrapper;

    too.

    Reply
  49. ray
    ray January 7, 2016 at 4:49 pm

    Hi, I was directed here from a google search. Is this still working? I uploaded to my child theme, and edit the function but it still shows the weird old activation page overlap. Is there something that needs to be done differently for child themes?

    Reply
  50. Bob
    Bob January 5, 2016 at 9:57 am

    Hi, I just wanted to say thanks for code and also recent comments regarding issues. I had a similar issue with activation emails not being sent – updating to the new beta version of the user registration add-on fixed this.

    Reply
  51. Ian
    Ian December 17, 2015 at 12:39 am

    Hi David, Valuable stuff here, glad to have paid you! I have UR 3.0 Beta 1 and I’m not getting any activation emails to go out. I cant figure out why, any ideas? If I need to go to Github please provide a link I dont see a newer version on there.

    Thanks!

    Reply
    1. David Smith
      David Smith Staff December 17, 2015 at 6:18 am

      Hi Ian, glad to hear you’re a Gravity Perks user. :)

      This code doesn’t actually handle the activation email. Just the activation page template after they’ve clicked the activation link in the activation email. If you’re having issues with the email itself, the first stop would be GF support. The first thing they’ll probably tell you is to step through this doc:

      https://www.gravityhelp.com/documentation/article/troubleshooting-notifications/

    1. David Smith
      David Smith Staff December 15, 2015 at 7:24 am

      Hi guys, you were probably experiencing an issue with GF 3.0. It has been fixed in the latest version on Github.

    2. Capel
      Capel December 15, 2015 at 9:46 am

      David, You are correct. I contacted GF support and they sent me the 1.6 beta of the User Registration plugin and it resolved the issue. However, this created a problem with your script.

      In your activate.php file, this line did not work: require_once(GFUser::get_base_path() . ‘/includes/signups.php’); It throws a fatal error ‘Failed opening required …’

      I changed it to: require_once(WP_PLUGIN_DIR . ‘/gravityformsuserregistration/includes/signups.php’);

      and now everything seems to be working again.

    3. David Smith
      David Smith Staff December 15, 2015 at 10:54 am

      Hey Capel, yep, that specific issue has been addressed in the version on Github. I made the change a few minutes before I made that comment so you probably did not have the fixed version. Thanks for reporting. :)

  52. Capel
    Capel December 10, 2015 at 1:22 am

    Hi David, I’ve been using this code for almost a year and it’s good stuff! However, on occasion, the activation email does not go out. I’m not sure why. It could be something related to my host, but we’ve not been able to figure out what it is. The smtp email log shows no entry where the email was sent and the user is still listed in the signups table as active = 0.

    How can I resend the activation email? I’ve looked for a plugin, but the only thing I found was Unconfirmed and it doesn’t work.

    Thanks in advance for your help.

    Reply
    1. David Smith
      David Smith Staff December 14, 2015 at 8:07 am

      Hi Capel, GF User Registration 3.1 adds support for creating a custom activation email which can be resent anytime from the entries view. No official ETA on when this new version will be released but I would expected it sooner rather than later. :)

    2. B
      B February 10, 2016 at 4:14 am

      Hi there– I’m having the same issue… I just had an influx of 500 registrations this hour, and at least 300-400 of the activation emails appear not to have gone out. I’m running version 3.1; is there now supposed to be an ability to either customize the emails in the plugin (so I don’t have to do it with code anymore), or a way to resend the default activation emails (which I am currently customizing with hooks). Happy to provide a URL via email. Thanks for any guidance!

  53. Ritchie
    Ritchie November 10, 2015 at 8:34 am

    Hi David, thanks for the tutorial.

    I have an different question. What i want is that the admin notification has the activation link of that user.

    So in the email notification for the admin i somehow have to put this url http://website.com/?page=gf_activation&key=

    But i do not know how to prefill the KEY part… do yo know this?

    Kind regards, Ritchie

    Reply
  54. TallMeerkat
    TallMeerkat November 1, 2015 at 4:06 pm

    Hi, I have followed your tutorial and the snippet appears to be working ok. However, how do I make it look like the theme I am using – (DIVI by Elegantthemes)? What file from the theme do I need to edit to include the code in activate-success.php for instance so that I get the header, menu, footer? I have tried using the page.php but don’t think that is correct. Thanks.

    Reply
  55. ian
    ian September 17, 2015 at 3:31 pm

    Hi David! Thanks for this, it makes a big difference! I’m having a bit of trouble as I need to redirect users to a specific page after they login. This is after they click the login link on the activation success page.

    Looking at the codex it suggests to use: echo wp_login_url( $redirect ); and then an absolute url (http://example.com/mypage/), recommending: site_url( ‘/mypage/ ‘ ).

    Can you help me adjust the code in the login link on the activation success page so I can accomplish this?

    Million thanks!

    Reply
  56. Sascha
    Sascha September 12, 2015 at 8:05 am

    And btw, I have the option ticked in buddypress: “show admin bar for logged out users” – which works on all other pages and the body class “admin-bar” also shows when loading your activation template. I checked and yes, wp_footer() is there. And the adminbar is not hidden by CSS, it’s just not showing as an HTML element at all – I checked through the HTML source code with the developer tools in Chrome. I have no idea anymore….

    Reply
  57. Sascha
    Sascha September 12, 2015 at 7:42 am

    Hi there,

    very useful walkthrough! The only problem I have is with Buddypress installed and activated that it is not showing the adminbar/toolbar. Would you have any idea how I can make sure that the adminbar is loaded within that template?

    I am developing locally so I cannot send a URL link. Thanks, Sascha

    Reply
  58. Naser
    Naser August 22, 2015 at 8:57 am

    Hey man,

    Is seems to found nowhere a custom functionality to decorate the Default email send by WordPress and it goes like this :

    To activate your user, please click the following link:

    After you activate, you will receive another email with your login.

    Do you have any idea how is this possible?

    Thank You! Naser

    Reply
  59. Irina
    Irina August 3, 2015 at 6:57 am

    Hello David,

    first of all thank you very much for this solution! I can’t figure out how to customize it so that the user is redirected to a new page that have created… Could you give me a hint for the activate_success.php?

    I don’t want the user to land on this page where she gets her login … I want her to land on a page that I created with custom url. Where can I change the url here:

    result ); $url = is_multisite() ? get_blogaddress_by_id( (int) $blog_id ) : home_url(”, ‘http’); $user = new WP_User( (int) $user_id ); ?>

    <p> user_login ?&gt;</p>
    <p> </p>
    

    <?php printf( __('Your account is now activated. View your site or Log in‘), $url, $url . ‘wp-login.php’ ); ?>

    &lt;?php printf( __(&#039;Your account is now activated. <a href="%1$s" rel="nofollow">Log in</a> or go back to the <a href="%2$s" rel="nofollow">homepage</a>.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?&gt;</p>
    

    Reply
    1. Irina
      Irina August 3, 2015 at 6:59 am

      I mean the activate_success.php:

      result ); $url = is_multisite() ? get_blogaddress_by_id( (int) $blog_id ) : home_url(”, ‘http’); $user = new WP_User( (int) $user_id ); ?>

      <p> user_login ?&gt;</p>
      <p> </p>
      

      <?php printf( __('Your account is now activated. View your site or Log in‘), $url, $url . ‘wp-login.php’ ); ?>

      &lt;?php printf( __(&#039;Your account is now activated. <a href="%1$s" rel="nofollow">Log in</a> or go back to the <a href="%2$s" rel="nofollow">homepage</a>.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?&gt;</p>
      

    2. David Smith
      David Smith Staff August 3, 2015 at 12:24 pm

      Hi Irina, are you trying to redirect to another page rather than showing the Success page or are you trying to change the “Log in” or “homepage” URLs on the Success page?

  60. Jason B
    Jason B June 19, 2015 at 2:59 pm

    Thanks for another amazing snippet! Quick question though… Is there a way to modify the original “activation” email text?

    For example, “To activate your user, please click the following link:”

    I’d like to make it say – “To activate your account…”

    I’d also like to remove the “After you activate, you will receive another email with your login.” since I do not send an additional email.

    Reply
    1. Jason B
      Jason B June 19, 2015 at 3:02 pm

      Sorry, looks like this has nothing to do with GF. I did a quick search with “change default wordpress activation email” and found the solution. You can delete my previous comment or perhaps add this solution to this section to let others know! :) thanks again!

  61. Seb
    Seb June 15, 2015 at 7:56 am

    Hi David,

    Thanks for you code, it seems to work for me! Only the one thing I don’t get is that wordpress handles the activation pages as 404. is this normal behaviour?

    Reply
    1. David Smith
      David Smith Staff June 15, 2015 at 12:39 pm

      Hey Seb, glad this works for you. Could you elaborate what you mean by WordPress handling the activation pages as 404s?

  62. Ayodeji
    Ayodeji June 9, 2015 at 9:18 pm

    Hi, I set the activation to manual. I need to check the users first before they are approved. I however want them to get another notification when they have been approved manually, how do i set this up? Thanks.

    Reply
    1. David Smith
      David Smith Staff June 9, 2015 at 11:54 pm

      Hi Ayodeji, we don’t currently have a solution for this but we have something in the works. I’ve saved your email so you’ll be notified when it’s ready.

  63. Marcel Bootsman
    Marcel Bootsman May 7, 2015 at 6:14 am

    Thanks!!

    I adjusted on thing, changed the network_site_url() and network_home_url() to site_url() and home_url() so that site users get the correct link (not to the ‘main’ site).

    Reply
    1. David Smith
      David Smith Staff May 4, 2015 at 10:59 am

      Hi Chris, if you disable the User Activation option on the User Registration feed, the user will automatically be registered rather than requiring activation via email or manually.

    2. Chris
      Chris May 4, 2015 at 4:05 pm

      There is still an activate link beside the user in wordpress, so I just ignore that? Can we auto activate users without sending them an email about the activation?

    3. David Smith
      David Smith Staff May 4, 2015 at 6:31 pm

      Can you send me a screengrab of what you’re seeing? I think perhaps this is unrelated to Gravity Forms.

  64. Gisele
    Gisele May 1, 2015 at 2:12 pm

    Hi again, I’ve just gotten back to this project. So I unzipped the zip file, uploaded it to my child theme folder. Then copied and pasted the code to my child theme functions.php page

    As is, we should still get the default activation/login text until it’s customized right? if so, I’m not sure what’s happened, because when someone clicks the activation link in the email, they go to the website. No message, no text nothing. I haven’t done any customization yet. I should see the default text right?

    Reply
    1. David Smith
      David Smith Staff May 2, 2015 at 7:39 pm

      To be clear, without the snippet, is the default activation template still loading? If so, it sounds like maybe the template path is incorrect.

  65. Jacqui
    Jacqui April 25, 2015 at 10:36 am

    Hi David,

    I had a character issue on a test I just ran and wondered if you have seen this before and if so, how to rectify?

    The password in the notification email is OK – but the one on the screen has character recognition issues.

    screenshot.

    Thanks for any help.

    Reply
    1. David Smith
      David Smith Staff April 26, 2015 at 8:06 pm

      Hm, haven’t seen that before. What is in the actual source for the password value in the markup of the page?

    2. Jacqui
      Jacqui April 28, 2015 at 10:54 am

      Hi David,

      I didn’t think to look in the source code and deleted the test user. I have tested two further users/activations and they didn’t have the same issue.

      Jacqui

    1. David Smith
      David Smith Staff April 26, 2015 at 8:07 pm

      Doesn’t look like it. It never uses anything from the query string to actually redirect the user. It just checks (based on the query string) which page is about to be loaded.

    2. Jacqui
      Jacqui April 28, 2015 at 10:52 am

      Hi David,

      I think my code got cut off – the code I was trying to display is in the ‘activate-no-key.php file:

      add_query_arg( array( ‘page’ => ‘gf_activation’ )

      I think the issue was with add_query_arg and remove_query_arg and I wondered if this piece of code was OK?

      Thanks

  66. Bruno Monteiro
    Bruno Monteiro March 12, 2015 at 11:31 am

    Hi David!

    followed your indications: 1) Latest zip on GITHUB downloaded 2) Copy gfur-activate-template to theme folder 3) copied code snippet to functions.php.

    but every time I copy the code to functions.php site is blanked with an 500 internal server error. Can you please help me?

    Thank you for your time.

    /** * Gravity Forms Custom Activation Template * https://gravitywiz.com/customizing-gravity-forms-user-registration-activation-page */ add_action(‘wp’, ‘custom_maybe_activate_user’, 9); function custom_maybe_activate_user() {

    $template_path = STYLESHEETPATH . '/gfur-activate-template/activate.php';
    $is_activate_page = isset( $_GET['page'] ) && $_GET['page'] == 'gf_activation';
    
    if( ! file_exists( $template_path ) || ! $is_activate_page  )
        return;
    
    require_once( $template_path );
    
    exit();
    

    }

    Reply
  67. Gisele Grenier
    Gisele Grenier February 24, 2015 at 1:25 pm

    First, thank you so much for sharing this. Your instructions are crystal clear and I thought, this is way too easy. I followed and re-read your instructions 4 times and the custom pages in the gfur-activate-template will not display. It only shows the ugly default wordpress one.

    I unzipped the file In my child theme, I created a folder called gfur-activate-template I uploaded the four files: activate, activate-error, activate-no-key and activate-success permissions on all files are 644

    I then added the following code to the bottom of my functions.php page that is located inside my child theme:

    /** * Gravity Forms Custom Activation Template * https://gravitywiz.com/customizing-gravity-forms-user-registration-activation-page */ add_action(‘wp’, ‘custom_maybe_activate_user’, 9); function custom_maybe_activate_user() { $template_path = STYLESHEETPATH . ‘/gfur-activate-template/activate.php’; $is_activate_page = isset( $_GET[‘page’] ) && $_GET[‘page’] == ‘gf_activation’; if( ! file_exists( $template_path ) || ! $is_activate_page ) return; require_once( $template_path ); exit(); }

    Did I miss something?

    Reply
    1. David Smith
      David Smith Staff February 25, 2015 at 8:02 am

      Hi Gisele, to clarify, this will look just like the ugly WordPress one until you modify the styles and or layout. This is just a templating system that allows you to modify it. Does that make sense?

  68. Michael
    Michael February 19, 2015 at 3:24 pm

    Need your help. I have followed the instructions to customize the activation page to the letter. However, I am unable to get the template you created to work. I am running the latest version of Gravity Forms (1.9.1.2), however I am not sure why the new template is not showing up.

    Also, I am not sure what information to share with you to help troubleshoot the issue.

    Reply
    1. David Smith
      David Smith Staff February 19, 2015 at 4:28 pm

      If the template folder is in your theme folder and you’ve copied and pasted the snippet into your theme’s functions.php file, it should work. One thing that throws people off is that by default, it’ll look just like the default template. It just provides an easy way to change what that looks like via the template files.

    1. David Smith
      David Smith Staff February 8, 2015 at 4:52 pm

      Hi David, I’ve just tested in GF 1.9 and the latest version of the User Registration add-on. This still works. Can you provide more details on how this isn’t working for you?

    1. David Smith
      David Smith Staff August 4, 2015 at 7:38 pm

      Hi Nick, you’re comment got lost. I’m sorry about that. We’ve got a solution for this coming soon(ish).

  69. Cal
    Cal January 19, 2015 at 10:11 am

    Is it possible to put the gfur folder in my custom plugin folder instead of the theme folder? I’ve tried, but something is not working. If I step through the code, it hit hits the activate.php, but not the activate-success.php.

    Reply
    1. David Smith
      David Smith Staff January 19, 2015 at 11:47 am

      Hi Cal, you’ll need to update two things.

      1 – In the snippet, update this $template_path = STYLESHEETPATH . '/gfur-activate-template/activate.php'; to point the activate.php in your plugin (sounds like you already go this).

      2 – In the activate.php template, update this bit $gw_activate_template = new GWActivateTemplate(); to pass the “template_folder” parameter like so:

      $gw_activate_template = new GWActivateTemplate( array( 'template_folder' => '/path/to/your/plugin/' ) );

    2. Cal
      Cal January 19, 2015 at 3:11 pm

      David, Ok I tried your suggestion, but it doesn’t seem to be finding the correct template folder. To be clear, I put the gfur-activate-template underneath my plugin folder. So, the array looks like: ‘template_folder’ => WP_PLUGIN_DIR .’/myplugin/gfur-activate-template/’ I also tried ‘template_folder’ => WP_PLUGIN_DIR .’/myplugin/’ But neither of these worked.

  70. kingsley
    kingsley January 19, 2015 at 9:04 am

    Thank you for this work around, i’m using this with my user registration form but experiencing a lot of spamming each minute i got new user registration message but when i look at the form i used as registration form there is no new user or pending user in the form but in wordpress users i will see the new user there. What could be the reason and how will i stop it?

    Reply
    1. David Smith
      David Smith Staff January 19, 2015 at 11:51 am

      Hi Kingsley, it’s hard to say. There are number of anti-spam plugins available for Gravity Forms (ReCAPTCHA, Honey Pot, Zero Spam) that might help. GF Support might have a more comprehensive response for this one.

  71. Mike
    Mike January 5, 2015 at 10:55 pm

    It is possible to auto activate a new user so that once they complete the registration form they are automatically activated and logged into the site?

    There are some plugins that do this for Buddypress which helps streamline the signup process.

    Reply
  72. Johanne
    Johanne January 2, 2015 at 3:43 am

    Thank you for putting together this amazing tutorial, and sharing your files to make this process very simple. All the best.

    Reply
  73. Weird Mike
    Weird Mike November 18, 2014 at 5:38 am

    My sincere apologies! Everything is working as it should. My CSS style IS overriding the template design. I apologize for my lack of thorough testing

    Reply
  74. Weird Mike
    Weird Mike November 18, 2014 at 5:05 am

    Will this still work with a child theme? I’ve done everything very carefully. The folder “gfur-activate-template” is in my child theme directory, I copied the activate.php file from GF UR into my child theme folder, added the function into my functions.php but nothing seems to be working. Maybe my Parent Theme is overriding it?

    Reply
    1. David Smith
      David Smith Staff November 17, 2014 at 10:03 am

      Hi Simon, if you have GP Auto Login installed there will be an setting on the User Registration feed. If you enable this option on a feed that also has “Pending Activations” enabled (aka requiring that a user activate via email), the user will be automatically logged in when they following the link in the activation email and access the site.

      Does this help? Happy to answer any other questions.

    1. David Smith
      David Smith Staff November 7, 2014 at 7:15 am

      Hi Jeff, I do have a solution in the works. Things were progressively pushed back as Gravity Forms introduced better ways to handle this. I’ll be introducing the “best” way to handle this in the next month or so. :)

  75. Evan
    Evan October 14, 2014 at 11:14 am

    Can’t seem to get the custom template to be recognized. I dropped the folder into my active theme, changed the path to the directory and tried to activate a user. Brings me to a page with a header and footer and nothing else.

    Reply
    1. Evan
      Evan October 14, 2014 at 11:21 am

      Resolved the issue. The previous developer had a second theme with the same exact name as the active theme. Caused issues, as one could imagine. Deleted the old theme, and things worked as expected.

      Thanks a bunch, this was very helpful.

  76. Gigi
    Gigi October 6, 2014 at 6:05 pm

    I am wondering if there is anyway to bypass activate-success and go straight to the login form? This would take out a step for the user which is always a good idea (I would prefer to bypass the activation all together and just have the user automatically logged in after registering but I can’t seem to figure that out.)

    Seems do-able to redirect to wp-login but I’m not sure how I would do this. Any tips?

    Reply
    1. David Smith
      David Smith Staff October 7, 2014 at 11:08 pm

      Hi Gigi, GP Auto Login can handle automatically logging the user in after activation. You can use the gpal_auto_login_on_redirect_redirect_url hook to provide a specific URL to redirect the user to after login.

  77. Colin
    Colin September 23, 2014 at 12:16 pm

    Thanks for this it is great as far as the site template goes. Is there any way to alter the words on the Activation email that is sent to registrants?

    Reply
  78. Piet
    Piet June 5, 2014 at 9:59 pm

    Hi David, awesome resource thanks so much for making this available!

    I have a question. I would like to implement this on a multilingual site running on WPML. I have my languages selector showing in the header as a horizontal unordered list, but when I’m on one of the GF Activation pages the entire CSS of the list is ignored.

    I think the reason behind that is, because WPML does not see it as a page at all (url is made to look like a page with ?page=gf_activation) Therefore there are no page translations available and therefore (I think) the language selector is acting up.

    Have you heard of this before and/or do you know a way around it?

    I think I could conditionally switch off the languages selector, but preferably I just have it show up correctly.

    Thanks, Piet

    Reply
    1. Piet
      Piet June 5, 2014 at 10:09 pm

      Just tried adding the language selector styling directly to the activate template and that works.

      So I think the reason that the WPML styles are not loaded is because it is not a “real page”?

      Do you know of a workaround apart from what I just did?

    2. David Smith
      David Smith Staff June 6, 2014 at 7:59 am

      Hi Piet, I think your theory is probably correct. It sounds like the WPML plugin is not enqueueing it’s scripts/styles for this page. Including the styles manually works. Enqueueing the styles for this page is probably ideal.

    3. Piet
      Piet June 6, 2014 at 9:58 pm

      Thanks for your reply David. I agree that it probably is the easiest “solution”, so will keep this for now. If I find out another way during the course of development of this site, I will let you know.

      One idea could be to check whether or not WPML is active and whether or not the language selector is active and if those conditions are met, the stylesheet for the language selector is enqueued for the activate page too. Bit of a hassle and that would probably open the gate to a whole bunch of other plugins that have this issue too ;)

    4. David Smith
      David Smith Staff June 6, 2014 at 10:13 pm

      Haha, yes, I’m certainly open to a generic way to support these kinds of situations but I think the responsibility remains on the plugin enqueueing the scripts.

    5. Piet
      Piet June 6, 2014 at 10:22 pm

      I agree with you, but there must be a reason why the stylesheet is not (properly) enqueued for these activation pages.

      I am trying to figure out why that is exactly and the most likely reason I could come up with is that the activate page is not a “real” page, but just being called as one…

  79. Rinaldo
    Rinaldo May 31, 2014 at 5:10 pm

    Hi, Could someone give me a hint how I show all user data so it can update? I use the User Registration and tried to create another form equal to the principal only with the update function, but only has the type name, email and password data. I have other fields that I created, but they do not automatically load. Thanks

    Reply
    1. David Smith
      David Smith Staff June 2, 2014 at 5:36 pm

      Hi Rinaldo, if you have created a new User Registration feed with the “action” set to “Update”, the remaining step is to map which fields you wish from the user meta to the corresponding field on the form in the “User Meta” section.

  80. Eva
    Eva May 22, 2014 at 3:09 pm

    Hi David, I followed your instruction of step 1 (copy the renamed folder “gfur-activate-template” into my Child-theme folder), but some things seem to be wrong: the text e.g. in the file activate-error.php is in English, but in my WP system the visible text is in German (German is the correct language which I want). Obviously the system does not find the correct files in my child theme folder. What can I do?

    My next problem: When the activation-page is shown, the page shows the settings of the home page, which is a big slider, which covers the full site. And only below this slider is the text with the info of successfull registration of the activate.php and the other files. I would like to change the home page as default site for the activation-sites, I do not want to show the big slider here. Where (and how) can I configuere this in the correct activate.php?

    Thank you for your help! Eva

    Reply
    1. Eva
      Eva May 22, 2014 at 3:47 pm

      Sorry, I forgot something: Step 2: I pasted the code into my functions.php of my child theme and these code snippest caused an error: they were shown on top of each side or I got a blank white side with this code snippest.

      What could be the reason?

      I am more designer than developer, so I need really some help to get this configuered:).

    2. David Smith
      David Smith Staff May 24, 2014 at 11:49 pm

      Hi Eva, the issue you’re having with the activate-error.php not being properly translated was an issue on my part. I’ve updated the activate-error.php file to resolve this issue. Download the latest version from Github.

      The activate.php file handles setting up the template by using the get_header() and get_footer() functions and then loading the proper “template part” (i.e. activate-error.php, activate-no-key.php or activate-success.php). I’m assuming that your theme is setup in such a way that the slider is being included via the get_header() call. You should be able to modify your theme’s header.php file to adjust this.

      Lastly, you mentioned you were seeing some errors when you included the snippet in your functions.php file? Can you send me a screengrab of what you’re seeing? Also, if you could copy and paste the contents of your functions.php file to a pastie, I’m happy to take a look and make sure you’ve included the snippet correctly.

    3. Eva
      Eva May 26, 2014 at 9:24 am

      Hi David,

      thank you very much for your help.

      I managed to put the code correctly into my functions.php file of my child theme. The two problems were, that a) my functions.php file was empty and I did not know how to put the code correctly into it. And b) I am very bad in PHP and did not paste a closing ?>, or first, I put it in a wrong way … now it seems that everything is ok.

      Also the slider in the activation-page is no longer there … I don’t know why :) – but this is good:).

      Eva

  81. Jos Vermeulen
    Jos Vermeulen April 17, 2014 at 8:47 am

    $template_path = STYLESHEETPATH . ‘/gfur-activate-template/activate.php’;

    Is this the line I have to change to point to my child theme? And how do I do that? Child theme: headway-363-child-01

    Thanks for any help! Jos

    Reply
    1. David Smith
      David Smith Staff April 17, 2014 at 9:14 am

      Hi Jos, you only need to change that line if you’re putting the activate.php in a different folder than “gfur-activate-template”. The STYLESHEETPATH constant already handles pointing to your child theme directory.

  82. Eric Price
    Eric Price April 15, 2014 at 4:26 pm

    What would I need to put into the custom activate.php file to automatically login the user when they click thru from the activation email?

    Reply
  83. Tony Ngo
    Tony Ngo March 11, 2014 at 9:40 pm

    Hi David,

    We would really appreciate a bit of help. We watched the video and followed the instructions down to a “T” and the correct activation function doesn’t seemed to be called.

    Upon initiate inspection, it is defaulting to the original activate.php file. We are using multiple themes on our site. Any suggestions?

    Thanks, Tony

    Reply
    1. David Smith
      David Smith Staff March 12, 2014 at 9:26 am

      I’m assuming there is a plugin or some custom code powering the usage of multiple themes on your site? Try deactivating this and see if the activation template works. Just a first step to debug the problem.

    2. Tony
      Tony March 13, 2014 at 8:59 pm

      Thanks David, after debugging we got the activation pages to work. The problem was that the activate.php was defaulting to the theme of the wordpress static page. We modified the activate.php file with the customer style template using get_template_part(). Thanks again!

  84. Bruno
    Bruno March 7, 2014 at 6:37 am

    Hello, any idea what exact this issue causes ?

    Fatal error: Class ‘GFUser’ not found in /absolute_path/domain/our-content/themes/our-childtheme/gfur-activate-template/activate.php on line 27

    It would be absolutely awesome if you can give me a tipp! Thank You.

    Best regards Bruno

    Reply
    1. David Smith
      David Smith Staff March 7, 2014 at 11:55 pm

      Hi Bruno, it means that the GF User Registration plugin is not being loaded. Any ideas why it wouldn’t be?

    2. bruno
      bruno March 9, 2014 at 6:55 am

      Hey, David! Thanks a lot. You showed me the way. I use Plugin Organizer and on Frontpage I deactivate it. Now I saw, the register pages uses the Frontpage, too..

      Thank You!! Nice work with this templates. Looks beautiful with a little bit of customization..

      Best regards!

    3. bruno
      bruno March 9, 2014 at 8:03 am

      Please, one question more…

      Uses this Registration-Form SSL also, if it is defined in wp-config to use SSL for every register and login ?

      If not, how can I use SSL ?

      Best regards

    4. bruno
      bruno March 10, 2014 at 1:28 am

      Hey David,

      I wanna add “define(FORCE_SSL_LOGIN, true)” (with quotation marks) inside wp-config to force SSL for any Login.

      Does this work with Register Add-On, too ? Or should I add something ?

      Thanks for help and your fast replys : )

      Best regards

    5. David Smith
      David Smith Staff March 10, 2014 at 9:35 am

      Hey Bruno, I would say it is safe to assume it will. If you find that it does not, let me know and we can see how difficult it would be to enforce it. :)

  85. Andrew
    Andrew February 17, 2014 at 9:34 pm

    Do you need to do something different if you are using a child theme. I followed all the steps; I put the GW Activate Template in my child theme folder, edited the files, then copied the code into my child theme’s function sheet, and the edits didn’t show up.

    Reply
  86. Amir
    Amir February 3, 2014 at 2:10 am

    Hi David, I want to change get_header(); in activate.php to get_header(‘header2’); but it doesn’t work. What should I do?

    Reply
    1. David Smith
      David Smith Staff March 6, 2014 at 9:09 am

      Hi Amir, do you have a “header-header2.php” file in the root of your theme folder? Is the default header.php still pulled?

  87. Himanshu
    Himanshu December 4, 2013 at 4:41 am

    Also, I am confused. Where should I put this folder “gfur-activate-template”. Suppose I am using a theme named “beauty” then should I make it like this:

    /wp-content/themes//gfur-activate-template/

    Is this correct?

    Reply
    1. David Smith
      David Smith Staff December 4, 2013 at 2:20 pm

      It should be /wp-content/themes/beauty/gfur-activate-template/ and then you’ll need to include the snippet above to make sure this custom template is pulled. Keep in mind, until you actually customize the template, it will look about the same as it did before.

  88. Himanshu
    Himanshu December 4, 2013 at 4:28 am

    The activation email being sent to user has subject “[WordPress] Activate %USER”. Do you know how to change this subject?

    Reply
  89. Hugh
    Hugh November 29, 2013 at 9:47 pm

    Great resource. Thanks for your explanation and for the modified activate.php file. I think most people (myself included) are going to want to modify this file to make the activation confirmation page look like the Activate confirmation in the default Buddypress registration process. Could you explain how to modify the GWActivateTemplate method in order for the page to display just the header along with the activation message. Thanks again!

    Reply
  90. Joe Riviello
    Joe Riviello November 11, 2013 at 2:07 pm

    Hey Dave, we have an ecommerce client who has a wholesale section of the site. We used the addon to create a “wholesalers” member. Then we created a gform field for the EIN # of those users. So when a potential wholesaler fills out the form, our client cross checks them with the list of EIN#’s that they already have in their internal DB. Keep in mind, this is a new site and the client already has many wholesalers. They’ve just been calling in their orders. We are giving them the opportunity to place the wholesale orders online just like the retail customers do. So, what the client wants us to do: – add existing EIN #s to the site DB – when a wholesaler visits the site and fills out the wholesaler form, and if their EIN matches one that is already in the DB, that wholesaler gets automatically approved as a wholesaler and doesn’t have to wait for our client to activate them via the wp admin.

    Any tutorial on this?

    Reply
  91. Colin
    Colin November 7, 2013 at 4:31 am

    Thanks for this it is really useful.

    One question though is it possible to edit the emails that are sent out particularly the final one that appends the login url as I want to change that url.

    Reply
    1. Deon
      Deon March 15, 2014 at 6:46 am

      Hi David

      This is exactly what I want to do. Have you found an answer to your questions already?

      Regards

  92. Atlante
    Atlante October 30, 2013 at 7:42 pm

    Hi David, is there a way to change the from email and name? I found this:

    . When someone registers, I get an email from noreply@notarynet.net and NotaryNet, but it still says this in the subject: [WordPress] activate: username… Can we change the wordpress part? Thanks!

    Reply
  93. Peter
    Peter October 29, 2013 at 11:59 pm

    Hi David, thanks for sharing the article.

    Just wondering if there is a way to define which page template will be used for the confirmation page?

    ATM it loads homepage by default, but I would like to use different page template.

    Any idea how to do this?

    Reply
    1. David Smith
      David Smith Staff October 30, 2013 at 7:56 am

      Hi Peter, it may appear like your theme’s home page template but it is actually just calling the get_header() and get_footer() functions which load your theme’s header and footer and also frames the content. If you want to customize this, you can modify the template() method in the GWActivateTemplate class in activate.php.

  94. David
    David October 23, 2013 at 12:45 pm

    Hi David, Thanks for this! Just to mention some MU issues. I have the templates working ok, pulling from a child theme etc. When I load /?page=gf_activation&key=xxx for example, I get “You may now log in” which has active link to ms root site. I replaced network_site_url for siteurl to get the subsite links to appear correctly. Thought this might help others on MU.

    Reply
  95. Sam Smith
    Sam Smith October 17, 2013 at 6:35 pm

    Hello,

    For some reason I am getting a call to undefined function error. I’m running the latest version of wordpress, in a multisite environment. I’m running the latest version of Gravity Forms. But I am now getting an error that says: PHP Fatal error: Call to undefined function rgget() in {path of template}

    Any ideas why this may be happening?

    Reply
  96. kuching
    kuching October 10, 2013 at 12:39 am

    Hi Dave, I’m not sure why my previous comment has been held for moderation since early August…

    I just wrote:

    That’s quite neat, how about logging in automatically users that click on the activation link from their email and open the website from there?

    There are tricks to automatically log in a user that just registered, but I’m not sure about activation, especially in the way you propose.

    Reply
  97. Janet Hall (OverHall)
    Janet Hall (OverHall) October 9, 2013 at 2:20 pm

    Thank you so much for this; however I have a few questions: Which theme folder do I put this folder into, the parent or child?

    Also do you have any information once registered and activated, where/how do I take them to log in so they can fill out an application?

    Thank you as this has been very helpful.

    Reply
  98. Jan
    Jan October 2, 2013 at 3:22 pm

    I can’t seem to get this work correctly. I have followed the directions (as far as I can tell ;-)). Uploaded the gfur-activate-template folder to the themes folder and added the code snippet to the theme functions php file. The successful activation link from the email still directs to the home page. I was hoping that it would direct to the activate-success.php template page. I have added a welcome and sales message but can’t seem to get it to direct correctly. Thank you.

    Reply
  99. Jan
    Jan October 2, 2013 at 3:18 pm

    I have followed your directions (as far as I can tell :-)). Uploaded the new file to my themes folder and added the code snippet to the functions.php file but the successful activation still directs to the home page instead of the the activate-success.php page template. I have a message for the successful activation page and can’t seem to get it to direct correctly.

    Reply
  100. Anson
    Anson September 18, 2013 at 1:20 am

    Sorry I just wanna ask. After doing this, I don’t need to setup anything at all? And if I want to customize, I just customize the files in your gfur-activate-template folder right.

    Reply
    1. David Smith
      David Smith Staff September 11, 2013 at 12:08 pm

      Hi Terence,

      The purpose of this is to give you the ability to customize the activation page as you need. This code “extracts” the templates out of the User Registration plugin so you can modify them from a theme-level. It also simplifies the templates so there is less PHP code in each template and you can focus on the HTML/CSS.

  101. Mehigh
    Mehigh August 28, 2013 at 2:07 pm

    Thank you. Your action override function had been really helpful. A little thing I had learned while working on this regarding a parent-child theme environment is the fact that the constant STYLESHEETPATH points to the child theme, and the TEMPLATEPATH constant points to the parent theme. A little var_dumps here and there helped me find out why the template I had placed in the parent theme did not trigger.

    Reply
  102. Derol
    Derol August 22, 2013 at 7:00 pm

    This helps me tremendously right now on half my project… But what I’d really like to know, that no one can seem to answer, is how do I customize the activation email?

    Reply
  103. kuching
    kuching August 9, 2013 at 12:27 am

    That’s quite neat, how about logging in automatically users that click on the activation link from their email and open the website from there?

    Reply
  104. Stephanie
    Stephanie July 19, 2013 at 12:49 pm

    Is there a way to customize the actual email that is sent? It’s a bit vague and generic. We’d like to customize the text.

    Reply
  105. dheath
    dheath June 12, 2013 at 6:48 pm

    Thanks for this :)

    I am trying to incorporate the get_sidebar(); so it blends with a site I am working on, instead of a full width page.

    Do you know where or how to achieve this within your template files?

    Reply
  106. Jesse C.
    Jesse C. March 16, 2013 at 6:27 am

    Oops! Just found it, David. Please ignore my question. Also trust me when I say that “fabtastic” was a typo. :)

    Reply
  107. Jesse C.
    Jesse C. March 16, 2013 at 6:00 am

    David – only just discovered your site – what a fabtastic resource. I’ve been messing around with Gravity Forms and User Registration for a client and this Pending functionality is just the ticket. But I don’t seem to see how to access it in my version of the User Registration Add-on. I’m using 1.4 – is there a beta version that can be downloaded somewhere – or am I just missing how to activate it in the backend?

    Again – thanks – great site!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.

Grab a bundle of free Gravity Forms plugins

Enter your email and receive our most popular free plugins and snippets, plus access to hundreds of others.

This field is for validation purposes and should be left unchanged.