Title: debugger777's Replies | WordPress.org

---

# debugger777

  [  ](https://wordpress.org/support/users/debugger777/)

 *   [Profile](https://wordpress.org/support/users/debugger777/)
 *   [Topics Started](https://wordpress.org/support/users/debugger777/topics/)
 *   [Replies Created](https://wordpress.org/support/users/debugger777/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/debugger777/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/debugger777/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/debugger777/engagements/)
 *   [Favorites](https://wordpress.org/support/users/debugger777/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Login to wordpress from external website](https://wordpress.org/support/topic/login-to-wordpress-from-external-website/)
 *  Thread Starter [debugger777](https://wordpress.org/support/users/debugger777/)
 * (@debugger777)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/login-to-wordpress-from-external-website/#post-2941932)
 * Hi
    I have fixed it,with help from other users in this wordpress blog.
 * Here it is
 * <?php ob_start();
    require($_SERVER[‘DOCUMENT_ROOT’].”/index.php”); // Include
   wordpress main index file,we get access to “all wp-function(not tested)” in our
   external file. define(‘WP_USE_THEMES’, false); // Do not show themes header(“
   HTTP/1.1 200 OK”); //Sometimes error occurs,so to fix we set headers
 *  $email = ‘someuser@somewhere.com’; //Get username or password from
 *  if (!email_exists($email))
    { echo ‘That E-mail doesn\’t belong to any registered
   users on this site,So registering….‘; wp_create_user( ‘someuser’, ‘passme’, ‘
   someuser@somewhere.com’); // Creating WP User echo ‘This email id is now registered
   thanks—>’.$email;
 *  }
    else { echo “That E-mail id is already registered !! So, automatically signing
   in…”; $creds = array(); $creds[‘user_login’] = ‘someuser’; $creds[‘user_password’]
   = ‘passme’; $creds[‘remember’] = true; $user = wp_signon( $creds, false ); //
   Sigining in a WP User
 *  if( is_wp_error($user))
    { echo ‘oops!! we got some error in sigining in ‘.$
   user->get_error_message(); } else { echo ‘User is now logged in !!‘; }
 *  }
    ob_end_flush(); ?>
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Javascript not working in admin panel](https://wordpress.org/support/topic/javascript-not-working-in-admin-panel/)
 *  [debugger777](https://wordpress.org/support/users/debugger777/)
 * (@debugger777)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/javascript-not-working-in-admin-panel/#post-2452189)
 * Hi elbeomar,
    Fixed the script !! If anyone is facing any problem with this script.
   Just put a message at the bottom
 * Thanks
    Debugger
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Javascript not working in admin panel](https://wordpress.org/support/topic/javascript-not-working-in-admin-panel/)
 *  [debugger777](https://wordpress.org/support/users/debugger777/)
 * (@debugger777)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/javascript-not-working-in-admin-panel/#post-2452188)
 * Hi elbeomar,
    I am on that issue,can you send me the files.Your timely help is
   much appreciated at this point of urgency.
 * Thanks
 * debugphp[at]gmail[dot]com

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