Problem/Motivation
Currently, if the registration form/link is not available for any reason (event full, registrations closed or disabled, not enough permissions, etc.) the field appears empty so the user cannot understand what to do.
Proposed resolution
If registrations are closed, output a message that explains why, using the errors generated by the registration_status() function.
If registrations are open but there is a permission problem, output an other message:
- For anonymous: Login or create an account to register.
- For authenticated people: You are not allowed to register.
I suggest to add a checkbox to the formatters settings to allow the site builders to disable this message if they don't want it.
Remaining tasks
Patch, Review, Commit
User interface changes
New checkbox in the formatters settings.
New message that replaces registration form or link under certain circumstances.
API changes
None.
Data model changes
A new formatter setting to store.
Comment | File | Size | Author |
---|---|---|---|
#3 | registration_ux_add_a_message-2579997-3.patch | 5 KB | DuaelFr |
Comments
Comment #2
DuaelFrComment #3
DuaelFrHere is the patch.
Comment #4
maddentim CreditAttribution: maddentim commentedI need this functionality for a project as well. I successfully applied the patch and it seems to work. I will test some more and give feedback. One initial thought would be that Login link / Create Account links should take the user back to the entity that they started from... I'll see if I can edit your patch to that effect. Thanks much
Comment #5
wxactly CreditAttribution: wxactly at ThinkShout commentedComment #6
Chris Matthews CreditAttribution: Chris Matthews commentedThe patch in #3 is 3 years old, but still applied cleanly to
7.x-1.x-dev. After reviewing and testing this feature really is a very much needed UX improvement to the module so changing the status to RTBC.