Closed (fixed)
Project:
Gigya - Social Infrastructure
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
12 Jan 2012 at 14:42 UTC
Updated:
2 Apr 2013 at 07:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
cameron tod commentedOK after spending some time with this it seems there is no integration with the Fields API whatsoever - any registration uses drupal_form_submit and an array_walk function to map form fields to values.
We are currently doing some internal review and may or may not submit a patch.
Comment #2
chrishrtmn commentedSubscribing. I'm interested in this as well.
Comment #3
gambaweb commentedThe basic Gigya user is tokenized so a few solutions:
put gigya tokens as default values in your profile2 fields
1. write a field view formatter that does token_replace to the filed text.
2. use "Token Filter" http://drupal.org/project/token_filter
3. do the token_replace in your filed theaming function.
I just updated the tokens in the dev version
Comment #4
gambaweb commentedadded a sub module in dev.
I'll be glad to get some use cases so we could improve it.
please read the README.txt file
Comment #5
cameron tod commentedSo to use this module, I need to have:
Are there any plans to make mappings of from Gigya fields, as opposed to being forced to create profiles in the way that this module expects? I'm sure there are reasonably flexible and straightforward ways to do so using the Entity API.
Comment #6
gambaweb commentedI should write a better README file
The module creates a "gigya default profile" with the fields from the default fields from gigya user object you can add extra fields that are in the gigyaUser object defined as extraFields here http://developers.gigya.com/020_Client_API/020_Methods/socialize.getUser...
this the comma seperated list.
there is a hook_gigya_profile2_create_profile_type that fires when the default profile is created.
the module populate the fields.
there is a hook_gigya_profile2_alter to add stuff to the profile when it is created.
Comment #7
cameron tod commentedSo every time a user signs up it creates a new bundle? Or does it just create a new instance based on the first bundle created?
Comment #8
gambaweb commentedit creates a new instance of a profile2 type "gigya_profile"
Comment #9
EvanDonovan commentedYou apparently have to use the gigya_profile bundle type in order for the Profile2 integration to work correctly. gambaweb, is that correct?
Comment #10
EvanDonovan commentedChanging to a documentation task since the support is there, even if there could be more added. Janrain seems to have a more flexible integration with Profile2 presently, and can also integrate with fields on the User entity.
Comment #11
gambaweb commentedyes you should use gigya_profile bundle
we are working on a better implementation
Comment #12
EvanDonovan commented@gambaweb: Does this mean that the gigya_profile fields will soon be deprecated? Do you have a projected release date for a new implementation of this integration? I ask so I know whether to rely on these as part of my IA.
Comment #13
gambaweb commentedyes gigya_profile will be deprecated the new implementation will let you have a default value for a field as a gigya token
regardless of where the field is profile2, user etc...
about the release date I'll update this issue as soon as I'll know. it should in the next 2 week or so
Comment #14
gambaweb commentedattached is a patch that adds gigya user info as default values in the gigya_default_profile profile2 editing form
Comment #15
EvanDonovan commented@gambaweb:
Is the Profile2 integration coming back into the Gigya module soon? We will need it in the next week or so (2 at most) for a current project. If you aren't planning on doing it by then, we will need to create something custom.
Would the old Profile2 integration work with the newest release of the module?
Comment #16
gambaweb commentedwe have new implementation of profile2 (or any other text field) in the 7.x-4.x version it gives you the ability to set gigya token as a default
value for a text filed. in the new version you can use text fields on the user page and not only profile2
the patch above works in the same way only that it works only with profile2
Comment #17
lirand commentedEvanDonovan, please try our new version and tell us what you think. We plan to release it as an official version soon. There are no currently known issues in it.
Comment #18
EvanDonovan commentedThanks for letting me know that that is the intent of the Gigya Default Token module. I was unaware. Can that be documented more - perhaps it would even be helpful to state that is one of the use cases of the module in the description on the modules page.
I have tested it now, and it does appear to be pulling over some of the information when I set the default token value for a field. However, if there is a field with no data, it seems to trigger a PHP notice like, "Notice: Uninitialized string offset: 0 in text_field_widget_form() (line 510 of /drupal/modules/field/modules/text/text.module)." I can report that as a separate issue if you wish.
Comment #19
gambaweb commentedEvan can you please post the steps to reproduce
Comment #20
EvanDonovan commentedTwo bugs I've observed with Gigya Default Token so far. The latter is more serious.
We can deal with those bugs in their respective issues; this one will be for the documentation of the Gigya Default Token module.
Comment #21
gambaweb commentedplease change in recent version reopen if still relevant