Forums / Developer / Modify .php file

Modify .php file

Author Message

Antoine Schmid

Thursday 09 March 2006 2:02:43 am

Hello,

For the purpose of my site, I need the users to be validate by a moderator.

The way I found to do this is by changing $mail->setReceiver( $reciever ); by $mail->setReceiver( $emailSender ); in register.php.

The problem is that I'm not supposed to modify this file. What would you consel me ? Should I create a new module just for this ?

The question is : what will say my provider about this ?

Well I don't know what I must do...

Thanks for the help

Antoine

Kåre Køhler Høvik

Thursday 09 March 2006 6:59:44 am

Hi

You can use the approve workflow to approve your new users. See : http://ez.no/doc/ez_publish/technical_manual/3_6/reference/workflow_events/approve

Kåre Høvik

Antoine Schmid

Friday 10 March 2006 5:14:09 am

Well,

I've tried ! I've put an event/approve workflow on the user section, but the creation of a new user works as well as before...

I suppose that I'm doing something wrong, but by the posts I've read in this forum, it's not a trivial task.

Perhaps you have some hints to give me...

Kåre Køhler Høvik

Friday 10 March 2006 5:23:35 am

Hi

Make sure to :
1. Create workflow, with workflow event approve, on correct section.
2. Go to URL : trigger/list , and associate the new workflow with the content/publish/before trigger.
3. Make sure the workflow cronjob is run.

If this does not help, I suggest you turn on SQL output and site redirection debug, and to see if the workflow system is called at all.

Kåre Høvik

Antoine Schmid

Monday 13 March 2006 5:00:17 am

Hi,

In fact, I have another workflow for the creation of another object. In this second case, when my user try to create the object, it works, but the object doesn't shows up, which is correct because of the workflow.

But for my users, they are directly created and accessible...

And I don't know what I should modify (if I should)...

Any hints ?

eZ debug

Timing: Jan 18 2025 11:04:54
Script start
Timing: Jan 18 2025 11:04:54
Module start 'content'
Timing: Jan 18 2025 11:04:55
Module end 'content'
Timing: Jan 18 2025 11:04:55
Script end

Main resources:

Total runtime1.3707 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.0074 588.7109180.8438
Module start 'content' 0.00741.2017 769.5547557.6094
Module end 'content' 1.20920.1615 1,327.1641337.3828
Script end 1.3706  1,664.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.3336210.0002
Check MTime0.00150.1094210.0001
Mysql Total
Database connection0.00080.059610.0008
Mysqli_queries1.288293.98022000.0064
Looping result0.00310.22801980.0000
Template Total1.337497.620.6687
Template load0.00220.163820.0011
Template processing1.335297.406620.6676
Template load and register function0.00020.013110.0002
states
state_id_array0.00120.086310.0012
state_identifier_array0.00310.227120.0016
Override
Cache load0.00180.1325340.0001
Sytem overhead
Fetch class attribute can translate value0.00220.161430.0007
Fetch class attribute name0.00210.153760.0004
XML
Image XML parsing0.00090.064230.0003
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00460.3323260.0002
String conversion0.00000.000730.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
6content/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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs