test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • dnamic Friend
    #127640

    Hi, there’s some method to put a second line of jacuapopup on the Fedora template?
    I have add some modules position but when i activate all the position are on only one line. like the image, someone have a solution?

    Thanks


    1. fedora
    Sherlock Friend
    #245866

    Open index.php(templates/ja_fedora/index.php)
    Search those lines

    <!-- END: TOP SPOTLIGHT 2 -->
    <?php } ?>

    Add this block code below them

    <?php
    $spotlight_2 = array ('user10','user11','user12');
    $topsl_2 = $tmpTools->calSpotlight ($spotlight_2,$tmpTools->isOP()?100:100);
    if( $topsl_2 ) {
    ?>
    <!-- BEGIN: TOP SPOTLIGHT 2 -->
    <div id="ja-topsl2" class="clearfix">
    <?php if( $this->countModules('user10') ) {?>
    <div class="ja-box<?php echo $topsl['user10']['class']; ?>" style="width: <?php echo $topsl['user10']['width']; ?>;">
    <jdoc:include type="modules" name="user10" style="xhtml" />
    </div>
    <?php } ?>

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

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

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

    And you must create more position in templateDetails.xml
    add this line

    <position>user13</position>
    betwwen <positions>…</positions>
    Then create some module, set position are user 11, user 12, user 13

    dnamic Friend
    #245873

    Thanks a lot for the code 🙂

    dnamic Friend
    #245878

    If someone have problem with that code

    <?php
    $spotlight_2 = array ('user10','user11','user12');
    $topsl_2 = $tmpTools->calSpotlight ($spotlight_2,$tmpTools->isOP()?100:100);
    if( $topsl_2 ) {
    ?>
    <!-- BEGIN: TOP SPOTLIGHT 2 -->
    <div id="ja-topsl2" class="clearfix">
    <?php if( $this->countModules('user10') ) {?>
    <div class="ja-box<?php echo $topsl['user10']['class']; ?>" style="width: <?php echo $topsl['user10']['width']; ?>;">
    <jdoc:include type="modules" name="user10" style="xhtml" />
    </div>
    <?php } ?>

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

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

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

    change with that

    <?php
    $spotlight_2 = array ('user10','user11','user12');
    $topsl = $tmpTools->calSpotlight ($spotlight_2,$tmpTools->isOP()?100:100);
    if( $topsl ) {
    ?>
    <!-- BEGIN: TOP SPOTLIGHT 2 -->
    <div id="ja-topsl2" class="clearfix">
    <?php if( $this->countModules('user10') ) {?>
    <div class="ja-box<?php echo $topsl['user10']['class']; ?>" style="width: <?php echo $topsl['user10']['width']; ?>;">
    <jdoc:include type="modules" name="user10" style="xhtml" />
    </div>
    <?php } ?>

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

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

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

    or add in the template css
    the “topsl_2” class or change with another name

    :p

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

This topic contains 4 replies, has 2 voices, and was last updated by  dnamic 16 years, 8 months ago.

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