Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • sugiarto Friend
    #135130

    Hi all,

    I noticed that if I have a module on possition user6 (user7 empty), than module width will expand until reach user6+user7 widths.

    Same case on module in position user9-user12.

    My question is, is it possible for a module in user6 (or user 9) to maintain its width though there is no module in user7(or user 10-12) position?

    Thanks in advance,
    Regards,
    Sugiarto.

    Sherlock Friend
    #278522

    Hi
    please open index.php, you will see those lines:

    <?php
    $spotlight = array ('user6','user7');
    $contentsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
    if( $contentsl ) {
    ?>
    <!-- BEGIN: CONTENT SPOTLIGHT 2-->
    <div id="ja-contentsl2" class="clearfix">

    <?php if( $this->countModules('user6') ) {?>
    <div class="ja-box<?php echo $contentsl['user6']['class']; ?>" style="width: <?php echo $contentsl['user6']['width']; ?>;">
    <jdoc:include type="modules" name="user6" style="rounded" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user7') ) {?>
    <div class="ja-box<?php echo $contentsl['user7']['class']; ?>" style="width: <?php echo $contentsl['user7']['width']; ?>;">
    <jdoc:include type="modules" name="user7" style="rounded" />
    </div>
    <?php } ?>

    </div>
    <!-- END: CONTENT SPOTLIGHT 2-->
    <?php } ?>

    You can set width for user6 module(when haven’t user 7 module) by replace style=”width: <?php echo $contentsl[‘user6’][‘width’]; ?>;” by style=”width:yourwidth”

    Sherlock Friend
    #278523

    Hi
    Same with user 9 module:

    <?php
    $spotlight = array ('user9','user10','user11','user12');
    $botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
    if( $botsl ) {
    ?>
    <!-- BEGIN: BOTTOM SPOTLIGHT -->
    <div id="ja-botsl" class="clearfix">

    <?php if( $this->countModules('user9') ) {?>
    <div class="ja-box<?php echo $botsl['user9']['class']; ?>" style="width: <?php echo $botsl['user9']['width']; ?>;">
    <jdoc:include type="modules" name="user9" style="xhtml" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user10') ) {?>
    <div class="ja-box<?php echo $botsl['user10']['class']; ?>" style="width: <?php echo $botsl['user10']['width']; ?>;">
    <jdoc:include type="modules" name="user10" style="xhtml" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user11') ) {?>
    <div class="ja-box<?php echo $botsl['user11']['class']; ?>" style="width: <?php echo $botsl['user11']['width']; ?>;">
    <jdoc:include type="modules" name="user11" style="xhtml" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user12') ) {?>
    <div class="ja-box<?php echo $botsl['user12']['class']; ?>" style="width: <?php echo $botsl['user12']['width']; ?>;">
    <jdoc:include type="modules" name="user12" style="xhtml" />
    </div>
    <?php } ?>

    </div>
    <!-- END: BOTTOM SPOTLIGHT -->
    <?php } ?>

    sugiarto Friend
    #278530

    Hi, thanks for your help.

    Regards,
    Sugiarto.

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

This topic contains 4 replies, has 2 voices, and was last updated by  sugiarto 15 years, 10 months ago.

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