how to create a login page to an existing website

Author Message

meriam santos

Sunday 22 March 2009 6:02:27 pm

Hi all,

i have an existing website on the internet which is available to everybody. the problem is that the use wants to have a login page so that they can post articles that are restricted to login users.

can somebody please tell me the steps on how to to this?

would really appreciate your help.

justin kazadi

Monday 23 March 2009 12:33:40 am

Hi,
put this link in to your pagelayout

<a href={'user/login'|ezurl()}>login</a>

on click you will see the login page.
i think this would help you

good luck

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

meriam santos

Monday 23 March 2009 7:40:03 pm

Hi Justin,

thanks for the info. i manage to create and overide the login.tpl

my problem is its not working? di i miss something? do i need to change anything on the configuration file site.ini for it to work?

i created a user and tried it but its not working.

when i check the log file i got this error.

[ Mar 23 2009 08:41:04 ] [x.x.x.x] index:
Undefined module: design
[ Mar 23 2009 08:41:04 ] [x.x.x.x] error/view.php:
Error ocurred using URI: /index.php/mysite_site/design/template/login

can you please tell me what i need to do or what i missed?

thanks again....

justin kazadi

Tuesday 24 March 2009 12:55:27 am

Hi,
enabled the debug and came back to us , and tell us what says the debug.

to active the debug put this code in your site.ini.append.php (of your siteaccess)

[TemplateSettings]
TemplateCache=enabled
TemplateCompile=enabled
TemplateOptimization=enabled
Debug=enabled
ShowXHTMLCode=disabled
ShowUsedTemplates=enabled

[DebugSettings]
DebugOutput=enabled

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

meriam santos

Sunday 29 March 2009 3:42:53 pm

Hi there,

i got this debug message.

Notice: eZMySQLDB::query(0.000 ms) query number per page:0 Mar 30 2009 09:55:19
SET NAMES 'utf8'

Timing: Mar 30 2009 09:55:19
Module start 'user'

Notice: Mar 30 2009 09:55:19
eZTemplate: Loading template "user/login.tpl" with resource "design"

Timing: Mar 30 2009 09:55:19
Module end 'user'

Notice: Mar 30 2009 09:55:19
eZTemplate: Loading template "loginpagelayout.tpl" with resource "design"

Timing: Mar 30 2009 09:55:19
End

Notice: Mar 30 2009 09:55:19
eZTemplate: Loading template "setup/debug_toolbar.tpl" with resource "design"

I really dont know how to activate the log in page. if i try do create a new user it's not recognized.

please help me set-up a log in page.

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 31 2025 01:21:53
Script start
Timing: Jan 31 2025 01:21:53
Module start 'layout'
Timing: Jan 31 2025 01:21:53
Module start 'content'
Timing: Jan 31 2025 01:21:53
Module end 'content'
Timing: Jan 31 2025 01:21:53
Script end

Main resources:

Total runtime0.0253 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.4141151.2266
Module start 'layout' 0.00510.0055 740.6406220.7188
Module start 'content' 0.01060.0131 961.35941,001.9609
Module end 'content' 0.02370.0016 1,963.320333.9922
Script end 0.0252  1,997.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.5477140.0002
Check MTime0.00114.3520140.0001
Mysql Total
Database connection0.00072.711610.0007
Mysqli_queries0.003614.255530.0012
Looping result0.00000.047210.0000
Template Total0.00114.310.0011
Template load0.00093.384610.0009
Template processing0.00020.914610.0002
Override
Cache load0.00062.328410.0006
General
dbfile0.00124.743780.0001
String conversion0.00000.031140.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