Theme My Login
How to modify activate message and how to redirect from activated account page? (1 post)

  1. spacebom
    Posted 1 year ago #

    Hello Jeff.

    First I want to thank you for the plugin, it is really cool.
    Second I want to explain my two problems. They are driving me crazy.

    Problem number 1: How to edit the HTML code between lines 147-150 on /includes/class-theme-my-login-ms-signup.php?
    And I don't mean just translate it, I want to include new div, etc.

    I tried to comment the function between 'before_signup_form' and 'signup_finished' actions hooks and include my own code, but then TML does not shows the register form in "register" page. Also try to modify the text through CSS styles, but the register form page and the "please validate your account" page have the same div properties and that is not enough.

    Is there anyway to change this HTML code? I want to do something like this: http://imageshack.us/photo/my-images/547/pj3s.png/

    Problem number 2: How to redirect from "your account is now active" page/output message to one custom page?

    I mean from here http://imageshack.us/photo/my-images/9/8dfa.png/ to another one what I want. (/welcome/ for example...).

    I tried changing action links, like this:

    function tml_action_url( $url, $action, $instance ) {
    	if ( 'activate' == $action )
    		$url = 'http://myurl.ext/welcome/';
    	return $url;
    add_filter( 'tml_action_url', 'tml_action_url', 10, 3 );

    But seems to "activate" is not a catchable action... How could I do?

    Thank you very much for you support. And again for you plugin.
    Best regards.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic