Needs review
Project:
One page profile
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2011 at 11:18 UTC
Updated:
5 Jul 2020 at 11:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
aidanlis commentedIt's not planned, and no work has started on this yet.
Comment #2
aidanlis commentedhttp://drupal.org/project/rel should take care of this for D7.
Comment #4
raulmuroc commentedLet's create a 7.x branch and Port it.
If you cannot port if, please just create the branch and I will work on a patch.
It is a really useful module and REL module doesn't do it at all.
Thanks in advance.
Comment #5
pianomansam commentedI agree. Even if Rel module could do this, it is overkill.
Comment #6
kika commentedAny update on this?
Comment #7
aidanlis commentedI've made a really superficial attempt at porting this, it doesn't work, but it should be simple enough for someone to fill in the gaps I've left. I've enabled the -dev releases for 7.x.
If someone wants to take this on, let me know and I can help out.
Comment #8
maximer commentedAny idea when this module will be available for D7?
Comment #9
aidanlis commentedWhenever someone steps up to help - I don't have time to do it myself at the moment :(
Comment #10
maximer commentedI'm not really a developper but I found this solution: http://www.jide.fr/english/add-profile2-form-directly-on-the-user-edit-form.
Here is the code again:
Works perfectly except the fact that the values are not stored in the form when you are coming back.
I'm not really porting the module One page Profile, it's only a custom module that I created because I really need this feature on my actual project right now. But it can of course help to port the module to D7.
Comment #11
pianomansam commented@maximer I appreciate you finding this and posting it here. It's good code and very similar to how Profile2 displays its fields on the user registration form. In Drupal 7, the core profile module is deprecated, which caused the authors of Profile2 to do their work. One Page Profile worked with the core profile module in Drupal 6. I would think we should probably keep it as such, and allow a different effort to support such a thing for Profile2.
Comment #12
aidanlis commentedOnepageprofile will support Profile2 and any other contributed module that is feasable. Thanks for the snippet maximer .. hopefully someone takes up the challenge.
Comment #13
maximer commentedAbout my snippet in comment #10, can you tell me why my stored values are not visible in my input fields?
After I saved my form and came back on the form, all the input fields are still empty. Thanks.
Comment #14
aidanlis commentedLook at the profile2_load_by_user function.
Comment #15
maximer commentedOh, thanks. My Profile type name was wrong. Everything fine now ;)
Comment #16
intrafusionWould love to see this fully working for D7, but there is a substantial problem, the user_profile_form call in onepageprofile.module on line 234 is using the wrong arguments.
The call has changed from
user_profile_form($form_state, $account, $category = 'account');in D6 touser_profile_form($form, &$form_state, $account, $category = 'account');in D7.I'm happy to help out with a fix, but I'm not sure where to start as the call to that function is trying to create the $form variable
Comment #17
oliver huynh commentedI added some basic integration with profile2, tested well but I couldn't commit my changes due to GIT denying.
Comment #18
oliver huynh commentedLog
==============
git.exe push -v --progress "origin" 7.x-1.x:7.x-1.x
Pushing to http://git.drupal.org/project/onepageprofile.git
error: Cannot access URL http://git.drupal.org/project/onepageprofile.git/, return code 22
fatal: git-http-push failed
==============
Comment #19
aidanlis commentedoliverhuynh why would you be able to push to the git repository? can you provide a patch please ...
Comment #20
oliver huynh commentedHi aidanlis,
Patch is attached.
Comment #21
kenneth.venken commentedI've improved the patch in #20 a bit by adding support for Profile2 permissions.
The only changes between #20 en #21 are
Comment #22
c4rl commentedI don't really see how onepageprofile_user_update() is necessary, seems like profile2.module handles saving. Correct me if I'm wrong.
I updated hook_menu_alter() to take care of the sub-nav.
Comment #23
c4rl commentedLooks like the API for checking profile perms changed.
Comment #24
c4rl commentedLess redundant title. :)
Comment #25
blackcat8202 commentedCan you help me? I don't know how to use this module.
I have installed and activate it, but nothing has changed.
May be I must something write in template.php?