Ok, so I'm trying to install the nf_registration_mod
I'm not clear on how some things will work. The instructions say to check "Don't display this nodeprofile on the user account page" for the content types used.
But I'm thinking I want to display the information they give during signup on the user account page, so shouldn't I have that checked for at least one of the content types in the pageroute? Or can you explain how I will control the profile?
There is a line in the instructions that says: "set the 'Customized redirect' to user/!uid" (from the add pageroute section) but there is no such option, where do I do this
I'm having trouble getting it to work correctly. I tried disabling the email verification on registration, but after choose the membership type and filling out the username/password fields, it goes straight to the home page.
When that is not enabled, I get access denied after going through page routes and there is no message telling the user to check email.
Also when I access the user page, I still see all the different profile tabs
What's the best method to get this to work?
Comments
Comment #1
rconstantine commentedDo not check this box! This module does it's own thing when it comes to displaying the pages on the account page and this is a nodeprofile setting, not an nf_registration_mod setting. Because this module allows for multiple membership types, this potentially means that there are more nodeprofile content types than a single user would actually use. For example, in my case I have three content types that collect addresses in different ways, depending on the membership type. Checking this box would show all three content types in the user's account page, even though two do not apply to him!!! So do not check the box! :-) [I'm feeling over-dramatic this evening]
It is only found in the latest dev version of pageroute and is very handy. I do believe I stated in the README which versions of the files I am using. You should have compared them with what you have installed.
Can you do me a favor? First, verify that it works with email verification ON. If it does, then I need to test it better with it OFF. I must have overlooked something.
Hmm. Looks like you are right. I thought Drupal took care of the notice to check email. I'll poke around and if it doesn't, I'll fix it in my module. Off of the top of my head, I don't recall what Drupal does with email verification enabled and my module not enabled. Does it tell the user to check their email?
Huh? Which profile tabs? You should still see tabs like 'view' and 'edit' and maybe 'contact' and so on. The difference should only be on the 'view' tab. If the settings match what is in the tutorial, then you'll see links to each nodeprofile page on the pageroute you've defined for that user's membership type.
I hope that helps. Let me know if you have more questions.
Comment #2
zahor commentedYes, without your module, Drupal usually says "Further instructions have been sent to your email address...,..."
I tried signing up and checked my email anyway (email was there) but when I logged in, the only information saved was my username. None of the fields I filled out (profile fields) were saved.
I'll retry it all with the updated pageroute module and let you know what has changed.
When I click on "My Account" I get tabs for the two different profile types + a tab for the main profile tab (the one they have in common).
Comment #3
rconstantine commentedOkay, I'll try to make sure that the message about the email gets through.
When you say "None of the fields I filled out (profile fields) were saved.", what fields are you talking about? You should only have username, email, and password because you should have not checked the 'Show on registration page' checkbox for the nodeprofile content type, per the USAGE example in the README of this module.
It sounds like you see the tabs correctly, no? And they aren't really tabs, but secondary tabs, right? They're more like links under the regular tabs, right?
Comment #4
zahor commentedYes the are links under the primary tabs. I'm using pageroutes to add the nodeprofile pages to the registration process but that's what is not being saved. After logging in, all the fields are blank...except when I click the pageroute (that displays in the menu). When I click the "My Account" tab...nothing.
I'm going to trying starting it from scratch to see if it works.
I think I may create a page that displays the message to check their email and have the pageroute redirect to that.
Comment #5
zahor commentedYes the are links under the primary tabs. I'm using pageroutes to add the nodeprofile pages to the registration process but that's what is not being saved. After logging in, all the fields are blank...except when I click the pageroute (that displays in the menu). When I click the "My Account" tab...nothing.
I'm going to trying starting it from scratch to see if it works.
I think I may create a page that displays the message to check their email and have the pageroute redirect to that.
Comment #6
zahor commentedYes the are links under the primary tabs. I'm using pageroutes to add the nodeprofile pages to the registration process but that's what is not being saved. After logging in, all the fields are blank...except when I click the pageroute (that displays in the menu). When I click the "My Account" tab...nothing.
I'm going to trying starting it from scratch to see if it works.
I think I may create a page that displays the message to check their email and have the pageroute redirect to that.
Comment #7
zahor commentedYes the are links under the primary tabs. I'm using pageroutes to add the nodeprofile pages to the registration process but that's what is not being saved. After logging in, all the fields are blank...except when I click the pageroute (that displays in the menu). When I click the "My Account" tab...nothing.
I'm going to trying starting it from scratch to see if it works.
I think I may create a page that displays the message to check their email and have the pageroute redirect to that.
Comment #8
rconstantine commentedI haven't heard any more from you. Did you give up? See this issue for some tips: http://drupal.org/node/165230
If you don't reply within a couple of weeks, I'll just close the issue.
Comment #9
zahor commentedSorry I had stopped working on it because of the "assign role" problem. Once that started to happen, I put it aside for a while to wait to get that fixed. I will do it today and get back to you.
Comment #10
rconstantine commentedWhich "assign role" problem? I don't recall. Did you see I released a new dev version with auto-role-assign? Is that what you mean?
Comment #11
zahor commentedYes, I had posted that support request also.
I ended up going an easier route (than pageroutes) for the registration. I wasn't sure how I'd create the templates for the user profiles as I liked.
So I used this module, but only used it for users to choose their account types thus get the related role. The pageroute consisted of a thank you message in one case with further instructions and a link to CiviCRM profile in another.
What I did was create just one nodeprofile, which is displayed on the profile page. But, I created a custom (userprofile)-edit.tpl.php file with conditions that printed fields based on role (what I did was to ensure I grouped all fields to make it easier to print an entire group for particular roles and not for others). On the nodeprofile, I also printed information based on role.
Thanks for the great module!
Comment #12
zahor commentedBy the way, is it possible to bypass the select list by using a "click here to become a _______" on another page?
For example, on my front page, I explain the two membership options and they both have "Click here to continue" links but still take them to the page where they have to choose.
It would be great if by clicking, the particular account type is selected. How can I do that?
Comment #13
rconstantine commentedWith what you've described, you can do two things.
First, I think I give you a place to describe how to choose which membership type to select, so you're sort of duplicating that feature on a page prior to registration.
However, if that's what you want to do, you can use an hook_form_alter function and either:
1) set a #value for the drop down as the item you want and unset the other options from the drop down
2) submit the form programmatically (the membership selection form) - I learned how to do that from Matt Westgate's new Drupal book.
3) simply set the $default_value of the drop down, which would allow the user to change their mind
So does this fix this issue for you? Please change the status if so.
Comment #14
zahor commentedI happen to have that book, but haven't had the time to read it. I've been meaning to, but work just keeps coming up. I'll browse through it to look for that, thanks for all your help.
Comment #15
fossie commentedSorry to reopen this issue, but I think I ran in the same problem that the fields of my profile can't be updated.
I have nf_registration_mod installed
Also configured Nodeprofile, nodefamily and usernode
Everything goes well, I can create a new user, the user fills in the username and email address
Once he clicks the link in the email, he goes to the registration page (one time login) and he can fill in all the required details for the choosen profile.
He can submit and that all ok!!
But when the same user wants to edit his profile data, the data isn't updated when he submits (although drupal message is displayd that the data is stored correctly!).
Process: go to my account: then click edit, their is a link (under the primary tabs) with account details and the name of the profile (content type).
Maybe this isn't a nf_registration_mod problem, maybe a nodeprofile/nodefamily issue, but I can't google an answer. Maybe someone had the same issue before?
Any help is welcome,
TIA,
Fossie
Comment #16
rconstantine commentedNote, this should now be fixed in version 1.3. Also see http://drupal.org/node/173829
Be sure to read the project page as I updated some configuration notes there.