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 ?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.