I used JomSocial 2.4.1 with GK Musicity.
and I would like to used JomSocial register form for gk-Register popup module not com_users form.
How to solve its? How to override?
Cheers.
normanUK wrote:For joomla 2.5
Find File: \templates\gk_twn2\layouts\blocks\logo.php
Find Lines: 46 to 57 which is below
- Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
<div id="gkButtons">
<div>
<?php if(GK_LOGIN) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=login" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
<?php endif; ?>
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
Replace with below
- Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
<div id="gkButtons">
<div>
<?php if(GK_LOGIN) : ?>
<a href="<?php echo JRoute::_( 'index.php?option=com_community' ); ?>" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
<?php endif; ?>
<?php if(GK_REGISTER) : ?>
<a href="<?php echo JRoute::_( 'index.php?option=com_community&view=register' ); ?>" id="btnRegister"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
Find File: \templates\gk_twn2\js\gk.scripts.js
Delete Lines: 38 to 96 Do not delete line 97 , we are just removing login and register popup functions as we are not using it anymore as well as to prevent IE7 users having problems.
From:
- Code: Select all
delete from 38 - // login popup
up to line 96 - }
dont delete line 97 - // nsp header suffix improvement ;)
To 121261: Please try last edit removing script popup effect as we are not using it.
Thats it. See you around...
