Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • leadict Friend
    #117109

    When i view a page without right column (full text, without modules), the footer margin-top changes to more than 5 px (default value in template.css).

    You can see the error in this image:

    It occurs in Internet Explorer not in Firefox.

    Some explanation about this?

    ha le-viet Developer
    #210344

    Hi leadict,

    Can I see the URL of your site?

    Regards,
    Ha Le-Viet.

    leadict Friend
    #210345

    The URL of my site is:

    http://www.xermolos.org

    But this problem occurs too in the demo page of the template (eg.contact us):

    http://www.joomlart.com/templates_demo.php?template=ja_altair

    leadict Friend
    #210389

    Hi Ha Le-Viet (i sent you a private message),

    I’m reviewing the error with footer.

    I have find this error is related with the presence of code “div id=rightcolright” in “main section of index” when content is generated as “content-full”.

    The index template includes code to select the content mode:

    if ( mosCountModules( ‘left’ ) || mosCountModules( ‘right’ ) || mosCountModules( ‘user1’ ) || mosCountModules( ‘user2’ ) ) {
    $divid = ‘content’;
    } else {
    $divid = ‘content-full’;
    }

    But pages generated as content-full keep the div “rightcolright” :

    <!– BEGIN: MAIN –>
    <div id=”main”>
    <!– BEGIN: CONTENT –>
    <div id=”content-full”>
    ….
    </div>
    <!– END: CONTENT –>
    <!– BEGIN: RIGHT COLUMN –>
    <div id=”rightcol”>
    </div>
    <!– END: RIGHT COLUMN –>
    </div>
    <!– END: MAIN –>

    Firefox overlooks the “div id=rightcol” but does not IE (removing the code of right column on index template => the margin shows correctly but you canĀ“t use modules in this location).

    Does anybody know a solution to this problem?

    Thanks.

    leadict Friend
    #210390

    I found the solution to this problem:

    Just adding the following red code to “right column section” of index template:

    <?php if ( mosCountModules( ‘user1’ ) || mosCountModules( ‘user2’ ) || mosCountModules( ‘left’ ) || mosCountModules( ‘right’ )) { ?>
    <div id=”rightcol”>
    <?php mosLoadModules(‘user1’,-2); ?>
    <?php mosLoadModules(‘user2’,-2); ?>
    <?php mosLoadModules(‘left’,-2); ?>
    <?php mosLoadModules(‘right’,-2); ?>
    </div>
    <?php } ?>

    Regards

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

This topic contains 5 replies, has 2 voices, and was last updated by  leadict 17 years, 8 months ago.

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