Disabling 'Request new password' on Login block

duvien - April 9, 2008 - 23:40

Hi,

does anyone know how i can disable the 'request new password' link in the login box?

thanks,

Public registration settings

ray_223 - April 10, 2008 - 00:19

Public registration settings in "User Settings"

/admin/user/settings

Ray Smith
http://RaymondSmith.com

I have set it to 'Only site

duvien - April 10, 2008 - 01:22

I have set it to 'Only site administrators can create new user accounts.' but this does not remove the request for a password link or the page.

thanks,

---------- Personal blog | tutorials | photography -----------
Freelance web designer/developer: duvien.com

Use CSS

tks - April 10, 2008 - 01:55

In your the CSS for your theme, try this:

#block-user-0 .item-list {
   display: none;
}

That should hide all the links under the login form, not just the password one -- but since you're not using the "Create New Account" option anyway...

Yes, that works fine,

duvien - April 10, 2008 - 02:44

Yes, that works fine, however if i go to url: /user, there is a tab which still has the 'request a password'. is there no way to completely disable this. Also how does one override forms in template on Drupal 6 so it can be custom styled on it's own. There seems to be ways to override search form and comment form but not login form?

---------- Personal blog | tutorials | photography -----------
Freelance web designer/developer: duvien.com

Well, you could go into

tks - April 10, 2008 - 18:12

Well, you could go into user.module and find/disable that bit of code, but hacking core is a really bad practice.

And in theory, you should be able to override that function in either your theme or a custom module. That's real coding, though, and definitely out of my depth -- sorry...

Thanks, i know, i don't like

duvien - April 10, 2008 - 19:24

Thanks, i know, i don't like working with forms in Drupal. It's never an easy tasks. Something Drupal should really look into. But having said that it's complicated even for PHP developers to make it easy for themers to style any forms.

 
 

Drupal is a registered trademark of Dries Buytaert.