-
AuthorPosts
-
studiofat Friend
studiofat
- Join date:
- December 2009
- Posts:
- 26
- Downloads:
- 149
- Uploads:
- 1
- Thanks:
- 51
- Thanked:
- 3 times in 1 posts
May 28, 2010 at 11:51 am #151402Hi!!!
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 FriendCss Magician
- Join date:
- October 2014
- Posts:
- 741
- Downloads:
- 43
- Uploads:
- 53
- Thanks:
- 114
- Thanked:
- 366 times in 263 posts
June 3, 2010 at 9:03 am #345836Dear 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';
}
1 user says Thank You to Css Magician for this useful post
-
AuthorPosts
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