Deactivate "Sign In" link

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Jun 07, 2013 9:59 am
Reply with quote
Report this post
Hi,
how can I deactivate the "SignIn" link?

1) In the StartUp template: "Features/Register Link", I set to "disabled"
2) In Joomla 3.1. "User/User Registration", I set to "No"

But the link "SignIn" is still shown - see here: http://www.partner.scotialight.com/

How can I change that.



Furthermore, in the Login Module, if I set under options a text for "Text before", then no text is shown...
(Not sure, if this is also related to the Startup template)

Thx
User avatar
Fresh Boarder

GK User
Fri Jun 07, 2013 10:31 am
Reply with quote
Report this post
SignIn or Login?
User avatar
Moderator

GK User
Fri Jun 07, 2013 10:37 am
Reply with quote
Report this post
Cyberek wrote:SignIn or Login?


With SignIn, I meant the register page. I want to disable self registering of people.
This is now already deactivated, but in the login module, still the link "sign in" is shown...
User avatar
Fresh Boarder

GK User
Fri Jun 07, 2013 10:55 am
Reply with quote
Report this post
Please edit file:
/templates/gk_startup/layouts/blocks/tools/login.php
and replace line 16:
Code: Select all
<h3><?php echo JText::_(($userID == 0) ? 'TPL_GK_LANG_LOGIN' : 'TPL_GK_LANG_LOGOUT'); ?> <?php if($userID == 0) : ?><small><?php echo JText::_('TPL_GK_LANG_OR'); ?><a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=registration"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a></small><?php endif; ?></h3>


with:
Code: Select all
<h3><?php echo JText::_(($userID == 0) ? 'TPL_GK_LANG_LOGIN' : 'TPL_GK_LANG_LOGOUT'); ?></h3>


It will get rid of link to register.
User avatar
Moderator

GK User
Fri Jun 07, 2013 11:01 am
Reply with quote
Report this post
Or if You would like to be able to set register new users to on in future, use:
Code: Select all
<h3><?php echo JText::_(($userID == 0) ? 'TPL_GK_LANG_LOGIN' : 'TPL_GK_LANG_LOGOUT'); ?> <?php if($this->API->get('register_link') && $userID == 0) : ?><small><?php echo JText::_('TPL_GK_LANG_OR'); ?><a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=registration"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a></small><?php endif; ?></h3>

instead
User avatar
Moderator

GK User
Fri Jun 07, 2013 11:08 am
Reply with quote
Report this post
Great - that helped. Thanks!
User avatar
Fresh Boarder


cron