-
AuthorPosts
-
dragonlord Friend
dragonlord
- Join date:
- January 2008
- Posts:
- 57
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 6
- Thanked:
- 15 times in 1 posts
October 3, 2008 at 6:48 pm #134012Ok, 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 7, 2008 at 8:34 am #274060please attach index.php here, i will check
dragonlord Frienddragonlord
- Join date:
- January 2008
- Posts:
- 57
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 6
- Thanked:
- 15 times in 1 posts
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 13, 2008 at 3:09 am #274955please 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 } ?> -
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Sherlock 16 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum