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.