test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • hoknight Friend
    #904196

    Hi,

    How to change the tab of Member login as a default tab? When our user clicking the JA Login button on right top.

    Thanks


    1. ScreenShot1044
    pavit Moderator
    #904241

    Hi

    Open this file /templates/ja_playstore/html/mod_jalogin/default.php and around line 190 find this code

    
            <?php
            $option = JRequest::getCmd('option');
            $task = JRequest::getCmd('task');
            if($option!='com_user' && $task != 'register' && $params->get('show_register_form', 1)) : ?>
            <li>
                <a class="register-switch" href="#" data-toggle="modal" data-target="#ja-login-form" >
                    <?php echo JText::_('TPL_SIGNUP'); ?>
                </a>
            </li>
            <?php else : ?>
            <li>
                <a class="login-switch" href="#" data-toggle="modal" data-target="#ja-login-form" title="<?php echo JText::_('TXT_LOGIN');?>">
                    <?php echo JText::_('TXT_LOGIN');?>
                </a>
            </li>
            <?php endif; ?>

    Change it to :

            <?php
            $option = JRequest::getCmd('option');
            $task = JRequest::getCmd('task');
            if($option!='com_user' && $task != 'register' && $params->get('show_register_form', 1)) : ?>
            <li>
                <a class="login-switch" href="#" data-toggle="modal" data-target="#ja-login-form" title="<?php echo JText::_('TXT_LOGIN');?>">
                    <?php echo JText::_('TXT_LOGIN');?>
                </a>
            </li>
            <?php else : ?>
            <li>
                <a class="register-switch" href="#" data-toggle="modal" data-target="#ja-login-form" >
                    <?php echo JText::_('TPL_SIGNUP'); ?>
                </a>
            </li>
            <?php endif; ?>
        <?php endif; ?>

    In this way 2 tabs are inverted

    P.S.

    First to edit it save a copy of the file

    Best regards

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

This topic contains 1 reply, has 2 voices, and was last updated by  pavit 8 years, 8 months ago.

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