How do I disable Login/Register from top of page

Change your online store into modern look with myStore eCommerce VirtueMart Joomla template - discussion forum.
GK User
Sun Jul 18, 2010 5:04 am
How do I remove or disable the Login/Register from top of MyStore template?
I have been able to disable 'Login' from modules.
When I try to disable 'Register' from Modules It removes the 'Top Menu' as well.

How do I disable 'Register' without it disrupting the "Top Menu'?

Any support would be greatly appreciated. Thank you.
User avatar
Junior Boarder

GK User
Sun Jul 18, 2010 8:52 am
hmm that should not be a problem
... i just tried in my demo setup and both mod-gk-register and mod-login is disabled and top menu still there...

will need panel access to debug more...
User avatar
Platinum Boarder

teitbite
Mon Jul 19, 2010 5:49 pm
Hi

The easiest way is to hide it adding css:

Code: Select all
#btn_login,
#btn_register {
display:none;
}
User avatar
Moderator

GK User
Mon Jul 19, 2010 6:14 pm
i covered this in another thread. it's not the login, nor register that is the problem, it's the tools menu. when disabling the tools - the top menu goes. so you could just disable the login and register, and then add
Code: Select all
#gk-tools { display: none; }
User avatar
Platinum Boarder

GK User
Sun Aug 29, 2010 10:55 pm
Hi everbody

I have the same problem.
where should I add that codes?
User avatar
Fresh Boarder

GK User
Sun Aug 29, 2010 11:25 pm
Hi

This is our fault and it's easy to fix. Just follow this instructions.

Open the following file:

../templates/gk_mystore/layouts/blocks/toolbar.php

and replace this code:

Code: Select all
<?php if( GK_LOGIN || GK_REGISTER || GK_TOOLS) : ?>
<div id="gk-toolbar">   
   <?php if($this->countModules('topmenu')): ?>
   <div id="gk-top-menu">
      <jdoc:include type="modules" name="topmenu" style="none" />   
   </div>
   <?php endif; ?>
   
   <?php if($this->countModules('cart')) : ?>
   <div id="gk-items" style="float:right;">
      ( <strong>...</strong> <?php echo JText::_('GK_ITEMS'); ?> )
   </div>
   <div id="gk-cart">
      <a href="#" id="btn_cart"><span><?php echo JText::_('GK_CART'); ?></span></a>
   </div>
   <?php endif; ?>
   
   <?php if( GK_LOGIN || GK_REGISTER || GK_TOOLS ) : ?>
   <div id="gk-tools">
      <div>
         <?php if(GK_TOOLS) : ?>
         <a href="#" id="btn_tools"><span><?php echo JText::_('GK_TOOLS'); ?></span></a>
         
         <div class="gk_hide">
            <div class="gk_popup-hide" id="popup_tools">
               <?php $this->loadBlock('usertools/tools') ?>
            </div>
         </div>
         <?php endif; ?>
      
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><span><?php echo JText::_('GK_REGISTER'); ?></span></a>
         <?php endif; ?>

         <?php if(GK_LOGIN) : ?>
         <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><span><?php echo ($userID > 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></span></a>
         <?php endif; ?>
      </div>
   </div>
   <?php endif; ?>
</div>
<?php endif; ?>



with

Code: Select all
<div id="gk-toolbar">   
   <?php if($this->countModules('topmenu')): ?>
   <div id="gk-top-menu">
      <jdoc:include type="modules" name="topmenu" style="none" />   
   </div>
   <?php endif; ?>
   
   <?php if($this->countModules('cart')) : ?>
   <div id="gk-items" style="float:right;">
      ( <strong>...</strong> <?php echo JText::_('GK_ITEMS'); ?> )
   </div>
   <div id="gk-cart">
      <a href="#" id="btn_cart"><span><?php echo JText::_('GK_CART'); ?></span></a>
   </div>
   <?php endif; ?>
   
   <?php if( GK_LOGIN || GK_REGISTER || GK_TOOLS ) : ?>
   <div id="gk-tools">
      <div>
         <?php if(GK_TOOLS) : ?>
         <a href="#" id="btn_tools"><span><?php echo JText::_('GK_TOOLS'); ?></span></a>
         
         <div class="gk_hide">
            <div class="gk_popup-hide" id="popup_tools">
               <?php $this->loadBlock('usertools/tools') ?>
            </div>
         </div>
         <?php endif; ?>
      
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><span><?php echo JText::_('GK_REGISTER'); ?></span></a>
         <?php endif; ?>

         <?php if(GK_LOGIN) : ?>
         <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><span><?php echo ($userID > 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></span></a>
         <?php endif; ?>
      </div>
   </div>
   <?php endif; ?>
</div>


Now it should work fine.

So, to remove "Register" button, you just need to disable GK Register module on "Register" module position.
To remove Login button, just disable Login module form on "login" module position.
And finally, to remove "Tools" button you must disable on template parameters > Features.

This will be added on next update version.

Cheers ;)
User avatar
Platinum Boarder

GK User
Mon Aug 30, 2010 12:39 am
OK forget about my previous post.
It works but this next solution is better.

Please download the attach file and replace ../templates/gk_mystore/layouts/blocks/toolbar.php



Basically, from the original file, it only changes line 30 from:

Code: Select all
<?php if( GK_LOGIN || GK_REGISTER || GK_TOOLS) : ?>


to

Code: Select all
<?php if( GK_LOGIN || GK_REGISTER || GK_TOOLS || $this->countModules('cart + topmenu')) : ?>


Cheers ;)
User avatar
Platinum Boarder

GK User
Thu Sep 16, 2010 2:27 am
Hi, last solution doesn't work completely. Only works for Login text but register is still present. You said on Module Positions that there's a Tools position but I couldn't see that on modules positions.

I wan't to add Joom!Fish Flags before Login | Register text or hide them and put it on before Cart text. Please could you tell me, how could I do that?

Another thing, off this topic is that your Extended Module Parameters couldn't be translate it with Joom!Fish because doesn't load on it. Could it be fixed?

Thank you in advanced for your help. I appreciate it.

Greets!
User avatar
Fresh Boarder

teitbite
Fri Sep 17, 2010 12:40 pm
Hi

Please try to add a new position for jomfish.

Add a name for this new position at templateDetails.xml

And than place in apropriet place in header.php this code:

Code: Select all
   <jdoc:include type="modules" name="PLACE_THIS_NAME_HERE" />
User avatar
Moderator

GK User
Sat Sep 18, 2010 1:44 am
MaxPR wrote:
Hi, last solution doesn't work completely. Only works for Login text but register is still present. You said on Module Positions that there's a Tools position.


Please read:

To remove "Register" button, you just need to disable GK Register module on "Register" module position.
To remove Login button, just disable Login module form on "login" module position.
To remove "Tools" button you must disable on template parameters > Features.
User avatar
Platinum Boarder

GK User
Sat Sep 18, 2010 7:38 am
teitbite wrote:
Hi

Please try to add a new position for jomfish.

Add a name for this new position at templateDetails.xml

And than place in apropriet place in header.php this code:

Code: Select all
   <jdoc:include type="modules" name="PLACE_THIS_NAME_HERE" />


Thank you! :) That was really helpful, I could create my own position on gk-toolbar and reuse your code to program de module.

@Seichinha
Yes, I do that but register is still present even after disable all the three options. I've updated to 2.0.1 version but register text does not dissapear after disable the module.

Best regards!
User avatar
Fresh Boarder

teitbite
Sun Sep 19, 2010 1:47 pm
Hi

Please add this to css:

Code: Select all
a#btn_register {
display:none;
}
User avatar
Moderator


cron