Cant add modules to Banner1?????

Gamebox - especially created support forum for Joomla 1.6
GK User
Sat Jun 25, 2011 5:36 pm
I am trying to add a custom module to banner1 postion. I show us around the header 1 or header 2 area but never in the banner 1 area . There is only this item selected for banner 1 position. It only had a photo and i have even sized the photo to 25 x 10px and still not working. How do we fix this?
User avatar
Senior Boarder

GK User
Mon Jul 04, 2011 11:23 pm
Ok maybe I didnt ask this right. I want to place a banner in Banner 1 position when i do it does not show in banner 1 position it shows up near header 1 and 2. Is there a way to get banner 1 to show the banners or not? thanks in advance
User avatar
Senior Boarder

teitbite
Tue Jul 05, 2011 1:21 pm
Hi

Please show me Your site and point which module are we talking about.
User avatar
Moderator

GK User
Thu Jul 07, 2011 9:47 pm
Sure and thanks for the reply.here is my test site which is doing the same on the live site. http://www.swaggakings.com/oldsk/jupgrade/index.php/ggg banner1 is the postion and custom is the module. banner 1 should be up top right of the text that says Gamebox Mag.... but as u can see its not and no matter how small i make the logo i get the same thing... thanks for your assistance
User avatar
Senior Boarder

teitbite
Fri Jul 08, 2011 6:11 pm
Hi

To be honest Ithink it's working fine. Banner 1 should be displayed in this place, but if You want to move it please try add this to css:

#gkBanner1 {
float:right !important;
}
User avatar
Moderator

GK User
Fri Jul 08, 2011 6:50 pm
thanks. I dont fully understand why u feel that should be banner 1? here is a photo of the Gavick Template and what i have. since the ad shows below what is shown as banner 1 but in the general area i dont understand why u feel its in the right place for banner 1? will the code place it up next to logo as it should be? Thanks again

error_2011-07-08.jpg
User avatar
Senior Boarder

teitbite
Sun Jul 10, 2011 3:17 pm
Hi

I'venever seen this map of positions. I'm using ?tp=1 to see the available. But You are right. Anyway this can be easily fixed with this code in css:

Code: Select all
#gkTopLogo {
float:left;
}
#gkBanner1 {
float:right;
}
User avatar
Moderator

GK User
Sun Jul 10, 2011 10:10 pm
Actually it doesn't work well and needs deeper intervention.
Here's my suggestion:

Open ../templates/gk_gamebox/layouts/blocks/header.php
and remove this lines:

Code: Select all
<?php if( $this->modules('banner1')) : ?>
<div id="gkBanner1" class="clear clearfix">
      <jdoc:include type="modules" name="banner1" style="<?php echo $this->module_styles['banner1']; ?>" />
</div>
<?php endif; ?>


Them open ../templates/gk_gamebox/layouts/blocks/nav.php
and find this lines:

Code: Select all
<h1 id="gkLogo" class="text">
   <a href="./">
      <?php if($this->getParam('logo_text', '') != '') : ?><span class="gkLogoText"><?php echo $this->getParam('logo_text', ''); ?></span><?php endif; ?>
      <?php if($this->getParam('logo_slogan', '') != '') : ?><span class="gkLogoSlogan"><?php echo $this->getParam('logo_slogan', ''); ?></span><?php endif; ?>
   </a>
</h1>
<?php endif; ?>
</div>


replace with

Code: Select all
<h1 id="gkLogo" class="text">
   <a href="./">
      <?php if($this->getParam('logo_text', '') != '') : ?><span class="gkLogoText"><?php echo $this->getParam('logo_text', ''); ?></span><?php endif; ?>
      <?php if($this->getParam('logo_slogan', '') != '') : ?><span class="gkLogoSlogan"><?php echo $this->getParam('logo_slogan', ''); ?></span><?php endif; ?>
   </a>
</h1>
<?php endif; ?>
<?php if( $this->modules('banner1')) : ?>
<div id="gkBanner1" class="clear clearfix">
      <jdoc:include type="modules" name="banner1" style="<?php echo $this->module_styles['banner1']; ?>" />
</div>
<?php endif; ?>
</div>


Finally open template.css file and add this:

Code: Select all
#gkTopLogo {position: relative;}
#gkBanner1 {position: absolute; top: 0; max-width: 500px; right: 0; }
#gkBanner1>div {padding: 10px;}


This should work fine ;)

screen_2011-07-11.png



Cheers
User avatar
Platinum Boarder

GK User
Wed Jul 13, 2011 4:25 am
That worked Thanks!
User avatar
Senior Boarder


cron