#btn_register {
display:none;
}
#popup_tools {
display:block !important;
}
I managed to get the login button disabled but not the register button, even though i disabled registration in the general configuration.
Hi
Please try adding this code to the template.css:
- Code: Select all
#popup_tools {
display:block !important;
}
[/center]
<?php if($this->countModules('login')) : ?>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>
<?php endif; ?>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>
<?php
$user =& JFactory::getUser();
// getting User ID
$userID = $user->get('id');
$register_bool = ($this->_tpl->params->get("register_button",1) && ((!isset($_GET['task']) || !isset($_GET['option'])) || ((isset($_GET['task']) && $_GET['task'] != 'register') || (isset($_GET['option']) && $_GET['option'] != 'com_user'))) && $userID == 0);
?>
<!-- MAIN NAVIGATION -->
<?php $this->loadBlock('mainnav') ?>
<!-- //MAIN NAVIGATION -->
<div id="gk-header">
<?php if($this->countModules('breadcrumb') || ( (($this->_tpl->params->get('login_button') == 1) && $this->countModules('login')) || $register_bool || ($this->_tpl->params->get('tools_button') == 1) ) ) : ?>
<div id="breadcrumbs">
<?php if($this->countModules('breadcrumb')) : ?>
<div id="gk-breadcrumbs">
<jdoc:include type="modules" name="breadcrumb" style="raw" />
</div>
<?php endif; ?>
<?php if( (($this->_tpl->params->get('login_button') == 1) && $this->countModules('login')) || $register_bool || ($this->_tpl->params->get('tools_button') == 1) ) : ?>
<div id="gk-tools">
<div>
<?php if($this->_tpl->params->get('login_button') == 1 && $this->countModules('login')) : ?>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>
<?php endif; ?>
<?php if($register_bool) : ?>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><?php echo JText::_('GK_REGISTER'); ?></a>
<?php endif; ?>
<?php if($this->_tpl->params->get('tools_button') == 1) : ?>
<a href="#" id="btn_tools"><?php echo JText::_('GK_TOOLS'); ?></a>
<div class="gk_hide">
<div class="gk_popup-hide" id="popup_tools">
<?php $this->loadBlock('usertools/tools') ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<!-- POPUPS -->
<?php $this->loadBlock('usertools/login'); ?>
<?php $this->loadBlock('usertools/register'); ?>
<!-- //POPUPS -->
</div>
<?php endif; ?>
<?php if( $this->countModules('banner2') ): ?>
<div id="banner2" class="head clearfix">
<jdoc:include type="modules" name="banner2" style="none" />
</div>
<?php endif; ?>
<jdoc:include type="message" />
<?php if($this->countModules('header1 or header2')) : ?>
<div class="static clearfix">
<?php
$h_class = '';
if($this->countModules('header1 and header2'))
{
$h1_width = (float) $this->_tpl->params->get("header1");
$h2_width = (($this->isIE()) ? 100.0 : 100.0) - $h1_width;
$h_class = ' both';
}
else
{
$h1_width = $h2_width = 100;
}
?>
<div id="header" class="head clearfix">
<?php if($this->countModules('header1')) : ?>
<div id="header1" class="header<?php echo $h_class; ?>" style="width:<?php echo $h1_width; ?>%;">
<jdoc:include type="modules" name="header1" style="gavickpro" />
</div>
<?php endif; ?>
<?php if($this->countModules('header2')) : ?>
<div id="header2" class="header<?php echo $h_class; ?>" style="width:<?php echo $h2_width; ?>%;">
<jdoc:include type="modules" name="header2" style="gavickpro" />
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</div>
<?php if( $this->countModules('banner3') ): ?>
<div id="banner3" class="head clearfix">
<jdoc:include type="modules" name="banner3" style="none" />
</div>
<?php endif; ?>
<?php if( (($this->_tpl->params->get('login_button') == 1) && $this->countModules('login')) || $register_bool || ($this->_tpl->params->get('tools_button') == 1) ) : ?>
<div id="gk-tools">
<div>
<?php if($this->_tpl->params->get('login_button') == 1 && $this->countModules('login')) : ?>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>
<?php endif; ?><?php if( (($this->_tpl->params->get('login_button') == 1) && $this->countModules('login')) || $register_bool || ($this->_tpl->params->get('tools_button') == 1) ) : ?>
<div id="gk-tools">
<div>
<a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>