Banners Left and Right to logo position

GK User
Tue Mar 13, 2012 10:37 am
Hi there,

I wand to add left and right to logo 2 banners. I already add the one at left but i dont know if is ok the code, can someone help me to display them correct?

here is my site

http://dreamexpo.gr/demo/index.php
User avatar
Fresh Boarder

Konrad M
Tue Mar 13, 2012 11:32 am
Please add second one too. Then we will try figure out how display them correct ;)
User avatar

GK User
Tue Mar 13, 2012 11:39 am
οκ, Konrad! i add the code and i reply back.
User avatar
Fresh Boarder

GK User
Tue Mar 13, 2012 12:06 pm
here is the code i add:

Code: Select all
 <?php if( $this->countModules('logobanner1') ): ?>
      <div id="logobanner1">
          <jdoc:include type="modules" name="logobanner1" style="none" />
      </div>




and here is the postition i add it:
Code: Select all
<div id="gk-logo-wrap">
<?php if( $this->countModules('logobanner2') ): ?>
      <div id="logobanner2">
          <jdoc:include type="modules" name="logobanner2" style="none" />
      </div>
     <?php if( $this->countModules('logobanner1') ): ?>
      <div id="logobanner1">
          <jdoc:include type="modules" name="logobanner1" style="none" />
      </div>
<?php if ($this->getParam('logoType')!=='none'): ?>
    <div id="gk-logo">
   <?php if ($this->getParam('logoType')=='image'): ?>
   
   <h1 class="logo">
         <a href="index.php" title="<?php echo $this->sitename(); ?>"><?php echo $this->sitename(); ?></a>
   </h1>
   
    
   
      <?php endif; ?>
   <?php elseif($this->getParam('logoType')=='text') : ?>
   <h1 class="logo text">
       <a href="index.php" title="<?php echo $this->sitename(); ?>"><?php echo GK_LOGO; ?></a>
       <small class="site-slogan"><?php echo GK_SLOGAN;?></small>
   </h1>
   <?php endif; ?>
   

   
    </div>
<?php endif; ?>


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

<?php if($this->countModules('highlighter')) : ?>
    <div id="gk-highlighter">
        <jdoc:include type="modules" name="highlighter" style="none" />
    </div>
<?php endif; ?>   

</div>



But this print me that error:

Code: Select all
Parse error: syntax error, unexpected $end in /home/dreamexp/public_html/demo/templates/gk_twn2/layouts/blocks/top.php on line 59
User avatar
Fresh Boarder

GK User
Tue Mar 13, 2012 12:25 pm
i add
Code: Select all
<?php endif; ?>
after the
Code: Select all
<?php if( $this->countModules('logobanner1') ): ?>
      <div id="logobanner1">
          <jdoc:include type="modules" name="logobanner1" style="none" />
      </div>


and works.

but display 1 danner up and the other down.

http://dreamexpo.gr/demo/

how to align this one to the right..?
User avatar
Fresh Boarder

Konrad M
Wed Mar 14, 2012 11:08 am
I see you fixed it already ?
User avatar

GK User
Wed Mar 14, 2012 6:00 pm
Yes but i do the half job. Left banner isn't clickable :(
User avatar
Fresh Boarder

GK User
Wed Mar 14, 2012 6:15 pm
Well, i fix the left banner, with z-index property and absolute position, but now the logo isn't clickable! :P
User avatar
Fresh Boarder

Konrad M
Thu Mar 15, 2012 1:22 pm
Ok
Remove your code from template.css
Code: Select all
#logobanner1 {
    float: none;
    height: 44px;
    padding-left: 630px;
    padding-top: 25px;
    position: realtive;
    width: 180px;
}

and add this one to override.css
Code: Select all
#logobanner1 {
    float: none;
    height: 44px;
    left: 630px;
    position: absolute;
    top: 25px;
    width: 180px;
}

and remember to enable override.css option in template settings.
User avatar

GK User
Thu Mar 15, 2012 1:44 pm
Thanks for the reply Konrad M.

override.css is ON.

But doing this, i thing not work.

Image


http://dreamexpo.gr/demo/
User avatar
Fresh Boarder

Konrad M
Thu Mar 15, 2012 1:53 pm
In what browser you have this issue ?
User avatar

GK User
Thu Mar 15, 2012 1:58 pm
Firefox 10.0.2
User avatar
Fresh Boarder

GK User
Thu Mar 15, 2012 2:08 pm
And now i check it in IE 9 and Opera 11.61 with the same results.
User avatar
Fresh Boarder

Konrad M
Fri Mar 16, 2012 12:39 pm
Ok so try add this to override.css too
Code: Select all
div#gk-logo-wrap {
position:relative;
height:120px;
}
User avatar


cron