remove tools and register btn at the top

GK User
Wed Jan 11, 2012 2:40 pm
Hi,
I am using the template gk_sporter on Joomla 1.7, I need to disable/remove tools and register buttons at the top. I turn off register on module manager but it did not help.

Thanks for all help!

Best regards
Joomlis
User avatar
Expert Boarder

GK User
Wed Jan 11, 2012 3:19 pm
Hi,

- Tool: in template setting, change Font-size switcher to "Always disabled".

- Login: Disable login module at login position.

- Register: Disable GK Register module.

Other solution to remove all:

- Open file: \templates\gk_sporter\layouts\default.php

- Remove this code:
Code: Select all
<div id="gkButtons">
         <?php if(GK_LOGIN) : ?>
            <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=login" id="btnLogin"><span><?php echo ($userID > 0) ? JText::_('TPL_GK_LANG_LOGOUT') : JText::_('TPL_GK_LANG_LOGIN'); ?></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; ?>
             
        <?php if($this->getToolsOverride()) : ?>
                        <a href="#" id="btnTools"><span><?php echo JText::_('TPL_GK_LANG_TOOLS_FRONT'); ?></span></a>
           
        <div class="gkHide">
           <div class="gkPopupHide" id="popupTools">
              <?php $this->loadBlock('tools/tools'); ?>
           </div>
        </div>
                 
        <?php endif; ?>
   
       </div>   
User avatar
Platinum Boarder

GK User
Wed Jan 11, 2012 3:32 pm
You can try this in your override.css file...
Code: Select all
#gkButtons a#btnTools, a#btnRegister {
    display: none;
}

That will hide the links the register option will still be available via the direct url.
User avatar
Expert Boarder

GK User
Wed Jan 11, 2012 4:11 pm
Thanks so much, I removed the code from:
\templates\gk_sporter\layouts\default.php

Thanks!

Best regards
Joomlis


Don Lee wrote:Hi,

- Tool: in template setting, change Font-size switcher to "Always disabled".

- Login: Disable login module at login position.

- Register: Disable GK Register module.

Other solution to remove all:

- Open file: \templates\gk_sporter\layouts\default.php

- Remove this code:
Code: Select all
<div id="gkButtons">
         <?php if(GK_LOGIN) : ?>
            <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=login" id="btnLogin"><span><?php echo ($userID > 0) ? JText::_('TPL_GK_LANG_LOGOUT') : JText::_('TPL_GK_LANG_LOGIN'); ?></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; ?>
             
        <?php if($this->getToolsOverride()) : ?>
                        <a href="#" id="btnTools"><span><?php echo JText::_('TPL_GK_LANG_TOOLS_FRONT'); ?></span></a>
           
        <div class="gkHide">
           <div class="gkPopupHide" id="popupTools">
              <?php $this->loadBlock('tools/tools'); ?>
           </div>
        </div>
                 
        <?php endif; ?>
   
       </div>   
User avatar
Expert Boarder


cron