Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • studiofat Friend
    #151402

    Hi!!!

    I want to add second masscol under left/right position

    I changed index.php file:

    <?php if ($ja_left || $ja_right || $ja_masscol || $ja_masscol2) { ?>
    <div id="ja-colwrap">

    <?php if ($ja_masscol) { ?>
    <!-- BEGIN: MASSCOL -->
    <div id="ja-colmass" class="clearfix">
    <div class="ja-innerpad">
    <jdoc:include type="modules" name="user5" style="jamodule" />
    </div>
    </div>
    <?php } ?>

    <?php if ($ja_left) { ?>
    <!-- BEGIN: LEFT COLUMN -->
    <div id="ja-col1">
    <div class="ja-innerpad">

    <?php if ($hasSubnav) : ?>
    <div id="ja-subnav" class="moduletable_menu">
    <h3>On this page</h3>
    <div class="ja-boxct-wrap"><div class="ja-boxct">
    <?php if ($jamenu) $jamenu->genMenu (1,1); ?>
    </div></div>
    </div>
    <?php endif; ?>

    <jdoc:include type="modules" name="left" style="jamodule" />

    </div>
    </div>
    <!-- END: LEFT COLUMN -->
    <?php } ?>

    <?php if ($ja_right) { ?>
    <!-- BEGIN: RIGHT COLUMN -->
    <div id="ja-col2">
    <div class="ja-innerpad">
    <jdoc:include type="modules" name="right" style="jamodule" />
    </div></div><br />
    <!-- END: RIGHT COLUMN -->
    <?php } ?>

    <?php if ($ja_masscol2) { ?>
    <!-- BEGIN: MASSCOL -->
    <div id="ja-colmass2" class="clearfix">
    <div class="ja-innerpad">
    <jdoc:include type="modules" name="user12" style="jamodule" />
    </div>
    </div>
    <?php } ?>

    </div>
    <?php } ?>

    i add in template.css


    #ja-colmass2 div.ja-boxct-wrap {
    background: url(../images/line-bot4.gif) repeat-x left bottom;
    }

    #ja-colmass2 div.ja-boxct {
    background: url(../images/bw-bg.png) no-repeat left top;
    padding: 10px 20px;
    }

    #ja-colmass2 div.moduletable {
    background: url(../images/pat3.gif);
    }

    but i have a problem when i publish a module in new masscol position i cant see it…

    i think i need to modify ja_vars_1.5.php file but I dont know how…

    could anyone help me with my problem??

    Thank You

    Css Magician Friend
    #345836

    Dear studiofat,

    Please open ja_vars_1.5.php and edit as follow:
    change


    # Auto Collapse Divs Functions ##########
    $ja_left = $this->countModules( 'left' );
    $ja_right = $this->countModules( 'right' );
    $ja_masscol = $this->countModules('user5');
    if ($tmpTools->isContentEdit()) {
    $ja_right = $ja_left = $ja_masscol = 0;
    }
    if ( $ja_left && $ja_right ) {
    //2 columns on the right
    $divid = '';
    } elseif ( ($ja_left || $ja_right) && !$ja_masscol ) {
    //One column without masscol
    $divid = '-c';
    } elseif (($ja_left || $ja_right) && $ja_masscol) {
    //One column with masscol
    $divid = '-cm';
    } elseif ($ja_masscol) {
    //masscol only
    $divid = '-m';
    } else {
    //No column in right
    $divid = '-f';
    }

    to :


    # Auto Collapse Divs Functions ##########
    $ja_left = $this->countModules( 'left' );
    $ja_right = $this->countModules( 'right' );
    $ja_masscol = $this->countModules('user5');
    $ja_masscol2 = $this->countModules('user12');
    if ($tmpTools->isContentEdit()) {
    $ja_right = $ja_left = $ja_masscol = $ja_masscol2 = 0;
    }
    if ( $ja_left && $ja_right ) {
    //2 columns on the right
    $divid = '';
    } elseif ( ($ja_left || $ja_right) && !($ja_masscol || $ja_masscol2) ) {
    //One column without masscol
    $divid = '-c';
    } elseif (($ja_left || $ja_right) && ($ja_masscol || $ja_masscol2)) {
    //One column with masscol
    $divid = '-cm';
    } elseif ($ja_masscol || $ja_masscol2) {
    //masscol only
    $divid = '-m';
    } else {
    //No column in right
    $divid = '-f';
    }

    studiofat Friend
    #346062

    now it’s working fine 🙂 thank you very much for help 🙂

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

This topic contains 3 replies, has 2 voices, and was last updated by  studiofat 14 years, 5 months ago.

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