Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter baseem

    (@baseem)

    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:

    <?php
    /*
    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}
    	</style>
    <?php } ?>
    
    <script type="text/javascript">
    
    jQuery(function(){
    
    	jQuery('.expand-login').toggle(
    			function(){ jQuery('.login-form').show('slow'); },
    			function(){ jQuery('.login-form').hide('slow'); }
    			);
    });
    
    </script>
    <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.
    			</p>
    			<p>
    				GET INSPIRED · GET CREATIVE · REFASH!
    			</p>
    			<?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">
    						<p>
    							<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" />
    						</p>
    						<p>
    							<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>
    					</div>
    					<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>
    					<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(); ?>" />
    					</p>
    				</form>
    			</div>
    
    			<?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 ) ); ?>
    		</div>
    	</div>
    </div>

    Thread Starter baseem

    (@baseem)

    This:

    <?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.

    Thread Starter baseem

    (@baseem)

    So after around a week of frustration. I fixed this problem by simply calling: flush_rewrite_rules() after the new post type is added in the plugin. (it is specified by wordpress documentation to use it but for some reason you didn’t)
    so in wpmarketplace/libs/install.php
    the code for function wpmp_post_types should look like that:

    function wpmp_post_types(){
        register_post_type("wpmarketplace",array(
    
                'labels' => array(
                    'name' => __('Marketplace'),
                    'singular_name' => __('Product'),
                    'add_new' => __('Add Product'),
                    'add_new_item' => __('Add New Product'),
                    'edit_item' => __('Edit Product'),
                    'new_item' => __('New Product'),
                    'view_item' => __('View Product'),
                    'search_items' => __('Search Product'),
                    'not_found' =>  __('No product found'),
                    'not_found_in_trash' => __('No product found in Trash'),
                    'parent_item_colon' => ''
                ),
                'public' => true,
                'publicly_queryable' => true,
                'has_archive' => true,
                'show_ui' => true,
                'query_var' => true,
                'rewrite' => array('slug'=>'product','with_front'=>false),
                'capability_type' => 'post',
                'hierarchical' => false,
                'menu_icon' =>plugins_url().'/wpmarketplace/images/wpmp.png',
                'supports' => array('title','editor','author','excerpt','thumbnail','ptype','comments','custom-fields') ,
                'taxonomies' => array('ptype')
    
            )
        );     
    
        flush_rewrite_rules();
    }

    Thread Starter baseem

    (@baseem)

    Yes I am a programmer. Thanks a lot for your help.
    Btw, I’m using Twenty-Eleven theme. (default in wordpress) and it is making the problem.

    Thread Starter baseem

    (@baseem)

    Thanks for the quick reply! The default permalinks works! ??
    However I can’t keep it like that. do you have any idea why this might be happening?

Viewing 5 replies - 1 through 5 (of 5 total)