Add modulposition beside login/register button

Professional Business Joomla template for corporate and business websites suitable for showing stock quotes, up to date news, portfolio management resources or international market data.
GK User
Thu Apr 12, 2012 2:36 pm
Hi,

I would like to add a modulposition/place some information beside the login/register button (see picture). I already read the documentation in the support section:

Code: Select all
<body<?php echo $tpl_page_suffix; ?>>
   <?php if($this->browser->get('browser') == 'ie6' && $this->getParam('ie6bar', '1') == 1) : ?>
   <div id="gkInfobar"><a href="http://browsehappy.com"><?php echo JText::_('TPL_GK_GAVERN_IE6_BAR'); ?></a></div>
   <?php endif; ?>
   
   <?php $this->messages('message-position-1'); ?>   
   
<?php if($this->modules(‘social’)) : ?>
<div id="social">
<jdoc:include type=”modules” name=”social” style=”<?php echo $this->module_styles['social']; ?>” />
</div>
<?php endif; ?>


   <div id="gkBg">   
      <div id="gkWrap1">
         <?php $this->loadBlock('nav'); ?>
         
         <?php $this->loadBlock('header'); ?>
      </div>
    </div>


I added the code ("social") in the templates/gk_finance_business/layouts/blocks/nav.php


I can choose my new modul position from the module menu, but it will not show up on my page :cry:


Could you give me a hint?
User avatar
Expert Boarder

Konrad M
Thu Apr 12, 2012 5:11 pm
Hi
I guess you paste code so you need do one change look at yours:
Code: Select all
<?php if($this->modules(‘social’)) : ?>
<div id="social">
<jdoc:include type=”modules” name=”social” style=”<?php echo $this->module_styles['social']; ?>” />
</div>
<?php endif; ?>

and now look at mine
Code: Select all
<?php if($this->modules('social')) : ?>
<div id="social">
<jdoc:include type="modules" name="social" style="<?php echo $this->module_styles['social']; ?>" />
</div>
<?php endif; ?>

I'm using ' and "", try them should work.
User avatar

GK User
Thu Apr 19, 2012 8:42 am
I am sorry - I don't see any difference in the two codes posted by you. I also use ' and "" mhmh!?!?
User avatar
Expert Boarder

Konrad M
Thu Apr 19, 2012 8:47 am
Your's are italic, mine no.
User avatar

GK User
Thu Apr 19, 2012 9:03 am
ah thnks - it works! I was not aware of the fact that php text files would allow any for formatting at all. I am trying to design it by css now..
User avatar
Expert Boarder

Konrad M
Thu Apr 19, 2012 9:07 am
Good luck ;)
User avatar


cron