Top bar from GameNews

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Thu Oct 04, 2012 10:59 am
Hello,

I am working with gk_music, how to implement the topbar from gk_gamenews or gavickpro homepage to the gk_music template?

bizzmela.com
User avatar
Fresh Boarder

Konrad M
Thu Oct 04, 2012 11:13 am
Hi,
please compare layouts/default.php file in both templates. You should find this code in game news:
Code: Select all
<?php if($this->API->modules('topnav + social')) : ?>
    <div id="gkTopBar">
       <div>
          <?php if($this->API->modules('social')) : ?>
          <div class="social-icons">
             <jdoc:include type="modules" name="social" style="<?php echo $this->module_styles['social']; ?>"  modnum="<?php echo $this->API->modules('social'); ?>" />
          </div>
          <?php endif; ?>
          
          <?php if($this->API->modules('topnav')) : ?>
          <nav>
             <jdoc:include type="modules" name="topnav" style="<?php echo $this->module_styles['topnav']; ?>"  modnum="<?php echo $this->API->modules('topnav'); ?>" />
          </nav>
          <?php endif; ?>
          
          <?php if($this->API->modules('usermenu')) : ?>
          <nav id="gkTopBarUsermenu">
             <jdoc:include type="modules" name="usermenu" style="<?php echo $this->module_styles['usermenu']; ?>"  modnum="<?php echo $this->API->modules('usermenu'); ?>" />
          </nav>
          <?php endif; ?>
       </div>
    </div>
    <?php endif; ?>

then you need to check css files and copy all styles used in this code to music css files. And then you need to check if those positions are avaliable in music template. If no you need to add them. Here you have info how add module position to template: https://www.gavick.com/documentation/jo ... -position/
User avatar

GK User
Sat Oct 06, 2012 7:08 am
Hi,
Could not manage to display the new added positions and design the topbar.

What I did?

1st added 4 new positions at templatedetail.xml

<!-- Template specific Module Positions -->
<position>topbarsocial</position> 1
<position>topbarlang</position> 2
<position>topbarmenu</position> 3
<position>topbarusermenu</position> 4
<position>breadcrumb</position>
<position>topnav</position>
<position>header</position>
<position>search</position>
<position>footer_nav</position>


2nd edited gk.const.php

GK_TEMPLATE_MODULE_STYLES = array(
'header' => 'gk_style',
'breadcrumb' => 'none',
'footer_nav' => 'none',
'search' => 'none',
'topnav' => 'none',
'topbarsocial' => 'none', 1
'topbarlang' => 'none', 2
'topbarmenu' => 'none', 3
'topbarusermenu' => 'none', 4


3rd added the code bellow to default.php and in several blocks
Code: Select all
<?php if($this->API->modules('topbarsocial + topbarlang + topbarmenu + topbarusermenu')) : ?>
    <div id="gkTopBar">
       <div>
          <?php if($this->API->modules('topbarsocial')) : ?>
          <div class="social-icons">
             <jdoc:include type="modules" name="topbarsocial" style="<?php echo $this->module_styles['topbarsocial']; ?>"  modnum="<?php echo $this->API->modules('topbarsocial'); ?>" />
          </div>
          <?php endif; ?>
          
          <?php if($this->API->modules('topbarlang')) : ?>
               <jdoc:include type="modules" name="topbarlang" style="<?php echo $this->module_styles['topbarlang']; ?>" />
            <?php endif; ?>

          <?php if($this->API->modules('topbarmenu')) : ?>
          <nav>
             <jdoc:include type="modules" name="topbarmenu" style="<?php echo $this->module_styles['topbarmenu']; ?>"  modnum="<?php echo $this->API->modules('topbarmenu'); ?>" />
          </nav>
          <?php endif; ?>
          <?php if($this->API->modules('topbarusermenu')) : ?>
          <nav id="gkTopBarUsermenu">
             <jdoc:include type="modules" name="topbarusermenu" style="<?php echo $this->module_styles['topbarusermenu']; ?>"  modnum="<?php echo $this->API->modules('topbarusermenu'); ?>" />
          </nav>
          <?php endif; ?>
       </div>
    </div>
    <?php endif; ?>


4th tried to edit template.css in a several means but without success.
Sent a PM to you with access detal, I would like you to take a look.
thanks and regards.
User avatar
Fresh Boarder

GK User
Sat Oct 06, 2012 7:21 am
Can not send PM. How to?
User avatar
Fresh Boarder

Konrad M
Mon Oct 08, 2012 8:22 am
Go to your inbox. Here click to 'Compose message'. Then choose me as moderator , write message and click submit.
User avatar

GK User
Sun Feb 10, 2013 3:11 am
Hello,

I'm using gk_music too and i want to integrate the Top bar from GameNews.

Can you send me the procedure...?

Thanks in advance.
User avatar
Fresh Boarder

Konrad M
Sat Feb 16, 2013 9:47 pm
@uljan all procedure is described in this topic.
User avatar

GK User
Sat Feb 16, 2013 10:26 pm
Konrad M wrote:@uljan all procedure is described in this topic.


I already tried it. But it didn't work.

Uljan
User avatar
Fresh Boarder

Konrad M
Mon Feb 18, 2013 8:14 am
Please describe what you have done. I will try help you.
User avatar


cron