By optura on
all links in drupal have 'on' and 'off' switch, except two links on the bottom of the 'log in' block
- one of them is 'create new account' and the other is 'request new password'
i'm seeking out help should someone know how to make them invisible
sincerely ed
Comments
User settings?
Removing 'create new account', I assume you don't want anonymous users to be able to create a new account? If so, just go to admin > user settings and change the public registration setting to: "Only site administrators can create new user accounts".
To remove 'request new password', try one of the drupal.org search results. The first one listed looks promising.
login block links
thanks a lot, works as intended with the 'create account' / the removal is dictated by my attempt to use drupal cores in place of organic groups without moderators/
the other link solved too /allowed myself to paste the gentleman's (Dave)code
create info file:
; $Id$
name = Loginmod
description = This module changes the default login block so it doesn't contain the 'request new password' field.
core = 6.x
call it: loginmod.info
next create 2nd file:
call it:loginmod.module - place both in all/module/logmodule - it works as intended too
thanks once more, ed
Thx!
Works like a charm!
The original function from the user.module for reference. You can alter the form as you like together with the above module.
What about...
What about if I DO want users to be able to create their own accounts, but just not THIS way? The site I'm developing has alternative ways to create account via various actions, but we don't want users to create accounts without having done those actions. As in, no vanilla accounts. So, I want to remove the "create new account" link in that menu without using the admin setting that disables that ability site-wide. Thoughts?
EDIT: yes.. if a user knew to navigate to /user/register they could create an account -- but 98.9% of users won't think to do that, so I'm not too worried about the very slim savvy minority that know enough about sites do recognize Drupal and then force feed an account (this isn't for security reasons, its simply a requirement of the site that accounts be generated via participation, and simple registration isn't counted as participation)
you can make a custom module
in a custom module (in this example the module name is "custom"), you can simply paste the following snippet
you can also override the theming, but this should do it...
otherwise, use css
either visibility:hidden, or just display:none
This is not recommendable
This is not recommendable because if the user knows a little about Drupal or is a little curious, he can open his browser's developer tools and uncheck the "display: none;", allowing him to use (click) it.
Using css...
I removed those links via this css code:
#block-user-0 .item-list {
display:none;
}
Using CSS....
Please where do I put the code?
I would like to remove " Create new account"
Thanks.
This worked for me in bartik
This worked for me in bartik: Put the code somewhere in your theme's style.css file
#block-user-login .item-list li.first {
display:none;
}
If you want to remove same when the block is placed at the header region, use this code:
.region-header #block-user-login .item-list li.first {
display:none;
}
Goto:
Goto:
admin/config/people/accounts
under the "Registration and cancellation" please click the "Administrators only".
It's worked.
It's worked.
Thanks Jabastin Arul
login dashboard
how can i create custom url for my login