Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • proxaal oxaal Friend
    #118285

    Hi,

    Could some of the Joomlart team share with us how to implent the JA Header module in kruger? That would have been just great!

    Khanh Le Moderator
    #213167

    You could load a module position in the header area, then publish the module into that position.


    <?php if( mosCountModules('header') ) {
    php mosLoadModules('header', -1);
    }
    ?>

    proxaal oxaal Friend
    #213412

    What to I do with the code you typed??

    rampitup46 Friend
    #213765

    Here is what I did to get this to work:

    Find this chunk of code in the template’s index.php file:


    <!-- BEGIN: SUBHEADER -->
    <div id="ja-sh" class="clearfix" style="background:url(<?php echo "$ja_template_path/images/$ja_color/$ja_headerimg"; ?>) no-repeat top right;">

    <div id="ja-topnav"<?php if (!$subnav) echo " class="topnav-border"";?>>
    <?php
    switch ($ja_menutype) {
    case 1: echo $topnav;
    break;
    case 2: include("ja_cssmenu.php");
    break;
    case 3: include("ja_transmenu.php");
    break;
    case 4: include("ja_dlmenu.php");
    break;
    }
    ?>
    </div>

    <?php if ($subnav) { ?>
    <div id="ja-subnav">
    <?php echo $subnav; ?>
    </div>
    <?php } ?>

    <script type="text/javascript">initPNGTrans();</script>

    </div>
    <!-- END: SUBHEADER -->

    And replace it with this:


    <!-- BEGIN: SUBHEADER -->
    <?php if( !mosCountModules('header') ) { ?>
    <div id="ja-sh" class="clearfix" style="background:url(<?php echo "$ja_template_path/images/$ja_color/$ja_headerimg"; ?>) no-repeat top right;">
    <?php } else { ?>
    <div id="ja-sh" class="clearfix" no-repeat top right;">
    <?php } ?>
    <div id="ja-topnav"<?php if (!$subnav) echo " class="topnav-border"";?>>
    <?php
    switch ($ja_menutype) {
    case 1: echo $topnav;
    break;
    case 2: include("ja_cssmenu.php");
    break;
    case 3: include("ja_transmenu.php");
    break;
    case 4: include("ja_dlmenu.php");
    break;
    }
    ?>
    </div>

    <?php if ($subnav) { ?>
    <div id="ja-subnav">
    <?php echo $subnav; ?>
    </div>
    <?php } ?>

    <script type="text/javascript">initPNGTrans();</script>
    <?php if( mosCountModules('header') ) { mosLoadModules('header', -1); }?>
    </div>
    <!-- END: SUBHEADER -->

    What this does is detect if you have a module in the “header” position. If there is one present then it will not display the “sh” static images and instead use the module in the “header” position which you should configure to be the JA Header module in this case. If there is no module specified in the “header” position, then the default behavior of the “sh” static images is displayed. One important thing is that the header images you use need to be 900px wide and 175px high. So you can either crop the header images you are using now or specify an image height of 175 in the JA Header module settings.

    hoamanager Friend
    #251986

    <em>@rampitup46 7017 wrote:</em><blockquote>Here is what I did to get this to work:

    Find this chunk of code in the template’s index.php file:


    <!-- BEGIN: SUBHEADER -->
    <div id="ja-sh" class="clearfix" style="background:url(<?php echo "$ja_template_path/images/$ja_color/$ja_headerimg"; ?>) no-repeat top right;">

    <div id="ja-topnav"<?php if (!$subnav) echo " class="topnav-border"";?>>
    <?php
    switch ($ja_menutype) {
    case 1: echo $topnav;
    break;
    case 2: include("ja_cssmenu.php");
    break;
    case 3: include("ja_transmenu.php");
    break;
    case 4: include("ja_dlmenu.php");
    break;
    }
    ?>
    </div>

    <?php if ($subnav) { ?>
    <div id="ja-subnav">
    <?php echo $subnav; ?>
    </div>
    <?php } ?>

    <script type="text/javascript">initPNGTrans();</script>

    </div>
    <!-- END: SUBHEADER -->

    And replace it with this:


    <!-- BEGIN: SUBHEADER -->
    <?php if( !mosCountModules('header') ) { ?>
    <div id="ja-sh" class="clearfix" style="background:url(<?php echo "$ja_template_path/images/$ja_color/$ja_headerimg"; ?>) no-repeat top right;">
    <?php } else { ?>
    <div id="ja-sh" class="clearfix" no-repeat top right;">
    <?php } ?>
    <div id="ja-topnav"<?php if (!$subnav) echo " class="topnav-border"";?>>
    <?php
    switch ($ja_menutype) {
    case 1: echo $topnav;
    break;
    case 2: include("ja_cssmenu.php");
    break;
    case 3: include("ja_transmenu.php");
    break;
    case 4: include("ja_dlmenu.php");
    break;
    }
    ?>
    </div>

    <?php if ($subnav) { ?>
    <div id="ja-subnav">
    <?php echo $subnav; ?>
    </div>
    <?php } ?>

    <script type="text/javascript">initPNGTrans();</script>
    <?php if( mosCountModules('header') ) { mosLoadModules('header', -1); }?>
    </div>
    <!-- END: SUBHEADER -->

    What this does is detect if you have a module in the “header” position. If there is one present then it will not display the “sh” static images and instead use the module in the “header” position which you should configure to be the JA Header module in this case. If there is no module specified in the “header” position, then the default behavior of the “sh” static images is displayed. One important thing is that the header images you use need to be 900px wide and 175px high. So you can either crop the header images you are using now or specify an image height of 175 in the JA Header module settings.</blockquote>
    I tried what rampitup46 suggested and it worked. Unfortunately, now the main menu across the top is not showing. Please see here:

    http://thecolonyhoa.org/newcolony/

    Help please!

    harisk73 Friend
    #320725

    hi admin, i want the same thing, ie to replace the static headers with ja-slideshow. Please help us. I am using the 1.5 version of kruger

    Can you post something similar to the above that can work on my version?

    thanks

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 5 voices, and was last updated by  harisk73 14 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum