Disable register user in login

Author Message

Christian Lundvang

Monday 08 September 2003 7:14:16 am

Hi.

How do I disable registration of new user in the login-template?

--Christian--

--
Best Regards
Christian Lundvang
http://www.nxc.no

Tony Wood

Monday 08 September 2003 7:28:13 am

The way we used to do it in 3.1 is below. I just tested in 3.2b2 and looks to work ok. However there may be a better way in 3.2, I had hoped for this to be an ini setting with other things like tipafriend set...

Does anyone know a cleaner way of doing this?

=== disable user register
comment out:

$ViewList["register"] = array(
"script" => "register.php",
"params" => array( ),
"default_navigation_part" => 'ezmynavigationpart',
'single_post_actions' => array( 'PublishButton' => 'Publish',
'CancelButton' => 'Cancel' ) );
from kernel/user/module.php

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Christian Lundvang

Monday 08 September 2003 7:34:12 am

Thanks.

In login.tpl:
{*<input class="button" type="submit" name="RegisterButton" value="{'Sign Up'|i18n('design/standard/user','Button')}" />*}

--
Best Regards
Christian Lundvang
http://www.nxc.no

Paul Borgermans

Monday 08 September 2003 7:36:18 am

It is really simple!

Put this in your site.ini.append(.php)

[SiteAccessRules]
Rules[]=Access;disable
Rules[]=Module;user/register

You cab specify entire modules or just some functions within a module

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Tony Wood

Monday 08 September 2003 9:14:36 am

Thanks Paul... I knew there would be a better way :)

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

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 21:09:08
Script start
Timing: Jan 18 2025 21:09:08
Module start 'layout'
Timing: Jan 18 2025 21:09:08
Module start 'content'
Timing: Jan 18 2025 21:09:09
Module end 'content'
Timing: Jan 18 2025 21:09:09
Script end

Main resources:

Total runtime0.0206 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.0061 587.9141152.6250
Module start 'layout' 0.00610.0032 740.539139.4453
Module start 'content' 0.00930.0085 779.984493.3203
Module end 'content' 0.01780.0028 873.304738.3047
Script end 0.0206  911.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003215.4019140.0002
Check MTime0.00136.4884140.0001
Mysql Total
Database connection0.00094.269010.0009
Mysqli_queries0.002512.178530.0008
Looping result0.00000.068210.0000
Template Total0.002311.010.0023
Template load0.00146.590110.0014
Template processing0.00094.371810.0009
Override
Cache load0.00094.443510.0009
General
dbfile0.00031.337980.0000
String conversion0.00000.047440.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