Modify text in Confirmation Page after affiliate signs up

How can I modify the HTML for the page that shows up when a new affiliate enters his details and clicks Submit?

Specifically, I would like to make the text that instructs the user to check their email for a password REALLY BOLD AND RED, because people have trouble reading.

Ideally, is there a hook for this?

Even better, the new affiliate should be able to enter their password when they sign up and not have to go through the rigmarole of checking their email and yada yada.

More on my previous topic:

The page that is created with class_affiliates_registration.php (Line 265) is rather agricultural when an affiliate first signs up. Ideally, a filter would allow me to change the look of the page.

Alternatively, put the text re. the confirmation link in the email right at the top, add CSS styling to the paragraphs, and ditch the login inputs.

The Log In link that appears on the registration page after a new affiliate registers point to wp-login.php?checkemail=confirm

This is all cool except that it doesn’t work when WordPress has been installed in a subfolder like /wordpress, which means the link should then be wordpress/wp-login.php?checkemail=confirm

The erroneous code is on line 271 of class-affiliates-registration.php

Please pose a fix for this as soon as possible.

In the mean time I will make a 301 redirect as a workaround.


Comments

8 responses to “Modify text in Confirmation Page after affiliate signs up”

  1. Hi

    Thanks for the responses. I will implement that filter so long and test.

    The login link: No, it doesn’t redirect, and generates the wrong URL. Which file is the code in? I’ll change it.

    Ruth.

    PS. I had bought the plugin a few days ago to put on my site at http://www.naturalblacksalve.com, but then changed my mind, set up a new site at http://www.zenithherbal.biz, and this is where the plugin resides now.

    Only on the one site though. Not on both.

    Hope that’s ok, please confirm.

    Also try signing up on http://www.zenithherbal.biz/affiliate-area/ and see how the link points to the wrong location.

    1. OK, updated it. Login link now hand-fixed but awful. I hope you update this soon.

      Line 267 in class-affiliates-registration.php

      from: get_home_url( get_current_blog_id(), ‘wp-login.php?checkemail=confirm’ )

      from: get_home_url( get_current_blog_id(), ‘wordpress/wp-login.php?checkemail=confirm’ )

      1. Have you checked your .htaccess? This change should not be required.

    2. Hi Ruth,

      Sure the URL change is ok, thanks for asking 🙂

  2. Regarding your suggestion for the login link, this will point to the right URL even if you have it in a subfolder.

  3. I’ve updated the code from the previous comment, it was missing the priority and number of arguments.

  4. I’ve moved the additional suggestions from the separate topics into this one.

  5. Hi Ruth,

    Good point! We don’t have a filter in place to modify the output and I also find we’re missing at least a CSS class to be able to target the output so that its appearance can be adjusted easily. Until that is added, you could use an approach such as this one where a word (or a sentence) is targeted using jQUery. Not optimal but a solution while we add a filter and CSS classes.

    Another option would be to use a filter:

    add_filter( 'gettext', 'my_gettext_filter', 10, 3 );
    function my_gettext_filter( $translations, $text, $domain ) {
    if ( ( $domain == 'affiliates' ) && ( $text == 'Please check your email for the confirmation link.' ) ) {
    $translations = '<span style="font-weight:bold;">' . $translations . '</span>';
    }
    return $translations;
    }

Share