By norwasian on
I'm trying to remove the "create new account" Link in the login block, but I can't find the file anywhere. Can someone tell me where it is? I know basic php and html, so I think that the way to get rid of it would be to go into the code, and find the link to q=user/register and delete it right? If I am wrong then please correct me.
Comments
=-=
you may have to disable the core login block and create a custom login block if you want that link removed
you might also try creating a custom tpl.php file for that specific block and removing what you don't want, Though I've only used the first of the two options to alter the login block on occasion.
both methods can be found in the theme developers guide of the handbooks.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Is there anyway to just go
Is there anyway to just go into the core login block and just remove the link? It seems overly complicated.
=-=
as far as I know, not without hacking core and thats never a good idea.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
assuming
assuming this is v4.7, the link should disappear if you go to administer | settings | users (in the menu) and set the first radio button "Only site administrators can create new user accounts.". i think; been awhile.
And in 5.x you can disable
And in 5.x you can disable it at /admin/user/settings
Ok, that made the link
Ok, that made the link disappear, but now a visitor can't register.
The point of this is I'm trying to make a site where people can come and see some content. But then then invited people will receive the login link and they could create their own account. I can't do this with the admin account creation because I need to do this on a mass scale. Its much simpler to send them links then to create a new account for each person.
I don't want to leave a login block on the main page because then people could just click create account and make it on their own. And I don't want just anyone to register.
Any solutions now that you know my situation better?
maybe
so you want them to register, but only when you send them the link? well, maybe a hybrid; do what VM said and disable the login block. when you want them to register, send them to /?q=user, which will still have the register tab (don't forget to re-enable the link). you would have to use the same path to login as admin, though.