Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • sugiarto Friend
    #135532

    Hi all,

    Can anyone tell me how to add new module position? I want to add new module in position before user8/user9, width and border is the same as banner, and align is left.

    Thanks in advance.
    Regards,
    Sugiarto.

    Anonymous Moderator
    #279745

    Dear sugiarto,

    Please open index.php in templates/ja_teline_ii folder, at about line 192, find script:

    [PHP]<?php
    $spotlight = array (‘user8′,’user9’);
    $botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
    if( $botsl ) {
    ?>
    <!– BEGIN: BOTTOM SPOTLIGHT –>
    <div id=”ja-botsl” class=”clearfix”>

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

    <?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 } ?>

    </div>
    <!– END: BOTTOM SPOTLIGHT –>
    <?php } ?>[/PHP]

    And add following script above that script:

    [PHP]<?php if($this->countModules(‘new_module_name’)) : ?>
    <!– BEGIN: NEW_MODULE–>
    <div id=”ja-new_module_name”>
    <jdoc:include type=”modules” name=”new_module_name” />
    </div>
    <!– END: NEW_MODULE–>
    <?php endif; ?>[/PHP]

    Next, open template.css in templates/ja_teline_ii/css folder, add following script to the end of file:

    [PHP]#ja-new_module_name {
    margin: 0;
    padding-top: 15px;
    text-align: left;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid #CCCCCC;
    }[/PHP]

    Then, login to Administrator, go to Extensions -> Module manager to create or edit a module, select position to new_module_name, (In joomla 1.5.x, if this position hasn’t been exist yet, you can input direct new_module_name text to position dropdown)

    Save changes and then go to the main page to view changes.

    Hope it helps.

    sugiarto Friend
    #279757

    Hi JA Developer,

    Have tried what you told and worked ok! Thanks a lots.

    Regards,
    Sugiarto.

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

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

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