phoca redirect login page - remove forgot password/username
Posted: 19 Feb 2013, 03:40
hello,
I defined and use the alternative layout to the standard joomla login module so that the links "forgot your password", "forgot your username" are NOT displayed. The reason is that all user have the same login, that is defined by administrator. Therefore, the standard module bears the text that for login data the administrator should be contacted.
However, within phocadownload users not logged in are redirected to the login page. On that page the login module still shows "forgot your password", "forgot your username" and does not show the info about contacting the administrator.
Is there any way to solve it. I use purity ii template. I am not php skilled at all.
Thank you very much. Petr
EDIT1 - partly solved:
solved to change the text to contacting the administrator <- found the default text chain in the language file and change it
unsolved unwanted display of "...password/username". Although I removed below mentioned php part from
1) web/modules/mod_login/tmpl/default.php
2) plugin/system/ja3/ja3/base-themes/default/html/mod_login/default.php
original default.php files were renamed to default-original.php
which resulted into NOT show "forgot ..." even when I use joomla default login module. But on the Phoca login page is "forgot ..." still displayed.
<ul>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>
</li>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a>
</li>
<?php
$usersConfig = JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a>
</li>
<?php endif; ?>
</ul>
I defined and use the alternative layout to the standard joomla login module so that the links "forgot your password", "forgot your username" are NOT displayed. The reason is that all user have the same login, that is defined by administrator. Therefore, the standard module bears the text that for login data the administrator should be contacted.
However, within phocadownload users not logged in are redirected to the login page. On that page the login module still shows "forgot your password", "forgot your username" and does not show the info about contacting the administrator.
Is there any way to solve it. I use purity ii template. I am not php skilled at all.
Thank you very much. Petr
EDIT1 - partly solved:
solved to change the text to contacting the administrator <- found the default text chain in the language file and change it
unsolved unwanted display of "...password/username". Although I removed below mentioned php part from
1) web/modules/mod_login/tmpl/default.php
2) plugin/system/ja3/ja3/base-themes/default/html/mod_login/default.php
original default.php files were renamed to default-original.php
which resulted into NOT show "forgot ..." even when I use joomla default login module. But on the Phoca login page is "forgot ..." still displayed.
<ul>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>
</li>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a>
</li>
<?php
$usersConfig = JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a>
</li>
<?php endif; ?>
</ul>