Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • monkeyhouse Friend
    #119872

    I’d like some help with the custom positioning of my ja_header module as seen on
    http://monkeyhouse.nl/joomla/
    When I use any module in the right column everything is fine but if you click on contact in the main menu you will see how the layout changes when there is no module in the right column, my header section ends up below the content.
    Any ideas what I’m doing wrong?

    monkeyhouse Friend
    #218767

    ok I just remembered seeing something in the php and changed it myself

    I just added the $ja_head so the appropriate layout would be chosen for the content when there was no right module

    $ja_left = mosCountModules( 'left' );
    $ja_right = mosCountModules( 'right' );
    $ja_head = mosCountModules( 'header' );

    if ( $ja_left && $ja_right ) {
    $divid = '';
    } elseif ( $ja_left && $ja_head ) {
    $divid = '';
    } elseif ( $ja_left ) {
    $divid = '-fr';
    } elseif ( $ja_right ) {
    $divid = '-fl';
    } elseif ( $ja_head ) {
    $divid = '-fl';
    } else {
    $divid = '-f';
    }

    and this is the code insterted into the index.php right before the code for the right column

    <?php if ($ja_head) { ?>
    <!-- BEGIN: HEADER -->
    <div id="ja-rightcol">
    <?php if( mosCountModules('header') ) {?>
    <div id="ja-sh" class="clearfix">
    <?php mosLoadModules('header', -1); ?>
    </div>

    </div><br />
    <!-- END: HEADER -->
    <?php } ?>

    This is what I changed in the css file

    #ja-sh {
    clear: both;
    overflow: hidden;
    background: #000000;
    border-bottom: 1px solid #000000;
    height: 300px;
    width: 176px;
    margin-bottom: 8px;
    margin-top: 3px;
    }

    only thing left to do is make it change width when using the user tools at the top right

    swemmel Friend
    #218773

    Hi,

    Very nice customization. Thanx for sharing. 😉

    Kind Regards,
    Peter.

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

This topic contains 3 replies, has 2 voices, and was last updated by  swemmel 17 years, 7 months ago.

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