WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
Separate Login vs Profile page (12 posts)

  1. ehemmer
    Member
    Posted 2 years ago #

    Is there a way to separate the login and profile pages? I dont show the menu on the login page, but want to when editing the profile

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

  2. Daniele Raimondi
    Member
    Posted 2 years ago #

    +1 for this question!
    I'd like to have different wordpress pages for

    • login
    • register
    • lost password
    • profile

    I've managed to get it for the first 3: I've created 3 WP pages and setted their slugs as permalink for login, register and lost password pages in tml->General->Permalink settings.
    Then I've writed some text in every page followed by the relative shortcode:

    FOR LOGIN PAGE
    [theme-my-login default_action=login login_template=tml-login-form.php]

    FOR REGISTER PAGE
    [theme-my-login show_title=0 default_action=register register_template=tml-register-form.php]

    FOR LOST PASSWORD PAGE
    [theme-my-login show_title=0 default_action=lostpassword lostpassword_template=tml-lostpassword-form.php]

    But now I'm not able to replicate this strategy for the profile page.
    I've created a WP page for the themed profile and I've putted this shortcode in it's content:

    [theme-my-login default_action=profile profile_template=tml-profile-form.php]

    As result I was getting this php error:

    Call to undefined function get_user_to_edit() in themed-profile.php on line 192.

    So I've added this code on line 191 in the function get_profile_form:

    if(!(function_exists('get_user_to_edit'))){
    	require_once(ABSPATH.'/wp-admin/includes/user.php');
    }

    And now I can see all my profile data but... all modification to the profile are not saved unless I change the form action to slugforloginpage?action=profile.
    In this case chenges are saved but this redirect me the login page showing my profile data.

    Hope someone can help with this!

  3. Daniele Raimondi
    Member
    Posted 2 years ago #

    Oppss, as for the profile page, also register page and lost passowrd page are not working this way: when I submit the form nothing happen or I get a 404 error in the worst case. All those form have to post data to login page with the right action to work properly.

    So Jeff, instead of setting only one page for tml and then add rewrite rules for profile, register, lostpassword(...) pages pointing to the same page, don't you think it could be useful to permit to the user to set a page for every function of tml?

  4. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    TML 6.3 will be overhauling a lot of the way TML works. I will look into a way to allow different templates per action.

  5. Tomica
    Member
    Posted 2 years ago #

    +1, thanks for bringing this up.

  6. mremonen
    Member
    Posted 2 years ago #

    @Daniele: the format should be: [theme-my-login default_action="profile" profile_template="nkt-profile-form.php"]

    (notice the quotes)

    Anyway, I'm using TML widget in sidebar for login and then separate profile page (with only possibility to change email & pw). It works ok.

  7. Madchen1
    Member
    Posted 2 years ago #

    I need this too.

  8. Brooke Dukes
    Member
    Posted 2 years ago #

    Just another vote for this. I got it to work by settings the permalinks then adding ?action=true to the end.

    So I have a new page profile with the content of [theme-my-login default_action="profile" profile_template="profile-form.php"] then under permalinks I have it set to profile/?action=profile and it seems to be working.

    Hope that helps.

  9. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    This will be completely possible with TML 6.3. It will introduce a new post type, tml_page. Each action will be a separate post of the tml_page type.

  10. Tomica
    Member
    Posted 2 years ago #

    That's an awesome news, and a clever solution, Jeff. Waiting for the update!

  11. yondershore
    Member
    Posted 2 years ago #

    hey guys,
    i did little customization to my profile in the functions.php file and when i got to my profile page with TML installed i get:

    Call to undefined function get_user_to_edit() in /nfs/c08/h04/mnt/152279/domains/bannermanstationcoa.com/html/wp-content/plugins/theme-my-login/modules/themed-profiles/themed-profiles.php on line 194

    thoughts?

  12. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    As of version 6.2.3, TML only loads the files needed for the profile page if the action variable is set to profile.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.