Thursday 30 November 2006 3:26:02 am
Hi, shouldn't be easier to just include the login toolbar full view in your homepage? Define a new toolbar in your toolbar.ini.append.php file (append at the end):
<?php /* #?ini charset="iso-8859-1"?
[Toolbar_special_login]
Tool[]
Tool[]=login
*/ ?>
In your pagelayout.tpl or wherever you want the login block to be loaded add this:
{section show=ezini( 'Toolbar_special_login', 'Tool', 'toolbar.ini' )|count}
<div id="toolbar-special_login">
<div class="toolbar-design">
{tool_bar name=special_login view=full}
</div>{* id="toolbar-design" *}
</div>{* id="toolbar-right" *}
{/section}
You can always create an override for the login.tpl in full view, but the default one already contains the login and register functionalities. This code has not been tested but must be a good reference i think. Cheers.
Microblau SL
http://www.microblau.net
|