As I was about to apply this to another site, I realized it's not really whether the user is logged on or not that I care about when displaying the joomla login page. I dont want my users to see any part of it ever. So I changed my template as follows:
Replaced
[code:1]<jdoc:include type="component" />[/code:1]
with
[code:1]<?php if($option=="com_user") { ?>
<jdoc:include type="modules" name="juserpage" style="xhtml" />
<?php } else { ?>
<jdoc:include type="component" />
<?php } ?>
[/code:1]
So by testing that the joomla option/component being loaded is com_user, and not ever dislaying it, I ensure they never see any of the joomla user stuff. If you wanted, you could specify the view of the component (eg login page only), but I dont need to do this
I then publish a CBLogin module, and anything else I want, to the module position "juserpage".
Edit: Note that I had forgot an equaly sign in my if statement. I only had 1, which set the variable, but need 2 to compare. Silly me.
Post edited by: ckayfish, at: 2010/05/09 21:05