For information regarding missing buttons:
Template does following checks
1 - For Login button, template checks if login module is published in login position then displays the button.
2 - For Register button, template checks if mod_gk_register module is published in register position then displays the button.
In same file below you will see codes surrounding login and register buttons which is as below, removing or adding them allows above checks/conditions.
- Code: Select all
<?php if(GK_LOGIN) : ?>
Login button displayed if above condition is true.
<?php endif; ?>
<?php if(GK_REGISTER) : ?>
Register button displayed if above condition is true.
<?php endif; ?>
--------------------------------
Now follow below for your hack...
First backup your file:
Disable login module from joomla admin to disable pop-up effect...
Find and edit file "templatesgk_finance_businesslayoutsblocksnav.php"
Line 48 to 58 which is below
- Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
<div id="gkButtons">
<?php if(GK_LOGIN) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=login" id="btnLogin"><?php echo ($userID > 0) ? JText::_('TPL_GK_LANG_LOGOUT') : JText::_('TPL_GK_LANG_LOGIN'); ?></a>
<?php endif; ?>
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
<?php endif; ?>
</div>
<?php endif; ?>
Change it to : Please note below does not do any checks whether register is allowed or not.
- Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
<div id="gkButtons">
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_community" id="btnLogin"><?php echo ($userID > 0) ? JText::_('TPL_GK_LANG_LOGOUT') : JText::_('TPL_GK_LANG_LOGIN'); ?></a>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_community&view=register" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
</div>
<?php endif; ?>
or instead Change it to below which checks whether register is allowed or not:
- Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
<div id="gkButtons">
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_community" id="btnLogin"><?php echo ($userID > 0) ? JText::_('TPL_GK_LANG_LOGOUT') : JText::_('TPL_GK_LANG_LOGIN'); ?></a>
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_community&view=register" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
<?php endif; ?>
</div>
<?php endif; ?>