User area on top - how to put icons

GK User
Wed Oct 31, 2012 10:05 pm
Hi,

I have a questions about userarea on top of page in e-sport. In oryginal template there are links to register etc. and I decided to put there some icons insteed.

Can you tell me how I can put there some icons? This module position is userarea but in administration panel i cannot use this position for any module.

My website is: www.climbe.pl

thanks
User avatar
Expert Boarder

GK User
Thu Nov 01, 2012 1:11 pm
This part is hard coded to the template but you can add your custom position there, tutorial how to add new module position you will find on our forum and the file that you need to modify is :

-template/layouts/default.php in line 96, where you can see the 'lang' position,
Code: Select all
<?php if($this->modules('lang')) : ?>


You can add new one right after 'lang' or use this language switcher position for your content.
User avatar
Platinum Boarder

GK User
Fri Nov 02, 2012 10:49 am
bkrztuk wrote:This part is hard coded to the template but you can add your custom position there, tutorial how to add new module position you will find on our forum and the file that you need to modify is :

-template/layouts/default.php in line 96, where you can see the 'lang' position,
Code: Select all
<?php if($this->modules('lang')) : ?>


You can add new one right after 'lang' or use this language switcher position for your content.


Hi, I still have a problem with this.

In line 95 and 96 in default.php I have this:

Code: Select all
[line 95] <?php if(GK_REGISTER) : ?>
[line 96] <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=registration"     id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>


I found this tutorial: https://www.gavick.com/documentation/jo ... -position/

In file templateDetails.xml i added a new position: <position>ikony</position>
and in file gk.const.php I added 'ikony' => 'none',

after this I added such code to default php

Code: Select all
<?php if($this->modules(‘ikony’)) : ?>
<div>
<jdoc:include type=”modules” name=”ikony” style=”<?php echo $this->module_styles['ikony']; ?>” />
</div>


latter I made a new module "ikonki" with my own html, I found position "ikony" and publish it with no positive resault.

Please, check is eveything is correct. The all code in default.php is:

Code: Select all
<?php if(((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) || $this->modules('pagetop + cart')) : ?>
          <div id="gkPageTopFeatures" class="clearfix gkWrap">
             <?php if($this->modules('pagetop')) : ?>
             <div id="gkPageTopMod">
                <jdoc:include type="modules" name="pagetop" style="<?php echo $this->module_styles['pagetop']; ?>" />
             </div>
             <?php endif; ?>
             
             <?php if(((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) || $this->modules('cart')) : ?>
             <div id="gkPageTopLinks">
                <?php if($this->modules('cart')) : ?>
                <a href="#" id="btnCart"><?php echo JText::_('TPL_GK_LANG_MY_CART'); ?><span><?php echo JText::_('TPL_GK_LANG_MY_CART_LOADING'); ?></span></a>
                <?php endif; ?>
                
                <?php if(GK_LOGIN) : ?>
                <a href="<?php echo $this->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->URLbase(); ?>index.php?option=com_users&amp;view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
                <?php endif; ?>
               
               <?php if($this->modules(‘ikony’)) : ?>
               <div>
               <jdoc:include type=”modules” name=”ikony” style=”<?php echo $this->module_styles['ikony']; ?>” />
               </div>
               <?php endif; ?>
             </div>
             <?php endif; ?>
          </div>
          <?php endif; ?>
User avatar
Expert Boarder

GK User
Sat Nov 03, 2012 3:16 pm
Your code looks properly, the module is not visible ? Please send me deails via PM with link to this forum topic I'll check this again.
User avatar
Platinum Boarder


cron