Needs review
Project:
Signup Rules
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Mar 2011 at 12:02 UTC
Updated:
30 Apr 2011 at 11:02 UTC
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
Comment #1
meichr commentedHi 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.
Comment #2
MasterChief commentedHi 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.
Comment #3
meichr commentedHi 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.
Comment #4
MasterChief commentedOk thank you for your time, i will check this issue to know when it will be ready :)
Comment #5
MasterChief commentedHi meichr!
Just a message to have some news :)
I wish you to have a good day (^_^)
Comment #6
BenK commentedSubscribing
Comment #7
MasterChief commentedAnother message to have some news,
just a short answer would be good (^_^)