Hi Meichr!

I am testing your module and i have a problem.

I would like for example when the event is "Signup to content was closed" to hide the signup form to prevent users to cancel their signup.

But when i choose this event, actions don't show up and so i can't choose "Forbid displaying signup form".

Maybe change something or add a new action ?

Let me know what you think is the better.

Comments

meichr’s picture

Assigned: Unassigned » meichr
Status: Active » Needs review

Hi MasterChief,
thanks for the issue.

To achieve the wanted behaviour a new condition "Is signup open for content" is needed. I added this condition to the signup rules module, you can download a new tgz file here and just replace the old one without the need to do the module upgrade procedure.

After installation of the new version the following triggered rule can be configured:
1) Event = "Display of signup form is being inquired"
2) Condition = NOT "Is signup status open for content"
3) Action = "Forbid displaying of signup form"

The reason you cannot use the "Signup status open/close events" lies in the architecture of the signup module API. The display status of the signup form can only be set within rules triggered by the event "Display of signup form is being inquired". Therefore those actions do not appear outside of this event.

I hope this signup rules behaviour is better understandable by the README.txt.
Please feel free to ask any further questions on this matter and else. Also if more documentation would be needed.

If you find the feature works as you need, please set the status to
"reviewed & tested by the community" in this issue,
thanks,
Christian.

MasterChief’s picture

Hi again Meichr !

Now it's working well but maybe too well for me, what i want to say is i would like to hide the register form but not the view with the list of registred users.

Is it possible ?

Like when signups are closed, you see the view but the button signup disapear.

Thank you for your help and your work.

meichr’s picture

Hi MasterChief,
thanks for pointing that out.

In the original project, users who can sign up, have a different role than users who administrate the signups. None have to see the other's signup forms. I have a condition checking the user's role in the triggered rule checking the form display status. So, the effect, that more forms are suppressed by the signup api, was not an issue.

But that I have to improve before the functionality is transparent and the individual forms can be suppressed. Thanks for your tests and time. Though, I'll need a couple of days to refine the code to reflect this.

I'll check back here, when it's ready.

Christian.

MasterChief’s picture

Ok thank you for your time, i will check this issue to know when it will be ready :)

MasterChief’s picture

Hi meichr!

Just a message to have some news :)

I wish you to have a good day (^_^)

BenK’s picture

Subscribing

MasterChief’s picture

Another message to have some news,

just a short answer would be good (^_^)