Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
hoknight Friend
hoknight
- Join date:
- July 2009
- Posts:
- 400
- Downloads:
- 128
- Uploads:
- 225
- Thanks:
- 110
- Thanked:
- 4 times in 4 posts
March 24, 2016 at 9:15 am #904196Hi,
How to change the tab of Member login as a default tab? When our user clicking the JA Login button on right top.
Thanks
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 24, 2016 at 10:01 am #904241Hi
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
1 user says Thank You to pavit for this useful post
AuthorPostsViewing 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