Hi hbf1000,
Normally your module will be loaded via a snap of code like this
[PHP]<?php if ($this->countModules(‘user4’)) { ?>
<div id=”ja-search”>
<jdoc:include type=”modules” name=”user4″ style=”raw” />
</div>
<?php } ?>[/PHP]
This is just an example for loading modules at the user4 position, here if you don’t want to load modules once users login you can change the above to this
[PHP]<?php
$user = & JFactory::getUser();
if ($this->countModules(‘user4’) && $user->get(‘guest’)) { ?>
<div id=”ja-search”>
<jdoc:include type=”modules” name=”user4″ style=”raw” />
</div>
<?php } ?>[/PHP]
Notice here about the change [PHP]<?php
$user = & JFactory::getUser();
if ($this->countModules(‘user4’) && $user->get(‘guest’)) { ?>[/PHP]
It check to see if the user is a guest.
I hope you got this and would be able to apply this for your own module