-
AuthorPosts
-
January 13, 2007 at 7:08 pm #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 ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
January 15, 2007 at 6:07 pm #213167You could load a module position in the header area, then publish the module into that position.
<?php if( mosCountModules('header') ) {
php mosLoadModules('header', -1);
}
?>
January 22, 2007 at 9:10 am #213412What to I do with the code you typed??
January 27, 2007 at 4:29 am #213765Here 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.
June 4, 2008 at 7:29 pm #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!
October 16, 2009 at 2:58 pm #320725hi 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
-
AuthorPosts
This topic contains 6 replies, has 5 voices, and was last updated by harisk73 15 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum