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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:01:33
Script start
Timing: Jan 18 2025 15:01:33
Module start 'layout'
Timing: Jan 18 2025 15:01:33
Module start 'content'
Timing: Jan 18 2025 15:01:33
Module end 'content'
Timing: Jan 18 2025 15:01:33
Script end

Main resources:

Total runtime0.0167 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.1797152.6406
Module start 'layout' 0.00620.0030 741.820339.4766
Module start 'content' 0.00920.0054 781.296989.4922
Module end 'content' 0.01450.0022 870.789130.3047
Script end 0.0167  901.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002917.2973140.0002
Check MTime0.00127.0755140.0001
Mysql Total
Database connection0.00053.267310.0005
Mysqli_queries0.002917.315930.0010
Looping result0.00000.084010.0000
Template Total0.001710.310.0017
Template load0.00105.720210.0010
Template processing0.00084.501610.0008
Override
Cache load0.00063.690110.0006
General
dbfile0.00021.427980.0000
String conversion0.00000.071240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs