Support » Plugins and Hacks » How to do an auto login with WP 2.5?

Viewing 4 replies - 1 through 4 (of 4 total)
  • ok, i think the $ signs in user_pass are causing the problems. How can i escape this chars?

    lxg

    (@mastermind)

    Use single quotes, elsewise "$foo" will output the value of the variable $foo.

    @mastermind, tx

    now
    $passwd = ‘$P$BWf7et……O2EP13.lL/’;
    WP_Integration::wp_login( $username, $passwd, true );

    doesn’t give me an error anymore.

    But it doesn’t work as i thought it would be

    [code]

    <?php if($uid == ‘test’) {
    ob_start();
    include_once (“incs/wp_functions.php”);
    $username = “test”;
    $passwd = ‘$P$BWf7…O2EP13.lL/’;
    WP_Integration::wp_login( $username, $passwd, true );
    ob_get_contents();
    ob_end_clean();

    ?>

  • News items
  • <?php }?>
    [/code]

    When you click News items it still shows the login screen??

    Any tips

hmm,
WP_Integration::wp_login( $username, $passwd, true );

should set a user/password cookie, right?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to do an auto login with WP 2.5?’ is closed to new replies.