WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] URL for Themed Profile editing (3 posts)

  1. tzeldin88
    Member
    Posted 2 years ago #

    When using TML's "Enable Themed Profiles" module, the url of the edit-profile page is "mysite.com/login/?action=profile".

    I understand that this is because the TML shortcode is on the "login" page, and the "action=profile" query string tells TML to show the Edit Profile form instead of the Login form.

    But this url structure is different than the rest of the site. Is there any way to enable TML's Themed Profiles to show a url without a query string, so it's more consistent with normal WP urls, like:
    - mysite.com/edit-profile/
    - mysite.com/login/edit-profile/
    - mysite.com/members/edit-profile/

    Thanks in advance for any suggestions.

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    This will actually be a feature for 6.2. Meanwhile, create wp-content/plugins/theme-my-login-custom.php and add the following to it:

    <?php function tml_permalinks() {
    	add_rewrite_rule( 'register/?$', 'index.php?pagename=login&action=register' );
    	add_rewrite_rule( 'edit-profile/?$', 'index.php?pagename=login&action=profile' );
    }
    add_action( 'init', 'tml_permalinks' ); ?>

    Then visit the Permalink settings page and save. That should do it!

  3. tzeldin88
    Member
    Posted 2 years ago #

    Thanks Jeff, I'll try this out. Thanks for the fast response here, and for such a great plugin.. I just donated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic