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>
phoca redirect login page - remove forgot password/username
-
- Phoca Newbie
- Posts: 3
- Joined: 10 Feb 2013, 00:51
phoca redirect login page - remove forgot password/username
Last edited by Chrochot on 19 Feb 2013, 21:04, edited 3 times in total.
- Jan
- Phoca Hero
- Posts: 48587
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: phoca redirect login page - remove forgot password/usern
Ok, thank you for the info about the solution.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 10 Feb 2013, 00:51
Re: phoca redirect login page - remove forgot password/usern
Jan, I solved only part of it - a text change. I am still unable to hide "forgot your password/username". I tried everything I am capable of. Would you help me with a hint, please? Thank you very much.
-
- Phoca Newbie
- Posts: 3
- Joined: 10 Feb 2013, 00:51
Re: phoca redirect login page - remove forgot password/usern
OK solved it.
Post below the steps, maybe it will help someone. I am sure there are better(more qualified) solutions. The solution is not tested yet. But I hope it will not cause any trouble since I do not need both "Forgot your password?" and "Forgot your username? at all.
Before deleting the php code I strongly recommend to rename the original file and keep it as backup and go-back.
Task
Change the login module head text on the redirected login page (displayed in case a user is not authorised to download the file):
Solution
Locate the text chain you would like to replace in the language folder/file. In my case it was the following file
webroot\language\cs-CZ\cs-CZ.com_phocadownload.ini
Task
Remove/hide the links "Forgot your password?" and "Forgot your username?" from the redirected login page (displayed in case a user is not authorised to download the file)
Solution
Please note that a change of the login module does NOT help. NO influence even if you customize the default login module or put another one through an extension. Phocadownload calls the procedures COM_USERS_LOGIN_RESET and COM_USERS_LOGIN_REMIND.
Through the text search I found these procedures in the following files
webroot\components\com_users\views\login\tmpl\default_login.php
webroot\plugins\system\jat3\jat3\base-themes\default\html\com_users\login\default_login.php
Trial and error method showed that the file to be changed is the one related to the ja3 (I believe somehow related to the joomlart template I use - purity ii), i.e. webroot\plugins\system\jat3\jat3\base-themes\default\html\com_users\login\default_login.php
So that I deleted following part (marked red)
<div>
.<ul>
....<li>
......<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
......<?php echo JText::_('COM_USERS_LOGIN_RESET'); ?></a>
..</li>
..<li>
......<a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
......<?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?></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::_('COM_USERS_LOGIN_REGISTER'); ?></a>
..</li>
.<?php endif; ?>
.</ul>
</div>
.... and links "Forgot you password?" and "Forgot your username?" disappeared.
Cheers

Before deleting the php code I strongly recommend to rename the original file and keep it as backup and go-back.
Task
Change the login module head text on the redirected login page (displayed in case a user is not authorised to download the file):
Solution
Locate the text chain you would like to replace in the language folder/file. In my case it was the following file
webroot\language\cs-CZ\cs-CZ.com_phocadownload.ini
Task
Remove/hide the links "Forgot your password?" and "Forgot your username?" from the redirected login page (displayed in case a user is not authorised to download the file)
Solution
Please note that a change of the login module does NOT help. NO influence even if you customize the default login module or put another one through an extension. Phocadownload calls the procedures COM_USERS_LOGIN_RESET and COM_USERS_LOGIN_REMIND.
Through the text search I found these procedures in the following files
webroot\components\com_users\views\login\tmpl\default_login.php
webroot\plugins\system\jat3\jat3\base-themes\default\html\com_users\login\default_login.php
Trial and error method showed that the file to be changed is the one related to the ja3 (I believe somehow related to the joomlart template I use - purity ii), i.e. webroot\plugins\system\jat3\jat3\base-themes\default\html\com_users\login\default_login.php
So that I deleted following part (marked red)
<div>
.<ul>
....<li>
......<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
......<?php echo JText::_('COM_USERS_LOGIN_RESET'); ?></a>
..</li>
..<li>
......<a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
......<?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?></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::_('COM_USERS_LOGIN_REGISTER'); ?></a>
..</li>
.<?php endif; ?>
.</ul>
</div>
.... and links "Forgot you password?" and "Forgot your username?" disappeared.
Cheers

- Jan
- Phoca Hero
- Posts: 48587
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: phoca redirect login page - remove forgot password/usern
Ok, great to hear it, thank you for the guide.
Jan
Jan
If you find Phoca extensions useful, please support the project