Forums / Developer / Need some information on customizing the login page

Need some information on customizing the login page

Author Message

Satheesh R

Tuesday 21 November 2006 10:59:55 pm

Hello all,
I have created a space for user login in home page(USER Side) with two buttons login & register
for register i called that '/user/register' it works well,

for login what i have to do, i have create my own PHP script for login process or is there any standard tpl file.

more over i need some information about the followings,
1. how to get the values from from user designed forms and how to store those data's in table <any tutorial or manual>..?
please guide me

-
Satheesh R

Thanks and Regards
R Satheesh

Jacobo Quiles

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