Theme My Login
Front end profile not showing up (6 posts)

  1. baseem
    Posted 3 years ago #

    Hello there,
    First of all I want to thank you for this amazing plugin, however, I'm having some problems with it. when pressing on the Edit Profile in the admin panel it should show me the front end form that comes from Theme My Login, however, it redirects to the main page instead.
    There must be something with the permalinks and flushing but the plugin is huge so I don't know where to look, can you please give me an indication to where it could come from? I'm a PHP developer so I can fix it my own.
    I must mention that I don't use the shortcode for theme my login. simply because I have a custom page, could that be the problem?
    Appreciate your answer!


  2. Jeff Farthing
    Plugin Author

    Posted 3 years ago #

    It could be. May I ask what you custom page consists of?

  3. baseem
    Posted 3 years ago #


    <?php get_header(); ?>
    <?php theme_my_login(); ?> 
    <?php get_footer(); ?>

    However, I don't think it should be related to the profile page, also the register page doesn't show up. basically, only the login page shows up.

  4. ecmedia
    Posted 3 years ago #

    With permalinks I have the same problem too, although I'm using shortcodes.

    This code:

    [one_half][theme-my-login default_action="register"][/one_half]
    [one_half_last][theme-my-login default_action="login"][/one_half_last]

    shows up two identical login forms.

  5. baseem
    Posted 3 years ago #

    Ok, so I figured out how to make it work in weird way, I used
    <?php echo do_shortcode('[theme-my-login default_action="register"]'); ?>

    However, now I'm facing another problem. it's the error messages, nothing shows up when I enter wrong login details. tried to call the error functions of wordpress myself, didn't work, disabled other plugins and tried, didn't work.
    any suggestions?

    My theme page code looks like this:

    If you would like to edit this file, copy it to your current theme's directory and edit it there.
    Theme My Login will always look in your theme's directory first, before using this default template.
    <?php if (is_page('login')) { ?>
    	<style type="text/css">
    		.entry-header {display:none}
    <?php } ?>
    <script type="text/javascript">
    			function(){ jQuery('.login-form').show('slow'); },
    			function(){ jQuery('.login-form').hide('slow'); }
    <div class="login" id="theme-my-login<?php $template->the_instance(); ?>">
    	<div class="small-centered-column">
    		<div class="small-centered-column2">
    			<h1>Join ReFash</h1>
    			<p>and share your passion for pics and fashion!<br />
    				We are your marketplace to love, shop and sell Vintage and 2nd Hand. Discover new styles and old treasures and show of your skills in styling and photography.
    			<?php $template->the_action_template_message( 'login' ); ?>
    			<?php $template->the_errors(); ?>
    			<button class="expand-login">Login</button>
    			<div class="login-form" style="display: none;">
    				<form name="loginform" id="loginform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'login' ); ?>" method="post">
    					<a href="#" id="login-email-link"></a>
    					<div id="login-email-form">
    							<label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Username', 'theme-my-login' ) ?></label>
    							<input type="text" name="log" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'log' ); ?>" size="20" />
    							<label for="user_pass<?php $template->the_instance(); ?>"><?php _e( 'Password', 'theme-my-login' ) ?></label>
    							<input type="password" name="pwd" id="user_pass<?php $template->the_instance(); ?>" class="input" value="" size="20" />
    					<p class="forgetmenot">
    						<input name="rememberme" type="checkbox" id="rememberme<?php $template->the_instance(); ?>" value="forever" />
    						<label for="rememberme<?php $template->the_instance(); ?>"><?php _e( 'Remember Me', 'theme-my-login' ); ?></label>
    					<p class="submit">
    						<input type="submit" name="wp-submit" id="wp-submit<?php $template->the_instance(); ?>" value="<?php _e( 'Log In', 'theme-my-login' ); ?>" />
    						<input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'login' ); ?>" />
    						<input type="hidden" name="testcookie" value="1" />
    						<input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
    			<?php do_action( 'login_form' );  // WordPress hook ?>
    			<?php do_action_ref_array( 'tml_login_form', array( &$template ) ); // TML hook ?>
    			<?php $template->the_action_links( array( 'login' => false ) ); ?>
  6. Jeff Farthing
    Plugin Author

    Posted 3 years ago #

    Much of TML doesn't work properly if your theme is not properly utilizing The Loop.

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