Position Help

Premium sports magazine Joomla template with clean, easy to customize and unique design.
GK User
Sat Jun 16, 2012 2:05 am
I'm having a hard time putting a banner in the positions of register or login. When I do this, the other modules (register and login) show up even when they are unpublished.

Please help! This banner needs to be in the top right most position.

Image
User avatar
Fresh Boarder

GK User
Sat Jun 16, 2012 8:45 am
I still can't figure this out & think I can better explain what's going on.

I want to display this banner (Call Now image) in the register position of the league news template.
Image


When I put the banner module for the image in the position, instead it triggers the register module (which should be turned off and is turned off) as seen below.
Image
User avatar
Fresh Boarder

GK User
Sat Jun 16, 2012 10:11 am
Register is not a position for other modules. You can change it so that it displays other modules but you will have to do below changes.

Find file: \templates\gk_league_news\layouts\default.php
Find Lines: 63 to 73 which is below
Code: Select all
                <?php if(((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS)) : ?>
                <div id="gkPageTopLinks">
                   <?php if(GK_LOGIN) : ?>
                   <a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=login" id="btnLogin"><?php echo $btn_login_text; ?></a>
                   <?php endif; ?>
                   
                   <?php if(GK_REGISTER) : ?>
                   <a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
                   <?php endif; ?>
                </div>
                <?php endif; ?>

Replace it with below.
Code: Select all
                <?php if($this->API->modules('topbanner')) : ?>
                <div id="gkTopbanner">
                  <jdoc:include type="modules" name="topbanner" style="<?php echo $this->module_styles['banner1']; ?>" />
                </div>
                <?php endif; ?>


Add below css to any css file. If you add it in override.css make sure it is enabled in template settings > advanced settings > css override.
Code: Select all
#gkTopbanner { float: right; width: 30%;}

You might have to make adjustments with padding.

Create a new module such as custom html module and in module position enter manualy "topbanner" without quotes and in menu assignments in module settings ( bottom of the page ) choose "show on all pages".

Now your new module should display in frontend.

See you around...
User avatar
Platinum Boarder


cron