How to override some text in the login form located in a block put on a panel? I create a subtheme base on bartik theme.

Then I create a panel, and put the user login block to the panel.

I want to change some text in the default user login from.

I find the theme suggestion about how to override block: block--[region|[module|--delta]].tpl.php

So I try to create block--user--login.tpl.php, And try to type whatever word to this file:

111


when I visit the login form, still default, not changed.

I try to clear cache, can not work too.

EDIT:

I paste the follow picture for better explain.


the 111 is a login form block in page, the right form is a login form block in a panel.





this is my block--user--login.tpl.php file
This sounds like a job for hook_form_alter() and it can be used from either a custom module (eg, MODULENAME_form_alter()) or in this case probably more easily from your theme, eg, something along these lines inside your template.php file:

function THEMENAME_form_alter(&amp;$form, &amp;$form_state, $form_id) {

  switch ($form_id) {

    case 'user_login_block':

      // drupal_set_message('&lt;pre&gt;' . print_r($form, TRUE) . '&lt;/pre&gt;');  // uncomment to see what you have to work with

      $form['name']['#title']='Enter UserID here'; // originally "Username or e-mail"
      $form['pass']['#title']='Enter Secret here'; // originally "Password"

      break;

    // other form ids go here

  }

}


The above (after clearing caches) will turn this:



into this:



If you need to change other text in the form, you can uncomment the drupal_set_message() and look in the form to see what you have to work with and change it appropriately.

ADDITION:

If you want to get rid of both of the links, eg, the Create new account and Request new password you can either do:

unset($form['links']);


or set the access to them to FALSE, eg:

$form['links']['#access']=FALSE;


Lots more information about this can be found in the Drupal Form API Reference.  I would look into the #weight key for changing the position/ordering of elements in the form.