Hello,

I want to use a table instead of div for my login block.

The problem is that I can't find witch name to give to my template file which is supposed to override it.
I tried block-login.tpl.php. Doesn't work !

Usually, I use the Devel module when I have a doubt. But here the login block is shown only when I am logged in. And Devel doesn't work for anonymous !

Comments

tomaja’s picture

Linux4life

mikou’s picture

Hello Tomaja,

Thanks for your response, and sorry for this late answer. I just switch to some other problems in between :)

The problem is that the block-user-0.tpl.php involved at http://drupal.org/node/160164 does allow me to change the structure of the form.
VM then suggest this : http://drupal.org/node/19855

However, it is not really what I am looking for.

I want to change the rendering form this


<div class="form-item">
<label for="edit-name">Username: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="60" name="name" id="edit-name"  size="30" value="" tabindex="1" class="form-text required" />
<div class="description">enter your username</div>
</div>
<div class="form-item">
<label for="edit-pass">Password: <span class="form-required" title="This field is required.">*</span></label>
<input type="password" name="pass" id="edit-pass"  size="40"  tabindex="2" class="form-text required" />
<div class="description">enter your password</div>
</div>
<input type="hidden" name="form_id" id="edit-user-login" value="user_login"  />
<input type="submit" name="op" id="edit-submit" value="Log in"  tabindex="3" class="form-submit" />
<p><a class="textlink" href="?q=user/password">Forgotten your Password?</a></p>

To something like this :

<table>

<tr class="form-item">
<td>
<label for="edit-name">Username: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="60" name="name" id="edit-name"  size="30" value="" tabindex="1" class="form-text required" />
</td>
</tr>
<tr>

<tr class="form-item">
<td>
<label for="edit-pass">Password: <span class="form-required" title="This field is required.">*</span></label>
<input type="password" name="pass" id="edit-pass"  size="40"  tabindex="2" class="form-text required" />
</td>
<td>
<p><a class="textlink" href="?q=user/password">Forgotten your Password?</a></p>
</td>
</tr>

<tr><td>
<input type="submit" name="op" id="edit-submit" value="Log in"  tabindex="3" class="form-submit" />
</td></tr>

<input type="hidden" name="form_id" id="edit-user-login" value="user_login"  />
Haidee’s picture

hi there!

just wondering if you were able to solved this issue and kind enough to share your solution... i'm having this problem also, trying to theme(customize) the login block.

thanks

haidee

robbertnl’s picture