Disable Create An Account link BUT allow registration Topic is solved
-
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Feb 16, 2017 8:32 am
Disable Create An Account link BUT allow registration
Hello
This is proving rather frustrating for something that feels like it should be simple!
So, I want to allow registration through the HIKASHOP registration form, so people can sign up as affiliates at the same time. But...
If I turn off the Joomla! allow registration function (users -> options), then no registration is allowed.
How do I turn off the Create An Account link in the Joomla! login form, while still allowing registrations?
BTW, have spent time looking through Hikashop forums... no joy. Everything points back to using the Joomla! login module.
Many thanks
jo
This is proving rather frustrating for something that feels like it should be simple!
So, I want to allow registration through the HIKASHOP registration form, so people can sign up as affiliates at the same time. But...
If I turn off the Joomla! allow registration function (users -> options), then no registration is allowed.
How do I turn off the Create An Account link in the Joomla! login form, while still allowing registrations?
BTW, have spent time looking through Hikashop forums... no joy. Everything points back to using the Joomla! login module.
Many thanks
jo
- Webdongle
- Joomla! Master
- Posts: 39325
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Disable Create An Account link BUT allow registration
Create a Template override and edit out the code that displays the link.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.
-
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Feb 16, 2017 8:32 am
Re: Disable Create An Account link BUT allow registration
Okay, thanks ... can you advise;
Here's the code for the relevant part of the mod_login/tmpl/default.php
<?php if ($usersConfig->get('allowUserRegistration')) : ?>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?> <span class="icon-arrow-right"></span></a>
</li>
<?php endif; ?>
How do I edit out this code as suggested above?
Many thanks
Jo
Here's the code for the relevant part of the mod_login/tmpl/default.php
<?php if ($usersConfig->get('allowUserRegistration')) : ?>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?> <span class="icon-arrow-right"></span></a>
</li>
<?php endif; ?>
How do I edit out this code as suggested above?
Many thanks
Jo
-
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Feb 16, 2017 8:32 am
Re: Disable Create An Account link BUT allow registration
Hi,
There is no style connected to this module, screenshot attached.
Can anyone please advise, how do I get rid of the 'Create An Account' link
Many thanks
There is no style connected to this module, screenshot attached.
Can anyone please advise, how do I get rid of the 'Create An Account' link
Many thanks
You do not have the required permissions to view the files attached to this post.
- toivo
- Joomla! Master
- Posts: 13126
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Zagreb, Croatia
Re: Disable Create An Account link BUT allow registration
Copy the file mod_login/tmpl/default.php to the folder templates/your_default_template/html/mod_login. Edit the file in that folder and remove the six lines you posted before. That will do the trick.
More about template overrides:
How to override the output from the Joomla! core
Creating Overrides in Template Manager
More about template overrides:
How to override the output from the Joomla! core
Creating Overrides in Template Manager
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Feb 16, 2017 8:32 am
Re: Disable Create An Account link BUT allow registration
Thanks Toivo, that almost got it!
The 'Create An Account' was gone, but the alignment of the whole module was thrown out. And the page ended up with a side-wise scroll.
It's here: https://portableacousticbaffle.com/affiliates
Would you mind taking a quick look. I'm not sure why it would have done that. I only deleted the six lines between the phpif and endif
Many thanks
jo
The 'Create An Account' was gone, but the alignment of the whole module was thrown out. And the page ended up with a side-wise scroll.
It's here: https://portableacousticbaffle.com/affiliates
Would you mind taking a quick look. I'm not sure why it would have done that. I only deleted the six lines between the phpif and endif
Many thanks
jo
- toivo
- Joomla! Master
- Posts: 13126
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Zagreb, Croatia
Re: Disable Create An Account link BUT allow registration
Removing those six lines, including the phpif and endif lines, does not affect anything else. Are you sure nothing else got changed in the override file default.php?
Toivo Talikka, Global Moderator
- Webdongle
- Joomla! Master
- Posts: 39325
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Disable Create An Account link BUT allow registration
I can not see your image clearly as you have not attached it correctly
The lines to remove are
The lines to remove are
Code: Select all
<?php if ($usersConfig->get('allowUserRegistration')) : ?>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?> <span class="icon-arrow-right"></span></a>
</li>
<?php endif; ?>
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.
-
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Feb 16, 2017 8:32 am
Re: Disable Create An Account link BUT allow registration
Hi, yes absolutely sure. Have now done it a couple of times and keep getting the same response.
Wonder if it's anything to do with the t4 blank template I'm using?! As it's not supposed to get that result, only thing I can think of.
hummm, will keep trying. Thanks for the help.
Jo
Wonder if it's anything to do with the t4 blank template I'm using?! As it's not supposed to get that result, only thing I can think of.
hummm, will keep trying. Thanks for the help.
Jo
-
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Feb 16, 2017 8:32 am
Re: Disable Create An Account link BUT allow registration
Yeah, thanks webdongle, that's what I did.
No joy! Link gone, as needed. Now template is all out of alignment.
Don't know why, but have to figure out so.... back at it
Cheers,
No joy! Link gone, as needed. Now template is all out of alignment.
Don't know why, but have to figure out so.... back at it
Cheers,
-
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Feb 16, 2017 8:32 am
Re: Disable Create An Account link BUT allow registration
Beginning to feel like your Einstein quote webdongle!
- toivo
- Joomla! Master
- Posts: 13126
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Zagreb, Croatia
Re: Disable Create An Account link BUT allow registration
Removing those lines in a template override using Protostar works perfectly.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Feb 16, 2017 8:32 am
Re: Disable Create An Account link BUT allow registration
Okay, thanks Toivo. Have had no response on the forum for t4 framework so have abandoned it. Am trying another workaround.
Thanks for the help.
Thanks for the help.