Adding prefix to all usernames at registration?

Author Message

Mikael Johansson

Monday 18 July 2005 3:50:01 am

I want all users that register at my site to have their user names prefixed. For example, user "peter" wold get the username "ext-peter".

Only users added through the admin interface can have login names that do not have the prefix.

How would I do this? I tried looking at "register.php" but can't find which variable to change.

Mikael Johansson, Sweden

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

Main resources:

Total runtime0.6767 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0391152.6406
Module start 'layout' 0.00520.0023 740.679739.4766
Module start 'content' 0.00750.6677 780.1563426.5156
Module end 'content' 0.67520.0014 1,206.67198.1250
Script end 0.6766  1,214.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4719160.0002
Check MTime0.00120.1835160.0001
Mysql Total
Database connection0.00060.087510.0006
Mysqli_queries0.639194.4492460.0139
Looping result0.00050.0671440.0000
Template Total0.645295.420.3226
Template load0.00320.472220.0016
Template processing0.642094.881520.3210
Template load and register function0.00020.027510.0002
states
state_id_array0.00080.118010.0008
state_identifier_array0.00150.224620.0008
Override
Cache load0.00250.372160.0004
Sytem overhead
Fetch class attribute can translate value0.00110.155510.0011
Fetch class attribute name0.00140.212410.0014
XML
Image XML parsing0.00010.019910.0001
class_abstraction
Instantiating content class attribute0.00000.001310.0000
General
dbfile0.00070.1036100.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs