Disable Create An Account link BUT allow registration Topic is solved

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Jo-wtw
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Feb 16, 2017 8:32 am

Disable Create An Account link BUT allow registration

Post by Jo-wtw » Thu Oct 29, 2020 2:05 pm

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

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 39210
Joined: Sat Apr 05, 2008 9:58 pm

Re: Disable Create An Account link BUT allow registration

Post by Webdongle » Thu Oct 29, 2020 2:21 pm

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.

Jo-wtw
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Feb 16, 2017 8:32 am

Re: Disable Create An Account link BUT allow registration

Post by Jo-wtw » Thu Oct 29, 2020 2:55 pm

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

Jo-wtw
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Feb 16, 2017 8:32 am

Re: Disable Create An Account link BUT allow registration

Post by Jo-wtw » Thu Oct 29, 2020 3:48 pm

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
You do not have the required permissions to view the files attached to this post.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12882
Joined: Thu Feb 15, 2007 5:48 am
Location: Zagreb, Croatia

Re: Disable Create An Account link BUT allow registration

Post by toivo » Thu Oct 29, 2020 4:23 pm

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
Toivo Talikka, Global Moderator

Jo-wtw
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Feb 16, 2017 8:32 am

Re: Disable Create An Account link BUT allow registration

Post by Jo-wtw » Thu Oct 29, 2020 4:48 pm

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

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12882
Joined: Thu Feb 15, 2007 5:48 am
Location: Zagreb, Croatia

Re: Disable Create An Account link BUT allow registration

Post by toivo » Thu Oct 29, 2020 5:49 pm

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

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 39210
Joined: Sat Apr 05, 2008 9:58 pm

Re: Disable Create An Account link BUT allow registration

Post by Webdongle » Thu Oct 29, 2020 10:17 pm

I can not see your image clearly as you have not attached it correctly

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.

Jo-wtw
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Feb 16, 2017 8:32 am

Re: Disable Create An Account link BUT allow registration

Post by Jo-wtw » Fri Oct 30, 2020 9:55 am

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

Jo-wtw
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Feb 16, 2017 8:32 am

Re: Disable Create An Account link BUT allow registration

Post by Jo-wtw » Fri Oct 30, 2020 9:57 am

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,

Jo-wtw
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Feb 16, 2017 8:32 am

Re: Disable Create An Account link BUT allow registration

Post by Jo-wtw » Fri Oct 30, 2020 9:58 am

Beginning to feel like your Einstein quote webdongle!

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12882
Joined: Thu Feb 15, 2007 5:48 am
Location: Zagreb, Croatia

Re: Disable Create An Account link BUT allow registration

Post by toivo » Fri Oct 30, 2020 1:35 pm

Removing those lines in a template override using Protostar works perfectly.
Toivo Talikka, Global Moderator

Jo-wtw
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Feb 16, 2017 8:32 am

Re: Disable Create An Account link BUT allow registration

Post by Jo-wtw » Fri Oct 30, 2020 3:48 pm

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.


Post Reply

Return to “Administration Joomla! 3.x”