Viewing 1 replies (of 1 total)
  • Thread Starter oavs

    (@oavs)

    Ok It works it was to to with function code I had added stopping it work. Code is blow here . If anyone can fix the problem and post it here would also be great. Code adds extra text to the password login page which is very handy.

    = code===========
    // Customizing And Styling The Password Protected Form
    add_filter( ‘the_password_form’, ‘custom_password_form’ );
    function custom_password_form() {
    global $post;
    $label = ‘pwbox-‘.( empty( $post->ID ) ? rand() : $post->ID );
    $o = ‘<form class=”protected-post-form” action=”‘ . get_option(‘siteurl’) . ‘/wp-pass.php” method=”post”>
    ‘ . __( “THIS IS PASSWORD PROTECTED PAGE” ) . ‘
    <label class=”pass-label” for=”‘ . $label . ‘”>’ . __( “ENTER YOUR PASSWORD:” ) . ‘ </label><input name=”post_password” id=”‘ . $label . ‘” type=”password” style=”background: #ffffff; border:1px solid #999; color:#333333; padding:10px;” size=”20″ /><input type=”submit” name=”Submit” class=”button” value=”‘ . esc_attr__( “Submit” ) . ‘” />
    </form><p style=”font-size:14px;margin:0px;”>?Only registered users with portfolios may only login. If you do not have your password sent to you or if you have not registered, please do so using the Register form on the right.</p>
    ‘;
    return $o;
    }

    // END

Viewing 1 replies (of 1 total)
  • The topic ‘Logged out but now can't login’ is closed to new replies.