When the site is set to only allow the admin to create user accounts, as in no self-registration option, the webform displays "You must login or register to view this form." When the webform permission is set to "authenticated users" only.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | webform_register_link2-5.patch | 1.3 KB | quicksketch |
| #8 | webform_register_link2-6.patch | 1.36 KB | quicksketch |
| #8 | webform_register_link3-6.patch | 3 KB | quicksketch |
Comments
Comment #1
ianchan commentedsame problem...
Comment #2
quicksketchThanks, definitely sounds like a valid problem.
Comment #3
Alan.Guggenheim commentedI have a similar issue.
On a webform that is setup to require login, when you are not logged-in, you get the message:
You must login or register to view this form.
The login link works, but the register link does not. The link is:
http://www./user/register?destination=node/146?reset=&gid=12
and it does not go to the register page, it returns to the same page.
Comment #4
quicksketchCould you be more descriptive about what the link currently is and how it is supposed to look? Is the domain name missing? It looks like Organic Groups is modifying the link also somehow, adding in "reset" and "gid".
Comment #5
Alan.Guggenheim commentedSure. Thanks for the prompt response. The domain name is fine. Yes, I have OG but also CiviCRM and using civiCRM profiles.
The link for login and register, show (domain repalced by :
http://www./user/login?destination=node%2F146
for login and
http://www./user/register?destination=node%2F146
for register
When I actually click on the links, I go to:
http://www./user/login?destination=node%2F146
for login, which is fine, and
http://www./content/voters-guide-survey-2010-elections?reset=1&gid=12
for register, instead of going to registration page wich is normally at
http://www./user/register
Comment #6
quicksketchI'm not sure I can help with that issue. Sounds like another module is modifying the login path.
Comment #7
Alan.Guggenheim commentedI am afraid you might be correct. I will dig. Thanks
Comment #8
quicksketchI've committed the attached round of patches to Webform to hide the "register" link unless the user can actually use that page.
Comment #17
dougthelegoman commentedI am having the same issue. The register link simply reloads the page. When I log on to edit the page, the link disappears because I am already registered. Is there a way to change the destination of this link?
Link: http://www.bigbluesme.com/user/register?destination=node%2F23%23comment-...
desired destination: http://www.bigbluesme.com/user/register/member
Thanks!
(Sorry if I bungled up the issue settings. I'm new to this.)
Comment #18
quicksketch@dougthelegoman: Per the submission guidelines (which you only see when creating a new issue, so you probably missed them), leaving closed issues that are more than a few months old is usually the right thing to do and instead open a new issue. From what I can tell from your description, Webform sounds like it's working properly. The user registration form lives at user/register, not user/register/member. Sounds like you've got some custom code on the site that is doing a drupal_goto() from "user/register" to "user/register/member". However since Webform includes a "destination" property in the URL, that takes precedence inside drupal_goto() and the page ends up just reloading. Wherever you're doing the redirect from "user/register" to "user/register/member", you'll need to empty out $_GET['destination'] so that it doesn't interfere with drupal_goto().
Comment #19
dougthelegoman commentedThanks!
I'll give that a try.
(No, I hadn't seen the submission guidelines. I'd just seen comments here and there saying look for someone else with the same issue. Thanks for the pointer! I'll be sure to read through them.)
Comment #20
dougthelegoman commentedComment #22
quicksketchThanks for updating the issue category. Sounds like you got it fixed? Did you use the approach I outlined or was it something else entirely?
Comment #23
dougthelegoman commentedYep, it's fixed. I sent your comment to my php guy and he found the custom code. He ended up changing the code for the register link though. I imagine that was easier from a coding perspective.
Thanks again!