Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • rwillmore Friend
    #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 Friend
    #211847

    Bump, anybody can answer or point me in the right direction??

    kellyb Friend
    #211850

    Bump, 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 B

    Hung Dinh Friend
    #211871

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

    kellyb Friend
    #211895

    Thanks 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

    Hung Dinh Friend
    #211920

    Just update the above post, please re-apply this change.

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

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