Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • mybne Friend
    #1040247

    I would like to remove "Forgot username and password"links from the login form. How can I do that?

    Pankaj Sharma Moderator
    #1040261

    Hi
    Open template/ja_university/com_user/login/default_login.php file
    find and remove below code

    <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>

    Hope it helps.

    Regards

    mybne Friend
    #1040387

    Hi,

    I tried this setting prior posting, this has no effect unfortunately. Thanks

    Pankaj Sharma Moderator
    #1040503

    Hi
    Kindly share the below details in Private reply.

    1. Page url on which u want to remove these fields
    2. Site super user login details

    Regards

    mybne Friend
    #1040537
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #1040543

    Hi
    This is default Joomla login module.
    I created an override for this module on your site
    file "/html/mod_login/default.php" in template "ja_university_t3".

    And I removed below code.

        <li>
                        <a href="<?php echo JRoute::_('index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute()); ?>">
                        <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a>
                    </li>
                    <li>
                        <a href="<?php echo JRoute::_('index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute()); ?>">
                        <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>
                    </li>

    Now u can check your site.

    Regards

    mybne Friend
    #1040619

    Thanks again Pankaj it worked.
    I am wondering how did you override the module?

    Pankaj Sharma Moderator
    #1040628

    You are welcome!
    In Joomla 3.x you can edit the create new file and folder in template folder from the Template Manager open the template.

    Regards

    mybne Friend
    #1040791

    Why I am asking is I have to replicate your solution to the production site. I keep looking template but I still couldn’t find how you did 🙂 Did you mean Theme Magic? I checked all options there but didn’t notice anything relevant to this bit. Can you give me path please?

    Pankaj Sharma Moderator
    #1040826

    Hi
    Open "/html/mod_login/default.php" in template "ja_university_t3".
    And copy the mod_login folder to your live site with same path.

    Regards

Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 9 replies, has 2 voices, and was last updated by  Pankaj Sharma 7 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum