Replace Login | Register with search module

GK User
Tue Aug 23, 2011 3:29 pm
Im guessing there is no module position where login/register button are, but i want place search module there instead.

Any talent out there that can help?
122.png
User avatar
Fresh Boarder

GK User
Tue Sep 06, 2011 4:33 am
Hi
Please make back ups of your files first.
You will need to go into layouts/blocks/nav.php in the template folder and delete
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; ?>


Then where you just deleted that add
Code: Select all
               <?php if( $this->modules('search') ): ?>
                <div id="gkSearch">
                  <jdoc:include type="modules" name="search" style="<?php echo $this->module_styles['search']; ?>" />
              </div>
            <?php endif; ?>


Then go into layouts/default.php and delete

Code: Select all
               <?php if( $this->modules('search') ): ?>
                <div id="gkSearch">
                  <jdoc:include type="modules" name="search" style="<?php echo $this->module_styles['search']; ?>" />
              </div>
            <?php endif; ?>
User avatar
Fresh Boarder

GK User
Thu Nov 17, 2011 1:04 pm
THANKS! Works good, now i just have to find a nice ajax search solution

Sorry for late reply - i wasn't subscribing the topic
User avatar
Fresh Boarder

GK User
Thu Nov 17, 2011 3:36 pm
how can I turn the same position into to a module position were I can put flags for a multi language page?
User avatar
Expert Boarder

GK User
Tue Jun 19, 2012 3:35 pm
Nice one... i wanted to do this and it works like a charm...

I want to know if it's possible to have the login and register positions to the left of the search box now.
User avatar
Junior Boarder


cron