You can hide the user registration form from appearing at the bottom of the core login module in Joomla. This mans, your visitors cannot register as new users on your website. With the Joomla core login module, you can allow users to log into your Joomla site, but this Module also contains a "Create an account" link that will allow your website visitors/ users to register on your site. Some users do not want the Create an Account” link and it can be removed. This article explains how to disable this feature and disallow new users from creating an account.
Source: https://www.todhost.com/knowledgebase/785/How-to-hide-the-default-user-registration-form-in-Joomla.html
How to Hide the "Create an account" Link
Disablng From Joomla Admin
To begin, log into the administration area (the back end) of your Joomla site, click on the User Manager.
Click on the "Options" button in the toolbar.
Under the "Component" tab, find the "Allow User Registration" option, and turn this off by selecting "No". There are many other options here for configuring your user accounts and this area is worth exploring. Be sure of the setting changes you make and how they affect your website. For instance, it is good to enable the option allowing new users to activate their accounts. This helps you deal with spam registrations and emails. Remember to save your work.
Return to the front end of the site, refresh the page, and the "Create an account" link will be removed. Current users will still be able to log into the account.
Effect on Joomla Registration Menu
If you have created a Joomla registration meneu linked to the Joomla Core Login and you disallow new user registrations, the menu item won't disappear, but it will redirect users to the login form instead of the registration form.
Removing the Link by Editing The Joomlla Code
For removing link from login module edit the default.php template of this module and remove the code
Code:
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a>
Rather than making changes in the core template its better if you override the module template and then make changes into that file so that your changes will be maintained even when you upgrade Joomla.
How to Create an Overwride
One of useful features of the new Template Manager is how easy it makes overrides. Previously it was almost impossible to get a clean overview of what override possibilities were available on a Joomla site.
To create override, do the following:
Click the "Create Overrides" tab and the new Template Manager presents all of the possibilities in one neat list:
Click on a component and you'll get all the possibilities inside that one component. In this following example, I clicked on com_content:
Click on one of the possibilities, for example "article", and see.
Go back to the Editor screen and your override files will be available for editing:
Getting a Started with overrides
Joomla documentation has provided this guide on getting started with overwride. If you are new to Joomla! development, then it is probably easiest to start with an existing view, and try modifying it to get what you want. To do this, you should make a copy of the existing view in the html directory of your template, and then modify the copy.
The directory structure you need is:
TEMPLATE_NAME/html/EXTENSION_NAME/VIEW_NAME/FILE_NAME.php
For example, if you want to change the way that the 'Article' view displays a com_content article, then you should copy the file at :
PATH_TO_JOOMLA/components/com_content/views/article/tmpl/default.php
to
TEMPLATE_NAME/html/com_content/article/default.php
(note the slight difference in directory structure)
Similarly, if you want to change how the mod_login Module is displayed, then you should copy :
PATH_TO_JOOMLA/modules/mod_login/tmpl/default.php
to
TEMPLATE_NAME/html/mod_login/default.php
Joomla! comes pre-packaged with a frontend template called Beez. Beez utilizes template overrides to produce a table-less layout for faster, smoother, and semantically correct markup. To see how it's done, locate your Joomla! installation's template directory, and you'll notice the Beez template. Inside the Beez template directory, you'll find a directory named html.
The entire directory structure is as follows:
/your_joomla/templates/Beez/html/
If you want to try modifying the overrides used in Beez, you could simply copy and paste the Beez html directory into your own template's main directory. However you choose to make your override files, you will need to ensure that they are correctly installed with your template. To do this, you should add the following code to your template's templateDetails.xml file (in between the <files> and </files> tags):
<folder>html</folder>
The above code in essence lets the Joomla! package installer know that there are files to extract, and that they are part of the template as a whole.
Hope you found this article useful. Let us know by clicking the yes/no button below.
0 comments:
Make sure you comment below, share your thought, feel free to ask us anything, we will reply immediately
Thank you for being part of gistlife