Ask

How can i hide some module dissapear after login in Joomla! 1.5, in my case i make module banner on home after loginĀ I back to home and banner will disspear.


Answer

Use this code for your module position in the template:

<?php
$user =& JFactory::getUser();
if ($user->guest): ?>
<jdoc:include type="modules" name="banner" style="rounded" />
<?php endif; ?>