-
AuthorPosts
-
November 16, 2006 at 3:41 pm #117672
Hello, since Pollux is tableless CSS design, I am guessing this is why there are no module positions in the main body area… If I need to add a module position to the main body area (user6, for example) how can I do this?
Thanks!
corrado444 Friendcorrado444
- Join date:
- July 2006
- Posts:
- 41
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 4 times in 1 posts
November 20, 2006 at 10:36 am #211847Bump, anybody can answer or point me in the right direction??
November 20, 2006 at 6:49 pm #211850Bump, anybody can answer or point me in the right direction??</blockquote>
:confused: I need to learn how to add two modules (user8, user9) to the top of the main body in Pollux. I’ve tried using the Joomla/Mambo Tutorial, and looked through all the postings in the forums. I know this is a relatively easy thing, since the ‘users’ are already defined. I’m just not sure what the exact code should be – when I post the code I think it should be it errors out.Please help, I’ve spent days trying to do this and I need to get the site up and going. By the way, these two modules will be needed in just about every site we do, in just that position. I’m wondering why they aren’t just built in, and we can use them or not, based on our needs. Is it difficult, or a conflict of some sort to just build the templates with many modules?
Thanks in advance…
Kelly BHung Dinh FriendHung Dinh
- Join date:
- September 2014
- Posts:
- 4408
- Downloads:
- 11
- Uploads:
- 189
- Thanks:
- 309
- Thanked:
- 3310 times in 3 posts
November 21, 2006 at 3:38 am #211871To add 2 module position user8 and user9 to main content, please open template index.php file, paste following code before <?php mosMainBody(); ?>
<?php
# Top Spotlight ##########
$topmodule = 0;
if (mosCountModules('user8')) $topmodule++;
if (mosCountModules('user9')) $topmodule++;if ($topmodule == 2) {
$divtopwidth = '48.5%';
} else if ($topmodule == 1) {
$divtopwidth = '100%';
}$user8divstyle = "";
$user9divstyle = "box-ended";
if ( !mosCountModules('user9') ) {
$user8divstyle = "box-ended";
}
?><?php if ($topmodule) { ?>
<!-- BEGIN: SPOTLIGHT -->
<div id="ja-spotlight-top" class="ja-spotlight-top clearfix">
<?php if ( mosCountModules('user8') ) { ?>
<div class="<?php echo $user8divstyle; ?>" style="float: left; width: <?php echo $divtopwidth ?>;">
<?php mosLoadModules ( 'user8', -3 ); ?>
</div>
<?php } ?><?php if ( mosCountModules('user9') ) { ?>
<div class="<?php echo $user9divstyle; ?>" style="float: right; width: <?php echo $divtopwidth ?>;">
<?php mosLoadModules ( 'user9', -3 ); ?>
</div>
<?php } ?></div>
<!-- END: SPOTLIGHT -->
<?php } ?>
November 21, 2006 at 9:01 pm #211895Thanks for the quick reply; this didn’t exactly work for me, though. It pushed the body content off to the right side when there is anything in user8 or user9…any ideas what i did wrong?
Kelly B
-
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by Hung Dinh 18 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum