Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • dragonlord Friend
    #134012

    Ok, this is a tricky question.

    I have set the right module position in this if phrase

    <?php if(JFactory::getUser()->get(‘guest’)) : ?>
    <jdoc:include type=”modules” name=”right” style=”jarounded” />
    <?php endif; ?>

    The “if” phrase has the function to set the right module position only visible to guests. If a User logged in the right module position should disappear.

    This works well, but i have one problem. I want to use the whole space of the main body and the space of the right module position, if an user is logged in! But in my case the main body stopped at the beginning of the right module position if an user is logged in although there is no module loaded. Here a few pictures

    1) Startpage, no user is logged in. In the right module position are 2 modules loaded.

    2) Startpage, if an user is logged in. The main body stopped at the beginning of the right module position although there is no module loaded.

    3) Startpage, if an user is logged in and no module is loadad on the right module position, also not as guest!

    Do anyone knows how it is possible to use the space of the right module position if modules are enabled only for guests?

    Sherlock Friend
    #274060

    please attach index.php here, i will check

    dragonlord Friend
    #274765

    Here the index.php


    1. index.zip
    Sherlock Friend
    #274955

    please edit index.php
    search those lines:

    <?php if ($ja_right) { ?>
    <!-- BEGIN: RIGHT COLUMN -->
    <div id="ja-col2">
    <div class="ja-innerpad">
    <?php if(JFactory::getUser()->get('guest')) : ?>
    <jdoc:include type="modules" name="right" style="jarounded" />
    <?php endif; ?>
    </div></div><br />
    <!-- END: RIGHT COLUMN -->
    <?php } ?>

    Change to

    <?php if (($ja_right)&&(JFactory::getUser()->get('guest'))) { ?>
    <!-- BEGIN: RIGHT COLUMN -->
    <div id="ja-col2">
    <div class="ja-innerpad">

    <jdoc:include type="modules" name="right" style="jarounded" />

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

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

This topic contains 4 replies, has 2 voices, and was last updated by  Sherlock 16 years ago.

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