Changeset 758640
- Timestamp:
- 08/19/2013 06:02:45 PM (11 years ago)
- Location:
- gravity-forms-janrain-add-on
- Files:
-
- 10 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
gravity-forms-janrain-add-on/tags/0.3/admin-settings.php
r644771 r758640 21 21 return; 22 22 23 wp_enqueue_style( 'quilt-providers', 'http://cdn.quilt.janrain.com/2. 1.4/providers.css' );23 wp_enqueue_style( 'quilt-providers', 'http://cdn.quilt.janrain.com/2./providers.css' ); 24 24 25 25 // Providers css file for older version of IE 26 wp_register_style( 'quilt-providers-ie', 'http://cdn.quilt.janrain.com/2. 1.4/providers-ie.css' );26 wp_register_style( 'quilt-providers-ie', 'http://cdn.quilt.janrain.com/2./providers-ie.css' ); 27 27 $GLOBALS['wp_styles']->add_data( 'quilt-providers-ie', 'conditional', 'lte IE 8' ); 28 28 wp_enqueue_style( 'quilt-providers-ie' ); … … 33 33 34 34 add_action( 'admin_enqueue_scripts', 'quilt_providers_stylesheet' ); 35 35 36 36 37 /** … … 66 67 add_action( 'gform_field_standard_settings', 'janrain_engage_field_prepop_settings', 10, 2 ); 67 68 69 68 70 /** 69 71 * Tooltips for the relevant fields added by this plugin … … 73 75 function janrain_engage_gforms_tooltips( $tooltips ) { 74 76 $tooltips['field_social_prefill'] = '<h6>' . __( 'Prefill from Social Profile', 'gforms_janrain' ) . '</h6>' . 75 __( 'If a social login field is defined, you can select a field from the user\'s social profile to prefill this field with, once they authenticate.', 'gforms_janrain' ); 77 __( 'If a social login field is defined, you can select a field from the user\'s ' . 78 'social profile to prefill this field with, once they authenticate.', 'gforms_janrain' ); 76 79 return $tooltips; 77 80 } 78 81 79 82 add_filter( 'gform_tooltips', 'janrain_engage_gforms_tooltips' ); 83 80 84 81 85 /** … … 101 105 // Update the form meta json object when these fields are updated 102 106 jQuery('.social_prefill').on( 'click', function() { 103 SetFieldProperty( 'socialPrefill', this.checked); 104 $jSelect = jQuery('select.field_social_prefill_with'); 105 if ( this.checked ) { 106 $jSelect.removeAttr('disabled'); 107 SetFieldProperty( 'socialPrefill', jQuery(this).is(':checked') ); 108 $jSelect = jQuery(this).closest('li').find('select.field_social_prefill_with'); 109 console.log( this, $jSelect ); 110 if ( jQuery(this).is(':checked') ) { 111 $jSelect.prop( 'disabled', false ); 107 112 SetFieldProperty( 'socialPrefillWith', $jSelect.val() ); 108 113 } else { 109 $jSelect. attr( 'disabled', 'disabled');114 $jSelect. ); 110 115 SetFieldProperty( 'socialPrefillWith', '' ); 111 116 } … … 227 232 $providers_text .= '</div>'; 228 233 $providers_text .= '<p>' . sprintf( 229 __( 'Provider you wish to use not shown here? Check your <a href="%s"> rpxnowdashboard</a> to make sure its enabled there.', 'gforms_janrain' ),234 __( 'Provider you wish to use not shown here? Check your <a href="%s"> dashboard</a> to make sure its enabled there.', 'gforms_janrain' ), 230 235 "https://rpxnow.com/relying_parties/$app_url_base/setup_widget" 231 236 ) . '</p>'; … … 238 243 <h2>' . __( 'Janrain Engage Integration', 'gforms_janrain' ) .'</h2> 239 244 <h3>' . __( 'Janrain App Configuration', 'gforms_janrain' ) . '</h3> 240 <p class="description">' . __( 'You will need to enter the Application ID and URL for your Engage application. This information can be obtained from your dashboard at <a href="http:// rpxnow.com">http://rpxnow.com</a>.', 'gforms_janrain' ) . '</p>245 <p class="description">' . __( 'You will need to enter the Application ID and URL for your Engage application. This information can be obtained from your dashboard at <a href="http://.com</a>.', 'gforms_janrain' ) . '</p> 241 246 <form action="" method="POST"> 242 247 ' . wp_nonce_field( 'janrain_settings', '_wpnonce', true, false ) . ' … … 308 313 add_action( 'gform_add_field_buttons', 'janrain_engage_widget_field_admin_button' ); 309 314 315 -
gravity-forms-janrain-add-on/tags/0.3/ajax-response.php
r641918 r758640 9 9 * @author janrain 10 10 */ 11 11 12 12 13 /** … … 52 53 } 53 54 54 55 55 add_action( 'wp_ajax_return-token', 'janrain_gforms_retrieve_userdata' ); 56 56 add_action( 'wp_ajax_nopriv_return-token', 'janrain_gforms_retrieve_userdata' ); 57 57 58 58 59 /** … … 84 85 85 86 } 87 88 89 -
gravity-forms-janrain-add-on/tags/0.3/field-list.php
r641918 r758640 182 182 } 183 183 184 /*185 function address( $profile ) {186 return $profile->profile->address;187 }188 function birthday( $profile ) {189 return $profile->profile->birthday;190 }191 function gender( $profile ) {192 return $profile->profile->gender;193 }194 function homepage( $profile ) {195 return $profile->profile->url;196 }197 function time( $profile ) {198 return ;199 }200 function verified( $profile ) {201 return ;202 }203 function friends( $profile ) {204 return ;205 }206 function about( $profile ) {207 return ;208 }209 function accounts( $profile ) {210 return ;211 }212 function username( $profile ) {213 return ;214 }215 function addresses( $profile ) {216 return ;217 }218 function anniversary( $profile ) {219 return ;220 }221 function body( $profile ) {222 return ;223 }224 function books( $profile ) {225 return ;226 }227 function cars( $profile ) {228 return ;229 }230 function children( $profile ) {231 return ;232 }233 function connected( $profile ) {234 return ;235 }236 function current( $profile ) {237 return ;238 }239 function drinker( $profile ) {240 return ;241 }242 function emails( $profile ) {243 return ;244 }245 function ethnicity( $profile ) {246 return ;247 }248 function fashion( $profile ) {249 return ;250 }251 function food( $profile ) {252 return ;253 }254 function happiest( $profile ) {255 return ;256 }257 function heroes( $profile ) {258 return ;259 }260 function humor( $profile ) {261 return ;262 }263 function ims( $profile ) {264 return ;265 }266 function interestedinmeeting( $profile ) {267 return ;268 }269 function interests( $profile ) {270 return ;271 }272 function job( $profile ) {273 return ;274 }275 function languages( $profile ) {276 return ;277 }278 function living( $profile ) {279 return ;280 }281 function looking( $profile ) {282 return ;283 }284 function movies( $profile ) {285 return ;286 }287 function music( $profile ) {288 return ;289 }290 function nickname( $profile ) {291 return ;292 }293 function note( $profile ) {294 return ;295 }296 function organizations( $profile ) {297 return ;298 }299 function pets( $profile ) {300 return ;301 }302 function photos( $profile ) {303 return ;304 }305 function political( $profile ) {306 return ;307 }308 function profile( $profile ) {309 return ;310 }311 function profile( $profile ) {312 return ;313 }314 function profile( $profile ) {315 return ;316 }317 function published( $profile ) {318 return ;319 }320 function quotes( $profile ) {321 return ;322 }323 function relationship( $profile ) {324 return ;325 }326 function relationships( $profile ) {327 return ;328 }329 function religion( $profile ) {330 return ;331 }332 function romance( $profile ) {333 return ;334 }335 function scared( $profile ) {336 return ;337 }338 function sexual( $profile ) {339 return ;340 }341 function smoker( $profile ) {342 return ;343 }344 function sports( $profile ) {345 return ;346 }347 function status( $profile ) {348 return ;349 }350 function tags( $profile ) {351 return ;352 }353 function turn( $profile ) {354 return ;355 }356 function turn( $profile ) {357 return ;358 }359 function tv( $profile ) {360 return ;361 }362 �� function updated( $profile ) {363 return ;364 }365 function urls( $profile ) {366 return ;367 }368 function active( $profile ) {369 return ;370 }371 function user( $profile ) {372 return ;373 }374 function locale( $profile ) {375 return ;376 }377 function positions( $profile ) {378 return ;379 }380 function verified( $profile ) {381 return ;382 }383 function access( $profile ) {384 return ;385 }386 function type( $profile ) {387 return ;388 }389 function pings( $profile ) {390 return ;391 }392 function relationship( $profile ) {393 return ;394 }395 function google( $profile ) {396 return ;397 }398 function birthday( $profile ) {399 return ;400 }401 function time( $profile ) {402 return ;403 }404 function access( $profile ) {405 return ;406 }407 function verified( $profile ) {408 return ;409 }410 function blood( $profile ) {411 return ;412 }413 function favorite( $profile ) {414 return ;415 }416 function occupation( $profile ) {417 return ;418 }419 function following( $profile ) {420 return ;421 }422 function followers( $profile ) {423 return ;424 }425 function friendships( $profile ) {426 return ;427 }428 function counters( $profile ) {429 return ;430 }431 function name( $profile ) {432 return ;433 }434 function activities( $profile ) {435 return ;436 }437 function offline( $profile ) {438 return ;439 }440 function hometown( $profile ) {441 return ;442 }443 function location( $profile ) {444 return ;445 }446 */447 184 } 448 185 449 186 450 /* 451 Fields from Merged Poco format 452 453 'Display' => array( 454 'name' => 'Display', 455 'function' => array( 'Prefill', 'Display' ), 456 ), 457 'Gender' => array( 458 'name' => 'Gender', 459 'function' => array( 'Prefill', 'Gender' ), 460 ), 461 'Profile' => array( 462 'name' => 'Profile', 463 'function' => array( 'Prefill', 'Profile' ), 464 ), 465 'Preferred' => array( 466 'name' => 'Preferred', 467 'function' => array( 'Prefill', 'Preferred' ), 468 ), 469 'Homepage' => array( 470 'name' => 'Homepage', 471 'function' => array( 'Prefill', 'Homepage' ), 472 ), 473 'Time' => array( 474 'name' => 'Time', 475 'function' => array( 'Prefill', 'Time' ), 476 ), 477 'Verified' => array( 478 'name' => 'Verified', 479 'function' => array( 'Prefill', 'Verified' ), 480 ), 481 'Friends' => array( 482 'name' => 'Friends', 483 'function' => array( 'Prefill', 'Friends' ), 484 ), 485 'About' => array( 486 'name' => 'About', 487 'function' => array( 'Prefill', 'About' ), 488 ), 489 'Accounts' => array( 490 'name' => 'Accounts', 491 'function' => array( 'Prefill', 'Accounts' ), 492 ), 493 'username,' => array( 494 'name' => 'username,', 495 'function' => array( 'Prefill', 'username,' ), 496 ), 497 'Addresses' => array( 498 'name' => 'Addresses', 499 'function' => array( 'Prefill', 'Addresses' ), 500 ), 501 'Anniversary' => array( 502 'name' => 'Anniversary', 503 'function' => array( 'Prefill', 'Anniversary' ), 504 ), 505 'Body' => array( 506 'name' => 'Body', 507 'function' => array( 'Prefill', 'Body' ), 508 ), 509 'Books' => array( 510 'name' => 'Books', 511 'function' => array( 'Prefill', 'Books' ), 512 ), 513 'Cars' => array( 514 'name' => 'Cars', 515 'function' => array( 'Prefill', 'Cars' ), 516 ), 517 'Children' => array( 518 'name' => 'Children', 519 'function' => array( 'Prefill', 'Children' ), 520 ), 521 'Connected' => array( 522 'name' => 'Connected', 523 'function' => array( 'Prefill', 'Connected' ), 524 ), 525 'Current' => array( 526 'name' => 'Current', 527 'function' => array( 'Prefill', 'Current' ), 528 ), 529 'Drinker' => array( 530 'name' => 'Drinker', 531 'function' => array( 'Prefill', 'Drinker' ), 532 ), 533 'Emails' => array( 534 'name' => 'Emails', 535 'function' => array( 'Prefill', 'Emails' ), 536 ), 537 'Ethnicity' => array( 538 'name' => 'Ethnicity', 539 'function' => array( 'Prefill', 'Ethnicity' ), 540 ), 541 'Fashion' => array( 542 'name' => 'Fashion', 543 'function' => array( 'Prefill', 'Fashion' ), 544 ), 545 'Food' => array( 546 'name' => 'Food', 547 'function' => array( 'Prefill', 'Food' ), 548 ), 549 'Happiest' => array( 550 'name' => 'Happiest', 551 'function' => array( 'Prefill', 'Happiest' ), 552 ), 553 'Heroes' => array( 554 'name' => 'Heroes', 555 'function' => array( 'Prefill', 'Heroes' ), 556 ), 557 'Humor' => array( 558 'name' => 'Humor', 559 'function' => array( 'Prefill', 'Humor' ), 560 ), 561 'IMS' => array( 562 'name' => 'IMS', 563 'function' => array( 'Prefill', 'IMS' ), 564 ), 565 'InterestedInMeeting' => array( 566 'name' => 'InterestedInMeeting', 567 'function' => array( 'Prefill', 'InterestedInMeeting' ), 568 ), 569 'Interests' => array( 570 'name' => 'Interests', 571 'function' => array( 'Prefill', 'Interests' ), 572 ), 573 'Job' => array( 574 'name' => 'Job', 575 'function' => array( 'Prefill', 'Job' ), 576 ), 577 'Languages' => array( 578 'name' => 'Languages', 579 'function' => array( 'Prefill', 'Languages' ), 580 ), 581 'Living' => array( 582 'name' => 'Living', 583 'function' => array( 'Prefill', 'Living' ), 584 ), 585 'Looking' => array( 586 'name' => 'Looking', 587 'function' => array( 'Prefill', 'Looking' ), 588 ), 589 'Movies' => array( 590 'name' => 'Movies', 591 'function' => array( 'Prefill', 'Movies' ), 592 ), 593 'Music' => array( 594 'name' => 'Music', 595 'function' => array( 'Prefill', 'Music' ), 596 ), 597 'Nickname' => array( 598 'name' => 'Nickname', 599 'function' => array( 'Prefill', 'Nickname' ), 600 ), 601 'Note' => array( 602 'name' => 'Note', 603 'function' => array( 'Prefill', 'Note' ), 604 ), 605 'Organizations' => array( 606 'name' => 'Organizations', 607 'function' => array( 'Prefill', 'Organizations' ), 608 ), 609 'Pets' => array( 610 'name' => 'Pets', 611 'function' => array( 'Prefill', 'Pets' ), 612 ), 613 'Photos' => array( 614 'name' => 'Photos', 615 'function' => array( 'Prefill', 'Photos' ), 616 ), 617 'Political' => array( 618 'name' => 'Political', 619 'function' => array( 'Prefill', 'Political' ), 620 ), 621 'Profile' => array( 622 'name' => 'Profile', 623 'function' => array( 'Prefill', 'Profile' ), 624 ), 625 'Profile' => array( 626 'name' => 'Profile', 627 'function' => array( 'Prefill', 'Profile' ), 628 ), 629 'Profile' => array( 630 'name' => 'Profile', 631 'function' => array( 'Prefill', 'Profile' ), 632 ), 633 'Published' => array( 634 'name' => 'Published', 635 'function' => array( 'Prefill', 'Published' ), 636 ), 637 'Quotes' => array( 638 'name' => 'Quotes', 639 'function' => array( 'Prefill', 'Quotes' ), 640 ), 641 'Relationship' => array( 642 'name' => 'Relationship', 643 'function' => array( 'Prefill', 'Relationship' ), 644 ), 645 'Relationships' => array( 646 'name' => 'Relationships', 647 'function' => array( 'Prefill', 'Relationships' ), 648 ), 649 'Religion' => array( 650 'name' => 'Religion', 651 'function' => array( 'Prefill', 'Religion' ), 652 ), 653 'Romance' => array( 654 'name' => 'Romance', 655 'function' => array( 'Prefill', 'Romance' ), 656 ), 657 'Scared' => array( 658 'name' => 'Scared', 659 'function' => array( 'Prefill', 'Scared' ), 660 ), 661 'Sexual' => array( 662 'name' => 'Sexual', 663 'function' => array( 'Prefill', 'Sexual' ), 664 ), 665 'Smoker' => array( 666 'name' => 'Smoker', 667 'function' => array( 'Prefill', 'Smoker' ), 668 ), 669 'Sports' => array( 670 'name' => 'Sports', 671 'function' => array( 'Prefill', 'Sports' ), 672 ), 673 'Status' => array( 674 'name' => 'Status', 675 'function' => array( 'Prefill', 'Status' ), 676 ), 677 'Tags' => array( 678 'name' => 'Tags', 679 'function' => array( 'Prefill', 'Tags' ), 680 ), 681 'Turn' => array( 682 'name' => 'Turn', 683 'function' => array( 'Prefill', 'Turn' ), 684 ), 685 'Turn' => array( 686 'name' => 'Turn', 687 'function' => array( 'Prefill', 'Turn' ), 688 ), 689 'TV' => array( 690 'name' => 'TV', 691 'function' => array( 'Prefill', 'TV' ), 692 ), 693 'Updated' => array( 694 'name' => 'Updated', 695 'function' => array( 'Prefill', 'Updated' ), 696 ), 697 'URLs' => array( 698 'name' => 'URLs', 699 'function' => array( 'Prefill', 'URLs' ), 700 ), 701 'Phone' => array( 702 'name' => 'Phone', 703 'function' => array( 'Prefill', 'Phone' ), 704 ), 705 'Active' => array( 706 'name' => 'Active', 707 'function' => array( 'Prefill', 'Active' ), 708 ), 709 'User' => array( 710 'name' => 'User', 711 'function' => array( 'Prefill', 'User' ), 712 ), 713 'Locale' => array( 714 'name' => 'Locale', 715 'function' => array( 'Prefill', 'Locale' ), 716 ), 717 'Positions' => array( 718 'name' => 'Positions', 719 'function' => array( 'Prefill', 'Positions' ), 720 ), 721 'Verified' => array( 722 'name' => 'Verified', 723 'function' => array( 'Prefill', 'Verified' ), 724 ), 725 'Access' => array( 726 'name' => 'Access', 727 'function' => array( 'Prefill', 'Access' ), 728 ), 729 'Type' => array( 730 'name' => 'Type', 731 'function' => array( 'Prefill', 'Type' ), 732 ), 733 'Pings' => array( 734 'name' => 'Pings', 735 'function' => array( 'Prefill', 'Pings' ), 736 ), 737 'Relationship' => array( 738 'name' => 'Relationship', 739 'function' => array( 'Prefill', 'Relationship' ), 740 ), 741 'Google' => array( 742 'name' => 'Google', 743 'function' => array( 'Prefill', 'Google' ), 744 ), 745 'Birthday' => array( 746 'name' => 'Birthday', 747 'function' => array( 'Prefill', 'Birthday' ), 748 ), 749 'Time' => array( 750 'name' => 'Time', 751 'function' => array( 'Prefill', 'Time' ), 752 ), 753 'Access' => array( 754 'name' => 'Access', 755 'function' => array( 'Prefill', 'Access' ), 756 ), 757 'Verified' => array( 758 'name' => 'Verified', 759 'function' => array( 'Prefill', 'Verified' ), 760 ), 761 'Blood' => array( 762 'name' => 'Blood', 763 'function' => array( 'Prefill', 'Blood' ), 764 ), 765 'Favorite' => array( 766 'name' => 'Favorite', 767 'function' => array( 'Prefill', 'Favorite' ), 768 ), 769 'Occupation' => array( 770 'name' => 'Occupation', 771 'function' => array( 'Prefill', 'Occupation' ), 772 ), 773 'Following' => array( 774 'name' => 'Following', 775 'function' => array( 'Prefill', 'Following' ), 776 ), 777 'Followers' => array( 778 'name' => 'Followers', 779 'function' => array( 'Prefill', 'Followers' ), 780 ), 781 'Friendships' => array( 782 'name' => 'Friendships', 783 'function' => array( 'Prefill', 'Friendships' ), 784 ), 785 'Counters' => array( 786 'name' => 'Counters', 787 'function' => array( 'Prefill', 'Counters' ), 788 ), 789 'Name' => array( 790 'name' => 'Name', 791 'function' => array( 'Prefill', 'Name' ), 792 ), 793 'Activities' => array( 794 'name' => 'Activities', 795 'function' => array( 'Prefill', 'Activities' ), 796 ), 797 'Offline' => array( 798 'name' => 'Offline', 799 'function' => array( 'Prefill', 'Offline' ), 800 ), 801 'Hometown' => array( 802 'name' => 'Hometown', 803 'function' => array( 'Prefill', 'Hometown' ), 804 ), 805 'Location' => array( 806 'name' => 'Location', 807 'function' => array( 'Prefill', 'Location' ), 808 ), 809 */ 187 // vi:sw=5 sts=5 noexpandtab -
gravity-forms-janrain-add-on/tags/0.3/gravity-forms-janrain-add-on.php
r644774 r758640 5 5 Author: janrain, goldenapples 6 6 Author URI: http://janrain.com 7 Version: 0. 27 Version: 0. 8 8 License: GPL V2 or higher 9 9 10 10 ================================================================================ 11 11 12 Copyright 2012 Janrain, Inc.12 Copyright 2012 Janrain, Inc. 13 13 14 14 This program is free software: you can redistribute it and/or modify … … 120 120 janrain.settings.fontFamily = 'inherit'; 121 121 janrain.settings.backgroundColor = 'transparent'; 122 janrain.settings.noReturnExperience = 'true';122 janrain.settings.noReturnExperience = ; 123 123 janrain.settings.width = '100%'; 124 124 janrain.settings.borderColor = 'transparent'; … … 178 178 require_once( plugin_dir_path( __FILE__ ) . 'ajax-response.php' ); 179 179 180 181 -
gravity-forms-janrain-add-on/tags/0.3/readme.txt
r644773 r758640 4 4 Requires at least: 3.4 5 5 Tested up to: 3.5 6 Stable tag: 0. 26 Stable tag: 0. 7 7 License: GPLv2 or later 8 8 … … 34 34 Plugins page. 35 35 2. Enter your Engage app info (which can be found on your dashboard at 36 rpxnow.com) on the settings page (**Forms > Janrain Settings**). Choose the37 providers you would like to enable social signinthere.36 37 there. 38 38 3. Add "Social Login" fields to any forms you would like to enable social 39 39 prefill for, and set the "Prefill with" value for each of the fields which … … 51 51 52 52 Luckily, there are current step-by-step directions on the Engage dashboard. Go 53 to the "Setup Widget" page on your rpxnow.comdashboard (find it under53 to the "Setup Widget" page on your dashboard (find it under 54 54 **Deployment > Sign-in for Web**; open the **Providers** section of the 55 55 sidebar). Each of the providers which requires configuration will have a gray … … 105 105 == Changelog == 106 106 107 108 109 110 111 112 113 114 115 116 107 117 = 0.2 = 108 118 -
gravity-forms-janrain-add-on/trunk/admin-settings.php
r644771 r758640 21 21 return; 22 22 23 wp_enqueue_style( 'quilt-providers', 'http://cdn.quilt.janrain.com/2. 1.4/providers.css' );23 wp_enqueue_style( 'quilt-providers', 'http://cdn.quilt.janrain.com/2./providers.css' ); 24 24 25 25 // Providers css file for older version of IE 26 wp_register_style( 'quilt-providers-ie', 'http://cdn.quilt.janrain.com/2. 1.4/providers-ie.css' );26 wp_register_style( 'quilt-providers-ie', 'http://cdn.quilt.janrain.com/2./providers-ie.css' ); 27 27 $GLOBALS['wp_styles']->add_data( 'quilt-providers-ie', 'conditional', 'lte IE 8' ); 28 28 wp_enqueue_style( 'quilt-providers-ie' ); … … 33 33 34 34 add_action( 'admin_enqueue_scripts', 'quilt_providers_stylesheet' ); 35 35 36 36 37 /** … … 66 67 add_action( 'gform_field_standard_settings', 'janrain_engage_field_prepop_settings', 10, 2 ); 67 68 69 68 70 /** 69 71 * Tooltips for the relevant fields added by this plugin … … 73 75 function janrain_engage_gforms_tooltips( $tooltips ) { 74 76 $tooltips['field_social_prefill'] = '<h6>' . __( 'Prefill from Social Profile', 'gforms_janrain' ) . '</h6>' . 75 __( 'If a social login field is defined, you can select a field from the user\'s social profile to prefill this field with, once they authenticate.', 'gforms_janrain' ); 77 __( 'If a social login field is defined, you can select a field from the user\'s ' . 78 'social profile to prefill this field with, once they authenticate.', 'gforms_janrain' ); 76 79 return $tooltips; 77 80 } 78 81 79 82 add_filter( 'gform_tooltips', 'janrain_engage_gforms_tooltips' ); 83 80 84 81 85 /** … … 101 105 // Update the form meta json object when these fields are updated 102 106 jQuery('.social_prefill').on( 'click', function() { 103 SetFieldProperty( 'socialPrefill', this.checked); 104 $jSelect = jQuery('select.field_social_prefill_with'); 105 if ( this.checked ) { 106 $jSelect.removeAttr('disabled'); 107 SetFieldProperty( 'socialPrefill', jQuery(this).is(':checked') ); 108 $jSelect = jQuery(this).closest('li').find('select.field_social_prefill_with'); 109 console.log( this, $jSelect ); 110 if ( jQuery(this).is(':checked') ) { 111 $jSelect.prop( 'disabled', false ); 107 112 SetFieldProperty( 'socialPrefillWith', $jSelect.val() ); 108 113 } else { 109 $jSelect. attr( 'disabled', 'disabled');114 $jSelect. ); 110 115 SetFieldProperty( 'socialPrefillWith', '' ); 111 116 } … … 227 232 $providers_text .= '</div>'; 228 233 $providers_text .= '<p>' . sprintf( 229 __( 'Provider you wish to use not shown here? Check your <a href="%s"> rpxnowdashboard</a> to make sure its enabled there.', 'gforms_janrain' ),234 __( 'Provider you wish to use not shown here? Check your <a href="%s"> dashboard</a> to make sure its enabled there.', 'gforms_janrain' ), 230 235 "https://rpxnow.com/relying_parties/$app_url_base/setup_widget" 231 236 ) . '</p>'; … … 238 243 <h2>' . __( 'Janrain Engage Integration', 'gforms_janrain' ) .'</h2> 239 244 <h3>' . __( 'Janrain App Configuration', 'gforms_janrain' ) . '</h3> 240 <p class="description">' . __( 'You will need to enter the Application ID and URL for your Engage application. This information can be obtained from your dashboard at <a href="http:// rpxnow.com">http://rpxnow.com</a>.', 'gforms_janrain' ) . '</p>245 <p class="description">' . __( 'You will need to enter the Application ID and URL for your Engage application. This information can be obtained from your dashboard at <a href="http://.com</a>.', 'gforms_janrain' ) . '</p> 241 246 <form action="" method="POST"> 242 247 ' . wp_nonce_field( 'janrain_settings', '_wpnonce', true, false ) . ' … … 308 313 add_action( 'gform_add_field_buttons', 'janrain_engage_widget_field_admin_button' ); 309 314 315 -
gravity-forms-janrain-add-on/trunk/ajax-response.php
r641918 r758640 9 9 * @author janrain 10 10 */ 11 11 12 12 13 /** … … 52 53 } 53 54 54 55 55 add_action( 'wp_ajax_return-token', 'janrain_gforms_retrieve_userdata' ); 56 56 add_action( 'wp_ajax_nopriv_return-token', 'janrain_gforms_retrieve_userdata' ); 57 57 58 58 59 /** … … 84 85 85 86 } 87 88 89 -
gravity-forms-janrain-add-on/trunk/field-list.php
r641918 r758640 182 182 } 183 183 184 /*185 function address( $profile ) {186 return $profile->profile->address;187 }188 function birthday( $profile ) {189 return $profile->profile->birthday;190 }191 function gender( $profile ) {192 return $profile->profile->gender;193 }194 function homepage( $profile ) {195 return $profile->profile->url;196 }197 function time( $profile ) {198 return ;199 }200 function verified( $profile ) {201 return ;202 }203 function friends( $profile ) {204 return ;205 }206 function about( $profile ) {207 return ;208 }209 function accounts( $profile ) {210 return ;211 }212 function username( $profile ) {213 return ;214 }215 function addresses( $profile ) {216 return ;217 }218 function anniversary( $profile ) {219 return ;220 }221 function body( $profile ) {222 return ;223 }224 function books( $profile ) {225 return ;226 }227 function cars( $profile ) {228 return ;229 }230 function children( $profile ) {231 return ;232 }233 function connected( $profile ) {234 return ;235 }236 function current( $profile ) {237 return ;238 }239 function drinker( $profile ) {240 return ;241 }242 function emails( $profile ) {243 return ;244 }245 function ethnicity( $profile ) {246 return ;247 }248 function fashion( $profile ) {249 return ;250 }251 function food( $profile ) {252 return ;253 }254 function happiest( $profile ) {255 return ;256 }257 function heroes( $profile ) {258 return ;259 }260 function humor( $profile ) {261 return ;262 }263 function ims( $profile ) {264 return ;265 }266 function interestedinmeeting( $profile ) {267 return ;268 }269 function interests( $profile ) {270 return ;271 }272 function job( $profile ) {273 return ;274 }275 function languages( $profile ) {276 return ;277 }278 function living( $profile ) {279 return ;280 }281 function looking( $profile ) {282 return ;283 }284 function movies( $profile ) {285 return ;286 }287 function music( $profile ) {288 return ;289 }290 function nickname( $profile ) {291 return ;292 }293 function note( $profile ) {294 return ;295 }296 function organizations( $profile ) {297 return ;298 }299 function pets( $profile ) {300 return ;301 }302 function photos( $profile ) {303 return ;304 }305 function political( $profile ) {306 return ;307 }308 function profile( $profile ) {309 return ;310 }311 function profile( $profile ) {312 return ;313 }314 function profile( $profile ) {315 return ;316 }317 function published( $profile ) {318 return ;319 }320 function quotes( $profile ) {321 return ;322 }323 function relationship( $profile ) {324 return ;325 }326 function relationships( $profile ) {327 return ;328 }329 function religion( $profile ) {330 return ;331 }332 function romance( $profile ) {333 return ;334 }335 function scared( $profile ) {336 return ;337 }338 function sexual( $profile ) {339 return ;340 }341 function smoker( $profile ) {342 return ;343 }344 function sports( $profile ) {345 return ;346 }347 function status( $profile ) {348 return ;349 }350 function tags( $profile ) {351 return ;352 }353 function turn( $profile ) {354 return ;355 }356 function turn( $profile ) {357 return ;358 }359 function tv( $profile ) {360 return ;361 }362 function updated( $profile ) {363 return ;364 }365 function urls( $profile ) {366 return ;367 }368 function active( $profile ) {369 return ;370 }371 function user( $profile ) {372 return ;373 }374 function locale( $profile ) {375 return ;376 }377 function positions( $profile ) {378 return ;379 }380 function verified( $profile ) {381 return ;382 }383 function access( $profile ) {384 return ;385 }386 function type( $profile ) {387 return ;388 }389 function pings( $profile ) {390 return ;391 }392 function relationship( $profile ) {393 return ;394 }395 function google( $profile ) {396 return ;397 }398 function birthday( $profile ) {399 return ;400 }401 function time( $profile ) {402 return ;403 }404 function access( $profile ) {405 return ;406 }407 function verified( $profile ) {408 return ;409 }410 function blood( $profile ) {411 return ;412 }413 function favorite( $profile ) {414 return ;415 }416 function occupation( $profile ) {417 return ;418 }419 function following( $profile ) {420 return ;421 }422 function followers( $profile ) {423 return ;424 }425 function friendships( $profile ) {426 return ;427 }428 function counters( $profile ) {429 return ;430 }431 function name( $profile ) {432 return ;433 }434 function activities( $profile ) {435 return ;436 }437 function offline( $profile ) {438 return ;439 }440 function hometown( $profile ) {441 return ;442 }443 function location( $profile ) {444 return ;445 }446 */447 184 } 448 185 449 186 450 /* 451 Fields from Merged Poco format 452 453 'Display' => array( 454 'name' => 'Display', 455 'function' => array( 'Prefill', 'Display' ), 456 ), 457 'Gender' => array( 458 'name' => 'Gender', 459 'function' => array( 'Prefill', 'Gender' ), 460 ), 461 'Profile' => array( 462 'name' => 'Profile', 463 'function' => array( 'Prefill', 'Profile' ), 464 ), 465 'Preferred' => array( 466 'name' => 'Preferred', 467 'function' => array( 'Prefill', 'Preferred' ), 468 ), 469 'Homepage' => array( 470 'name' => 'Homepage', 471 'function' => array( 'Prefill', 'Homepage' ), 472 ), 473 'Time' => array( 474 'name' => 'Time', 475 'function' => array( 'Prefill', 'Time' ), 476 ), 477 'Verified' => array( 478 'name' => 'Verified', 479 'function' => array( 'Prefill', 'Verified' ), 480 ), 481 'Friends' => array( 482 'name' => 'Friends', 483 'function' => array( 'Prefill', 'Friends' ), 484 ), 485 'About' => array( 486 'name' => 'About', 487 'function' => array( 'Prefill', 'About' ), 488 ), 489 'Accounts' => array( 490 'name' => 'Accounts', 491 'function' => array( 'Prefill', 'Accounts' ), 492 ), 493 'username,' => array( 494 'name' => 'username,', 495 'function' => array( 'Prefill', 'username,' ), 496 ), 497 'Addresses' => array( 498 'name' => 'Addresses', 499 'function' => array( 'Prefill', 'Addresses' ), 500 ), 501 'Anniversary' => array( 502 'name' => 'Anniversary', 503 'function' => array( 'Prefill', 'Anniversary' ), 504 ), 505 'Body' => array( 506 'name' => 'Body', 507 'function' => array( 'Prefill', 'Body' ), 508 ), 509 'Books' => array( 510 'name' => 'Books', 511 'function' => array( 'Prefill', 'Books' ), 512 ), 513 'Cars' => array( 514 'name' => 'Cars', 515 'function' => array( 'Prefill', 'Cars' ), 516 ), 517 'Children' => array( 518 'name' => 'Children', 519 'function' => array( 'Prefill', 'Children' ), 520 ), 521 'Connected' => array( 522 'name' => 'Connected', 523 'function' => array( 'Prefill', 'Connected' ), 524 ), 525 'Current' => array( 526 'name' => 'Current', 527 'function' => array( 'Prefill', 'Current' ), 528 ), 529 'Drinker' => array( 530 'name' => 'Drinker', 531 'function' => array( 'Prefill', 'Drinker' ), 532 ), 533 'Emails' => array( 534 'name' => 'Emails', 535 'function' => array( 'Prefill', 'Emails' ), 536 ), 537 'Ethnicity' => array( 538 'name' => 'Ethnicity', 539 'function' => array( 'Prefill', 'Ethnicity' ), 540 ), 541 'Fashion' => array( 542 'name' => 'Fashion', 543 'function' => array( 'Prefill', 'Fashion' ), 544 ), 545 'Food' => array( 546 'name' => 'Food', 547 'function' => array( 'Prefill', 'Food' ), 548 ), 549 'Happiest' => array( 550 'name' => 'Happiest', 551 'function' => array( 'Prefill', 'Happiest' ), 552 ), 553 'Heroes' => array( 554 'name' => 'Heroes', 555 'function' => array( 'Prefill', 'Heroes' ), 556 ), 557 'Humor' => array( 558 'name' => 'Humor', 559 'function' => array( 'Prefill', 'Humor' ), 560 ), 561 'IMS' => array( 562 'name' => 'IMS', 563 'function' => array( 'Prefill', 'IMS' ), 564 ), 565 'InterestedInMeeting' => array( 566 'name' => 'InterestedInMeeting', 567 'function' => array( 'Prefill', 'InterestedInMeeting' ), 568 ), 569 'Interests' => array( 570 'name' => 'Interests', 571 'function' => array( 'Prefill', 'Interests' ), 572 ), 573 'Job' => array( 574 'name' => 'Job', 575 'function' => array( 'Prefill', 'Job' ), 576 ), 577 'Languages' => array( 578 'name' => 'Languages', 579 'function' => array( 'Prefill', 'Languages' ), 580 ), 581 'Living' => array( 582 'name' => 'Living', 583 'function' => array( 'Prefill', 'Living' ), 584 ), 585 'Looking' => array( 586 'name' => 'Looking', 587 'function' => array( 'Prefill', 'Looking' ), 588 ), 589 'Movies' => array( 590 'name' => 'Movies', 591 'function' => array( 'Prefill', 'Movies' ), 592 ), 593 'Music' => array( 594 'name' => 'Music', 595 'function' => array( 'Prefill', 'Music' ), 596 ), 597 'Nickname' => array( 598 'name' => 'Nickname', 599 'function' => array( 'Prefill', 'Nickname' ), 600 ), 601 'Note' => array( 602 'name' => 'Note', 603 'function' => array( 'Prefill', 'Note' ), 604 ), 605 'Organizations' => array( 606 'name' => 'Organizations', 607 'function' => array( 'Prefill', 'Organizations' ), 608 ), 609 'Pets' => array( 610 'name' => 'Pets', 611 'function' => array( 'Prefill', 'Pets' ), 612 ), 613 'Photos' => array( 614 'name' => 'Photos', 615 'function' => array( 'Prefill', 'Photos' ), 616 ), 617 'Political' => array( 618 'name' => 'Political', 619 'function' => array( 'Prefill', 'Political' ), 620 ), 621 'Profile' => array( 622 'name' => 'Profile', 623 'function' => array( 'Prefill', 'Profile' ), 624 ), 625 'Profile' => array( 626 'name' => 'Profile', 627 'function' => array( 'Prefill', 'Profile' ), 628 ), 629 'Profile' => array( 630 'name' => 'Profile', 631 'function' => array( 'Prefill', 'Profile' ), 632 ), 633 'Published' => array( 634 'name' => 'Published', 635 'function' => array( 'Prefill', 'Published' ), 636 ), 637 'Quotes' => array( 638 'name' => 'Quotes', 639 'function' => array( 'Prefill', 'Quotes' ), 640 ), 641 'Relationship' => array( 642 'name' => 'Relationship', 643 'function' => array( 'Prefill', 'Relationship' ), 644 ), 645 'Relationships' => array( 646 'name' => 'Relationships', 647 'function' => array( 'Prefill', 'Relationships' ), 648 ), 649 'Religion' => array( 650 'name' => 'Religion', 651 'function' => array( 'Prefill', 'Religion' ), 652 ), 653 'Romance' => array( 654 'name' => 'Romance', 655 'function' => array( 'Prefill', 'Romance' ), 656 ), 657 'Scared' => array( 658 'name' => 'Scared', 659 'function' => array( 'Prefill', 'Scared' ), 660 ), 661 'Sexual' => array( 662 'name' => 'Sexual', 663 'function' => array( 'Prefill', 'Sexual' ), 664 ), 665 'Smoker' => array( 666 'name' => 'Smoker', 667 'function' => array( 'Prefill', 'Smoker' ), 668 ), 669 'Sports' => array( 670 'name' => 'Sports', 671 'function' => array( 'Prefill', 'Sports' ), 672 ), 673 'Status' => array( 674 'name' => 'Status', 675 'function' => array( 'Prefill', 'Status' ), 676 ), 677 'Tags' => array( 678 'name' => 'Tags', 679 'function' => array( 'Prefill', 'Tags' ), 680 ), 681 'Turn' => array( 682 'name' => 'Turn', 683 'function' => array( 'Prefill', 'Turn' ), 684 ), 685 'Turn' => array( 686 'name' => 'Turn', 687 'function' => array( 'Prefill', 'Turn' ), 688 ), 689 'TV' => array( 690 'name' => 'TV', 691 'function' => array( 'Prefill', 'TV' ), 692 ), 693 'Updated' => array( 694 'name' => 'Updated', 695 'function' => array( 'Prefill', 'Updated' ), 696 ), 697 'URLs' => array( 698 'name' => 'URLs', 699 'function' => array( 'Prefill', 'URLs' ), 700 ), 701 'Phone' => array( 702 'name' => 'Phone', 703 'function' => array( 'Prefill', 'Phone' ), 704 ), 705 'Active' => array( 706 'name' => 'Active', 707 'function' => array( 'Prefill', 'Active' ), 708 ), 709 'User' => array( 710 'name' => 'User', 711 'function' => array( 'Prefill', 'User' ), 712 ), 713 'Locale' => array( 714 'name' => 'Locale', 715 'function' => array( 'Prefill', 'Locale' ), 716 ), 717 'Positions' => array( 718 'name' => 'Positions', 719 'function' => array( 'Prefill', 'Positions' ), 720 ), 721 'Verified' => array( 722 'name' => 'Verified', 723 'function' => array( 'Prefill', 'Verified' ), 724 ), 725 'Access' => array( 726 'name' => 'Access', 727 'function' => array( 'Prefill', 'Access' ), 728 ), 729 'Type' => array( 730 'name' => 'Type', 731 'function' => array( 'Prefill', 'Type' ), 732 ), 733 'Pings' => array( 734 'name' => 'Pings', 735 'function' => array( 'Prefill', 'Pings' ), 736 ), 737 'Relationship' => array( 738 'name' => 'Relationship', 739 'function' => array( 'Prefill', 'Relationship' ), 740 ), 741 'Google' => array( 742 'name' => 'Google', 743 'function' => array( 'Prefill', 'Google' ), 744 ), 745 'Birthday' => array( 746 'name' => 'Birthday', 747 'function' => array( 'Prefill', 'Birthday' ), 748 ), 749 'Time' => array( 750 'name' => 'Time', 751 'function' => array( 'Prefill', 'Time' ), 752 ), 753 'Access' => array( 754 'name' => 'Access', 755 'function' => array( 'Prefill', 'Access' ), 756 ), 757 'Verified' => array( 758 'name' => 'Verified', 759 'function' => array( 'Prefill', 'Verified' ), 760 ), 761 'Blood' => array( 762 'name' => 'Blood', 763 'function' => array( 'Prefill', 'Blood' ), 764 ), 765 'Favorite' => array( 766 'name' => 'Favorite', 767 'function' => array( 'Prefill', 'Favorite' ), 768 ), 769 'Occupation' => array( 770 'name' => 'Occupation', 771 'function' => array( 'Prefill', 'Occupation' ), 772 ), 773 'Following' => array( 774 'name' => 'Following', 775 'function' => array( 'Prefill', 'Following' ), 776 ), 777 'Followers' => array( 778 'name' => 'Followers', 779 'function' => array( 'Prefill', 'Followers' ), 780 ), 781 'Friendships' => array( 782 'name' => 'Friendships', 783 'function' => array( 'Prefill', 'Friendships' ), 784 ), 785 'Counters' => array( 786 'name' => 'Counters', 787 'function' => array( 'Prefill', 'Counters' ), 788 ), 789 'Name' => array( 790 'name' => 'Name', 791 'function' => array( 'Prefill', 'Name' ), 792 ), 793 'Activities' => array( 794 'name' => 'Activities', 795 'function' => array( 'Prefill', 'Activities' ), 796 ), 797 'Offline' => array( 798 'name' => 'Offline', 799 'function' => array( 'Prefill', 'Offline' ), 800 ), 801 'Hometown' => array( 802 'name' => 'Hometown', 803 'function' => array( 'Prefill', 'Hometown' ), 804 ), 805 'Location' => array( 806 'name' => 'Location', 807 'function' => array( 'Prefill', 'Location' ), 808 ), 809 */ 187 // vi:sw=5 sts=5 noexpandtab -
gravity-forms-janrain-add-on/trunk/gravity-forms-janrain-add-on.php
r644774 r758640 5 5 Author: janrain, goldenapples 6 6 Author URI: http://janrain.com 7 Version: 0. 27 Version: 0. 8 8 License: GPL V2 or higher 9 9 10 10 ================================================================================ 11 11 12 Copyright 2012 Janrain, Inc.12 Copyright 2012 Janrain, Inc. 13 13 14 14 This program is free software: you can redistribute it and/or modify … … 120 120 janrain.settings.fontFamily = 'inherit'; 121 121 janrain.settings.backgroundColor = 'transparent'; 122 janrain.settings.noReturnExperience = 'true';122 janrain.settings.noReturnExperience = ; 123 123 janrain.settings.width = '100%'; 124 124 janrain.settings.borderColor = 'transparent'; … … 178 178 require_once( plugin_dir_path( __FILE__ ) . 'ajax-response.php' ); 179 179 180 181 -
gravity-forms-janrain-add-on/trunk/readme.txt
r644773 r758640 4 4 Requires at least: 3.4 5 5 Tested up to: 3.5 6 Stable tag: 0. 26 Stable tag: 0. 7 7 License: GPLv2 or later 8 8 … … 34 34 Plugins page. 35 35 2. Enter your Engage app info (which can be found on your dashboard at 36 rpxnow.com) on the settings page (**Forms > Janrain Settings**). Choose the37 providers you would like to enable social signinthere.36 37 there. 38 38 3. Add "Social Login" fields to any forms you would like to enable social 39 39 prefill for, and set the "Prefill with" value for each of the fields which … … 51 51 52 52 Luckily, there are current step-by-step directions on the Engage dashboard. Go 53 to the "Setup Widget" page on your rpxnow.comdashboard (find it under53 to the "Setup Widget" page on your dashboard (find it under 54 54 **Deployment > Sign-in for Web**; open the **Providers** section of the 55 55 sidebar). Each of the providers which requires configuration will have a gray … … 105 105 == Changelog == 106 106 107 108 109 110 111 112 113 114 115 116 107 117 = 0.2 = 108 118
Note: See TracChangeset
for help on using the changeset viewer.