Share » Forums » General » Problem of inscription

Problem of inscription

Problem of inscription

Tuesday 13 February 2007 7:36:28 am - 19 replies

Modified on Tuesday 13 February 2007 8:01:45 am by Mateo Barahona

Author Message

Kristof Coomans

Wednesday 14 February 2007 12:08:04 am

Hi Mateo

Do you mean you have a pre-publish approval workflow when a user gets published?

Unfortunately the approval collaboration notification is turned off by default, and as far as I know there's no switch to turn it automatically on for each new user. Maybe a workflow event can do the job? A code sample that can help you: http://ezpedia.org/wiki/en/ez/adding_collaboration_notification_rules

This reminds me of a similar topic: http://ez.no/community/forum/general/notification_after_user_register

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mateo Barahona

Wednesday 14 February 2007 12:53:46 am

I will test that.

Thanks!

Kristof Coomans

Tuesday 20 February 2007 11:16:11 pm

Hi Mateo

Did you succeed in using the code? I've made a workflow event because I need it to. I'll release my code around noon.

Edit: sooner as expected, http://ez.no/community/contribs/workflow/add_collaboration_rule :-)

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mateo Barahona

Wednesday 21 February 2007 12:55:52 am

Ho, i was just starting to code it cause i had many things to finish before (pagination, small modules etc )
So, i thank you VERY MUCH.

But... Never used workflow with ez publish, can you help me a little? (i'll go watch some tutorials but yours is working as standards?)

Kristof Coomans

Wednesday 21 February 2007 1:13:19 am

I'll see what I can do... Maybe a flash tutorial would be nice to have. To be continued...

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mateo Barahona

Wednesday 21 February 2007 1:21:04 am

You're great man!
I'll see what i can do alone with your workflow for now.

Kristof Coomans

Wednesday 21 February 2007 3:22:19 am

OK, here's a small flash movie showing you how to configure the workflow event: http://pubsvn.ez.no/addcollabrule_config.htm . I hope it's clear.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mateo Barahona

Wednesday 21 February 2007 3:30:11 am

I don't know how to thank you.. But... THANKS

Mateo Barahona

Wednesday 21 February 2007 5:48:30 am

It's quite a shame but.. Where do i put the sources?

I thought it was an extension but seems not.

Sorry to bother you so much :-(

Mateo Barahona

Wednesday 21 February 2007 5:55:42 am

(Ok forget it, I just forgot to clear the cache, i'm so damn bad)

The only thing that bother me is that you can chose "membership approval", and i can't.

This workflow has a dependencie? (i just downloaded your other extension, just in case ^^)

Kristof Coomans

Wednesday 21 February 2007 6:15:08 am

Hi Mateo

No, addcollabrule doesn't depend on membership. The configuration interface just shows any type of collaboration notifications you can receive (membership approval plugs in the collaboration system, it was installed on my dev site that's why you saw it in the flash demo).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mateo Barahona

Wednesday 21 February 2007 8:24:37 am

I installed it as you screened it but:
-I don't have the "Affected versions" field (choice)
-No mail is sent to the user when i configure user account settings

I must have done something wrong...

Kristof Coomans

Wednesday 21 February 2007 11:13:59 pm

<i>I don't have the "Affected versions" field (choice)</i>
This is new in eZ publish 3.9. You're probably using 3.8?
<i>No mail is sent to the user when i configure user account settings.</i>
What exactly do you mean with the user account settings?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mateo Barahona

Thursday 22 February 2007 12:37:18 am

Yes, i have Ez 3.8.0.

Maybe i was not very clear, but what i want is that an email is sent to an user when his account is "enabled" by the admin (when he registers, his account is "disabled" and he must wait for the admin to enable it, but he never knows when the admin does it!).

The admin enables the account through "User account setting", in both front and back office (though it seems a little buggued in front).

Sorry for my poor english.

Kristof Coomans

Thursday 22 February 2007 12:53:24 am

Hi Mateo

How did you accomplish that the user is disabled after he registers?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mateo Barahona

Thursday 22 February 2007 1:06:33 am

I overrided the file design/standard/templates/user/registrationinfo.tpl so that for 2 profiles the mail sent to the user doesn't include the link that validates the account.

Way used by default and for 8 profiles:
{'Your account information'|i18n('design/standard/user/register')}
{'Username'|i18n('design/standard/user/register')}: {$user.login}
{'Email'|i18n('design/standard/user/register')}: {$user.email}

{section show=$password}
{'Password'|i18n('design/standard/user/register')}: {$password}
{/section}

{section show=and( is_set( $hash ), $hash )}

{'Click the following URL to confirm your account'|i18n('design/standard/user/register')}
http://{$hostname}{concat("user/activate/",$hash)|ezurl(no)}

{/section}

What i did for my "special" profiles (maybe wrong way):
{'Thank you for registering at FRANCE-GAME.ORG, you will receive your registration email confirmation.'|i18n('design/standard/user/register')}

{'Email'|i18n('design/standard/user/register')}: {$user.email}

{'Your account information'|i18n('design/standard/user/register')}
{'Username'|i18n('design/standard/user/register')}: {$user.login}

{section show=$password}
{'Password'|i18n('design/standard/user/register')}: {$password}
{/section}
{user|attribute(show)}
{section show=and( is_set( $hash ), $hash )}

{'Click the following URL to confirm your account'|i18n('design/standard/user/register')}
http://{$hostname}{concat("user/activate/",$hash)|ezurl(no)}

{/section}

{'Link to user information'|i18n('design/standard/user/register')}:
http://{$hostname}{concat('content/view/full/',$object.main_node_id)|ezurl(no)}

(I know section is deprecated but the project was started by an other developper so i just did like him)

In fact, i just removed the link, so the user can't enable his account himself.

Kristof Coomans

Monday 26 February 2007 11:00:28 pm

In that case it gets a little harder. I understood you wrongly, thought you were using an approval workflow (see some replies ago). I suggest using one of the extensions to send out a mail manually (see http://ezpedia.org/wiki/en/ez/e_mail ). Enabling an account does not create a notification event.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mateo Barahona

Tuesday 27 February 2007 1:03:09 am

Ok thanks!

By the way, i used your extension, it's very useful to handle new publications.

Thanks for everything.

Jianjun Hu

Thursday 28 June 2007 1:37:50 am

Good thread!
Maybe I will use it later.

I think that there are two small shortcomings of eZ forum:
1. User can't collected interested topics.
2. User can't list all the message he/she posted.

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu