Support » Plugin: Theme My Login » Can't load custom profile form

  • Resolved loganless

    (@loganless)


    Hi!

    I use 4.6 and I’m trying to customize the profile page using:

    <?php 
    
    theme_my_login(
    	array(
    		'default_action'	=> 'profile',
    		'show_title'		=> false,
    		'profile_template' 	=> 'inc.profile-form.php'
    	)
    );
    
    ?>

    It load the initial form and not the custom form (inc.profile-form.php). I try the shortcode [theme-my-login default_action=”profile” profile_template=”inc.profile-form.php”] but it works only if i put in the content, not if I use

    echo do_shortcode('[theme-my-login default_action="profile" profile_template="inc.profile-form.php"]');

    Any ideas?

    https://wordpress.org/plugins/theme-my-login/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    I believe the call has to be in the loop.

    Thread Starter loganless

    (@loganless)

    Thanks!
    i put the funciotion in the loop.

    <?php
    while( have_posts() ){
    	the_post();
    	theme_my_login( array(
    		'default_action'		=> 'profile',
    		'show_title'			=> false,
    		'profile_template' 		=> 'inc.profile-form.php'
    	));
    }
    ?>
    Thread Starter loganless

    (@loganless)

    Can I ask you one other thing?
    I’m applying to the profile form a custom javascript validator, which after checking the fields, does the submit of the form. On the other forms of Theme My Login works fine, but only on this form, when sending, does nothing.
    Is there any javascript function already set to submit this form?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    No, there isn’t.

    Thread Starter loganless

    (@loganless)

    This is an example. I try this simple function on the profile form, but if I use event.preventDefault() the submit doesn’t work. This is the only form of Theme My Login where doesn’t work.

    $( "input[type='submit']").click( function(event){
    	event.preventDefault();
    	alert('test');
    	$(this).parents('form').submit();
    } );

    This is very strange. Any ideas?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Actually, there is the new event that checks to make sure the weak password checkbox is checked if attempting to use a weak password. Maybe it’s that?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can't load custom profile form’ is closed to new replies.