How to remove Login|Register from Finance Business

GK User
Sat Jul 09, 2011 9:26 am
Hi,
i tried to remove the Login|Register buttons on "Financial Business" Joomla 1.5 Version. But is is not in the modules. Does anyone know how to remove that. Or perhaps to replace with something else like GoogleTranslate (don´t laugh ... :-) )

Hope to get help soon ... many thanks

Jerry
User avatar
Fresh Boarder

Konrad M
Mon Jul 11, 2011 7:02 am
Hi
Try unpublish two modules: GK Register and Log-in. Should help ;)
User avatar

GK User
Wed Aug 31, 2011 9:01 am
This doesn't work
User avatar
Fresh Boarder

GK User
Wed Aug 31, 2011 9:57 am
Unpublishing login module should work. To hide register use override.css and put into
Code: Select all
a#btn_register
{
  display:none;
}

Remember to turn on the override.css in template settings.
User avatar
Senior Boarder

GK User
Sat Sep 03, 2011 2:12 pm
You can try to find the registred option in template maneger.
User avatar
Senior Boarder

teitbite
Mon Sep 05, 2011 1:15 pm
Hi

Or remove it directly from php file :)

layouts/blocks/top.php
User avatar
Moderator

GK User
Tue Sep 06, 2011 3:34 am
Ruranski wrote:Unpublishing login module should work. To hide register use override.css and put into
Code: Select all
a#btn_register
{
  display:none;
}

Remember to turn on the override.css in template settings.


This code didn't work.

axell_moto wrote:You can try to find the registred option in template maneger.

The only option for this is in the mobile menu section in the template manager.
User avatar
Fresh Boarder

GK User
Tue Sep 06, 2011 3:58 am
teitbite wrote:Hi

Or remove it directly from php file :)

layouts/blocks/top.php


I found the reference in layouts/blocks/nav.php and I removed
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; ?>
to get rid of it. However I think it should be in managed in the template manager and/or the module manager.
User avatar
Fresh Boarder

teitbite
Thu Sep 08, 2011 8:34 am
Hi

Unpublishing the module and disabling in template settings is working, I've just checked it, but hidding it with CSS is better (faster) I think. Please allow using of override.css file in template settigs so the code I gave You will work.
User avatar
Moderator

GK User
Thu Sep 08, 2011 11:27 am
teitbite wrote:Hi

Unpublishing the module and disabling in template settings is working, I've just checked it, but hidding it with CSS is better (faster) I think. Please allow using of override.css file in template settigs so the code I gave You will work.

I just realized the OP said he was on 1.5, I am on 1.7 and disabling the modules didn't work.
The only module in the "register" position is mod_gk_register. That was already set to disabled already upon install. I enabled and disabled it just to see what was going on with it, but no change.
And the login module in the "login" position wouldn't go away when I would disable it.

CSS overrides are enabled and working for me, but the CSS provided in the other post didn't work.
User avatar
Fresh Boarder

teitbite
Thu Sep 08, 2011 5:29 pm
Hi

Try this code:

Code: Select all
#gk-buttons {
display:none !important;
}
User avatar
Moderator

GK User
Thu Sep 15, 2011 1:56 pm
i'm also on 1.7 and just disabling the module mod_gk_register worked for me - it removed the Register button.

CSS codes provided didnt work for 1.7

Edit: on Joomla 1.7, use this code to get rid of the buttons:
Code: Select all
#gkButtons {
display:none !important;
}
User avatar
Senior Boarder


cron