Forums / Setup & design / how to create a login page to an existing website

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.

eZ debug

Timing: Jan 18 2025 15:13:35
Script start
Timing: Jan 18 2025 15:13:35
Module start 'content'
Timing: Jan 18 2025 15:13:36
Module end 'content'
Timing: Jan 18 2025 15:13:36
Script end

Main resources:

Total runtime1.0747 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.9922180.8125
Module start 'content' 0.00570.9507 769.8047566.6328
Module end 'content' 0.95640.1182 1,336.4375337.3672
Script end 1.0746  1,673.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3635210.0002
Check MTime0.00150.1356210.0001
Mysql Total
Database connection0.00080.071710.0008
Mysqli_queries1.009693.94802000.0050
Looping result0.00170.15371980.0000
Template Total1.050197.720.5251
Template load0.00190.179720.0010
Template processing1.048297.533720.5241
Template load and register function0.00010.008910.0001
states
state_id_array0.00080.069910.0008
state_identifier_array0.00100.089620.0005
Override
Cache load0.00170.1545590.0000
Sytem overhead
Fetch class attribute can translate value0.00080.075430.0003
Fetch class attribute name0.00080.075760.0001
XML
Image XML parsing0.00070.067330.0002
class_abstraction
Instantiating content class attribute0.00000.000970.0000
General
dbfile0.00210.1948270.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs