User registration & user profile – Profile Builder - Version 2.3.7

Version Description

  • Changed the wppb_curpageurl function to fix the missing www problem from links
  • Added a new filter wppb_send_to_admin_email to Email Confirmation
Download this release

Release Info

Developer madalin.ungureanu
Plugin Icon 128x128 User registration & user profile – Profile Builder
Version 2.3.7
Comparing to
See all releases

Code changes from version 2.3.6 to 2.3.7

admin/manage-fields.php CHANGED
@@ -54,13 +54,17 @@ function wppb_manage_fields_submenu(){
54
  $manage_field_types[] = 'Select (Country)';
55
  $manage_field_types[] = 'Select (Timezone)';
56
  $manage_field_types[] = 'Select (User Role)';
 
57
  $manage_field_types[] = 'Checkbox';
58
  $manage_field_types[] = 'Checkbox (Terms and Conditions)';
59
  $manage_field_types[] = 'Radio';
60
  $manage_field_types[] = 'Upload';
61
  $manage_field_types[] = 'Avatar';
62
  $manage_field_types[] = 'Datepicker';
 
 
63
  $manage_field_types[] = 'reCAPTCHA';
 
64
  }
65
 
66
 
@@ -87,6 +91,13 @@ function wppb_manage_fields_submenu(){
87
  $default_country_options[] = $country_name;
88
  }
89
 
 
 
 
 
 
 
 
90
 
91
  // set up the fields array
92
  $fields = apply_filters( 'wppb_manage_fields', array(
@@ -115,6 +126,11 @@ function wppb_manage_fields_submenu(){
115
  array( 'type' => 'text', 'slug' => 'default-options', 'title' => __( 'Default Option(s)', 'profile-builder' ), 'description' => __( "Specify the option which should be checked by default<br/>If there are multiple values, separate them with a ',' (comma)", 'profile-builder' ) ),
116
  array( 'type' => 'select', 'slug' => 'default-option-country', 'title' => __( 'Default Option', 'profile-builder' ), 'values' => ( isset( $default_country_values ) ) ? $default_country_values : '', 'options' => ( isset( $default_country_options ) ) ? $default_country_options : '', 'description' => __( "Default option of the field", 'profile-builder' ) ),
117
  array( 'type' => 'select', 'slug' => 'default-option-timezone', 'title' => __( 'Default Option', 'profile-builder' ), 'options' => wppb_timezone_select_options( 'back_end' ), 'description' => __( "Default option of the field", 'profile-builder' ) ),
 
 
 
 
 
118
  array( 'type' => 'textarea', 'slug' => 'default-content', 'title' => __( 'Default Content', 'profile-builder' ), 'description' => __( "Default value of the textarea", 'profile-builder' ) ),
119
  array( 'type' => 'select', 'slug' => 'required', 'title' => __( 'Required', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( 'Whether the field is required or not', 'profile-builder' ) ),
120
  array( 'type' => 'select', 'slug' => 'overwrite-existing', 'title' => __( 'Overwrite Existing', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( "Selecting 'Yes' will add the field to the list, but will overwrite any other field in the database that has the same meta-name<br/>Use this at your own risk", 'profile-builder' ) ),
@@ -505,6 +521,321 @@ function wppb_timezone_select_options( $form_location ) {
505
  }
506
 
507
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
508
  /**
509
  * Function that returns a unique, incremented ID
510
  *
54
  $manage_field_types[] = 'Select (Country)';
55
  $manage_field_types[] = 'Select (Timezone)';
56
  $manage_field_types[] = 'Select (User Role)';
57
+ $manage_field_types[] = 'Select (Currency)';
58
  $manage_field_types[] = 'Checkbox';
59
  $manage_field_types[] = 'Checkbox (Terms and Conditions)';
60
  $manage_field_types[] = 'Radio';
61
  $manage_field_types[] = 'Upload';
62
  $manage_field_types[] = 'Avatar';
63
  $manage_field_types[] = 'Datepicker';
64
+ $manage_field_types[] = 'Timepicker';
65
+ $manage_field_types[] = 'Colorpicker';
66
  $manage_field_types[] = 'reCAPTCHA';
67
+ $manage_field_types[] = 'Validation';
68
  }
69
 
70
 
91
  $default_country_options[] = $country_name;
92
  }
93
 
94
+ // currency select
95
+ $default_currency_array = wppb_get_currencies( 'back_end' );
96
+ array_unshift( $default_currency_array, '' );
97
+ foreach( $default_currency_array as $iso_currency_code => $currency_name ) {
98
+ $default_currency_values[] = $iso_currency_code;
99
+ $default_currency_options[] = $currency_name;
100
+ }
101
 
102
  // set up the fields array
103
  $fields = apply_filters( 'wppb_manage_fields', array(
126
  array( 'type' => 'text', 'slug' => 'default-options', 'title' => __( 'Default Option(s)', 'profile-builder' ), 'description' => __( "Specify the option which should be checked by default<br/>If there are multiple values, separate them with a ',' (comma)", 'profile-builder' ) ),
127
  array( 'type' => 'select', 'slug' => 'default-option-country', 'title' => __( 'Default Option', 'profile-builder' ), 'values' => ( isset( $default_country_values ) ) ? $default_country_values : '', 'options' => ( isset( $default_country_options ) ) ? $default_country_options : '', 'description' => __( "Default option of the field", 'profile-builder' ) ),
128
  array( 'type' => 'select', 'slug' => 'default-option-timezone', 'title' => __( 'Default Option', 'profile-builder' ), 'options' => wppb_timezone_select_options( 'back_end' ), 'description' => __( "Default option of the field", 'profile-builder' ) ),
129
+ array( 'type' => 'select', 'slug' => 'default-option-currency', 'title' => __( 'Default Option', 'profile-builder' ), 'values' => ( isset( $default_currency_values ) ) ? $default_currency_values : '', 'options' => ( isset( $default_currency_options ) ) ? $default_currency_options : '', 'description' => __( "Default option of the field", 'profile-builder' ) ),
130
+ array( 'type' => 'select', 'slug' => 'show-currency-symbol', 'title' => __( 'Show Currency Symbol', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( 'Whether the currency symbol should be displayed after the currency name in the select option.', 'profile-builder' ) ),
131
+ array( 'type' => 'text', 'slug' => 'validation-possible-values', 'title' => __( 'Allowable Values', 'profile-builder' ), 'description' => __( "Enter a comma separated list of possible values. Upon registration if the value provided by the user does not match one of these values, the user will not be registered.", 'profile-builder' ) ),
132
+ array( 'type' => 'text', 'slug' => 'custom-error-message', 'title' => __( 'Error Message', 'profile-builder' ), 'description' => __( "Set a custom error message that will be displayed to the user.", 'profile-builder' ) ),
133
+ array( 'type' => 'select', 'slug' => 'time-format', 'title' => __( 'Time Format', 'profile-builder' ), 'options' => array( '%12 Hours%12', '%24 Hours%24' ), 'description' => __( 'Specify the time format.', 'profile-builder' ) ),
134
  array( 'type' => 'textarea', 'slug' => 'default-content', 'title' => __( 'Default Content', 'profile-builder' ), 'description' => __( "Default value of the textarea", 'profile-builder' ) ),
135
  array( 'type' => 'select', 'slug' => 'required', 'title' => __( 'Required', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( 'Whether the field is required or not', 'profile-builder' ) ),
136
  array( 'type' => 'select', 'slug' => 'overwrite-existing', 'title' => __( 'Overwrite Existing', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( "Selecting 'Yes' will add the field to the list, but will overwrite any other field in the database that has the same meta-name<br/>Use this at your own risk", 'profile-builder' ) ),
521
  }
522
 
523
 
524
+ /*
525
+ * Array with the currency ISO code and associated currency name
526
+ *
527
+ * @param string $form_location
528
+ *
529
+ * @return array
530
+ *
531
+ */
532
+ function wppb_get_currencies( $form_location = '' ) {
533
+
534
+ $currencies = array(
535
+ 'ALL' => __( 'Albania Lek', 'profile-builder' ),
536
+ 'AFN' => __( 'Afghanistan Afghani', 'profile-builder' ),
537
+ 'ARS' => __( 'Argentina Peso', 'profile-builder' ),
538
+ 'AWG' => __( 'Aruba Guilder', 'wkc' ),
539
+ 'AUD' => __( 'Australia Dollar', 'profile-builder' ),
540
+ 'AZN' => __( 'Azerbaijan New Manat', 'profile-builder' ),
541
+ 'BSD' => __( 'Bahamas Dollar', 'profile-builder' ),
542
+ 'BBD' => __( 'Barbados Dollar','profile-builder' ),
543
+ 'BDT' => __( 'Bangladeshi taka','profile-builder' ),
544
+ 'BYR' => __( 'Belarus Ruble','profile-builder' ),
545
+ 'BZD' => __( 'Belize Dollar','profile-builder' ),
546
+ 'BMD' => __( 'Bermuda Dollar','profile-builder' ),
547
+ 'BOB' => __( 'Bolivia Boliviano','profile-builder' ),
548
+ 'BAM' => __( 'Bosnia and Herzegovina Convertible Marka','profile-builder' ),
549
+ 'BWP' => __( 'Botswana Pula','profile-builder' ),
550
+ 'BGN' => __( 'Bulgaria Lev','profile-builder' ),
551
+ 'BRL' => __( 'Brazil Real','profile-builder' ),
552
+ 'BND' => __( 'Brunei Darussalam Dollar','profile-builder' ),
553
+ 'KHR' => __( 'Cambodia Riel','profile-builder' ),
554
+ 'CAD' => __( 'Canada Dollar','profile-builder' ),
555
+ 'KYD' => __( 'Cayman Islands Dollar','profile-builder' ),
556
+ 'CLP' => __( 'Chile Peso','profile-builder' ),
557
+ 'CNY' => __( 'China Yuan Renminbi','profile-builder' ),
558
+ 'COP' => __( 'Colombia Peso','profile-builder' ),
559
+ 'CRC' => __( 'Costa Rica Colon','profile-builder' ),
560
+ 'HRK' => __( 'Croatia Kuna','profile-builder' ),
561
+ 'CUP' => __( 'Cuba Peso','profile-builder' ),
562
+ 'CZK' => __( 'Czech Republic Koruna','profile-builder' ),
563
+ 'DKK' => __( 'Denmark Krone','profile-builder' ),
564
+ 'DOP' => __( 'Dominican Republic Peso','profile-builder' ),
565
+ 'XCD' => __( 'East Caribbean Dollar','profile-builder' ),
566
+ 'EGP' => __( 'Egypt Pound','profile-builder' ),
567
+ 'SVC' => __( 'El Salvador Colon','profile-builder' ),
568
+ 'EEK' => __( 'Estonia Kroon','profile-builder' ),
569
+ 'EUR' => __( 'Euro','profile-builder' ),
570
+ 'FKP' => __( 'Falkland Islands (Malvinas) Pound','profile-builder' ),
571
+ 'FJD' => __( 'Fiji Dollar','profile-builder' ),
572
+ 'GHC' => __( 'Ghana Cedis','profile-builder' ),
573
+ 'GIP' => __( 'Gibraltar Pound','profile-builder' ),
574
+ 'GTQ' => __( 'Guatemala Quetzal','profile-builder' ),
575
+ 'GGP' => __( 'Guernsey Pound','profile-builder' ),
576
+ 'GYD' => __( 'Guyana Dollar','profile-builder' ),
577
+ 'HNL' => __( 'Honduras Lempira','profile-builder' ),
578
+ 'HKD' => __( 'Hong Kong Dollar','profile-builder' ),
579
+ 'HUF' => __( 'Hungary Forint','profile-builder' ),
580
+ 'ISK' => __( 'Iceland Krona','profile-builder' ),
581
+ 'INR' => __( 'India Rupee','profile-builder' ),
582
+ 'IDR' => __( 'Indonesia Rupiah','profile-builder' ),
583
+ 'IRR' => __( 'Iran Rial','profile-builder' ),
584
+ 'IMP' => __( 'Isle of Man Pound','profile-builder' ),
585
+ 'ILS' => __( 'Israel Shekel','profile-builder' ),
586
+ 'JMD' => __( 'Jamaica Dollar','profile-builder' ),
587
+ 'JPY' => __( 'Japan Yen','profile-builder' ),
588
+ 'JEP' => __( 'Jersey Pound','profile-builder' ),
589
+ 'KZT' => __( 'Kazakhstan Tenge','profile-builder' ),
590
+ 'KPW' => __( 'Korea (North) Won','profile-builder' ),
591
+ 'KRW' => __( 'Korea (South) Won','profile-builder' ),
592
+ 'KGS' => __( 'Kyrgyzstan Som','profile-builder' ),
593
+ 'LAK' => __( 'Laos Kip','profile-builder' ),
594
+ 'LVL' => __( 'Latvia Lat','profile-builder' ),
595
+ 'LBP' => __( 'Lebanon Pound','profile-builder' ),
596
+ 'LRD' => __( 'Liberia Dollar','profile-builder' ),
597
+ 'LTL' => __( 'Lithuania Litas','profile-builder' ),
598
+ 'MKD' => __( 'Macedonia Denar','profile-builder' ),
599
+ 'MYR' => __( 'Malaysia Ringgit','profile-builder' ),
600
+ 'MUR' => __( 'Mauritius Rupee','profile-builder' ),
601
+ 'MXN' => __( 'Mexico Peso','profile-builder' ),
602
+ 'MNT' => __( 'Mongolia Tughrik','profile-builder' ),
603
+ 'MZN' => __( 'Mozambique Metical','profile-builder' ),
604
+ 'NAD' => __( 'Namibia Dollar','profile-builder' ),
605
+ 'NPR' => __( 'Nepal Rupee','profile-builder' ),
606
+ 'ANG' => __( 'Netherlands Antilles Guilder','profile-builder' ),
607
+ 'NZD' => __( 'New Zealand Dollar','profile-builder' ),
608
+ 'NIO' => __( 'Nicaragua Cordoba','profile-builder' ),
609
+ 'NGN' => __( 'Nigeria Naira','profile-builder' ),
610
+ 'NOK' => __( 'Norway Krone','profile-builder' ),
611
+ 'OMR' => __( 'Oman Rial', 'profile-builder' ),
612
+ 'PKR' => __( 'Pakistan Rupee', 'profile-builder' ),
613
+ 'PAB' => __( 'Panama Balboa', 'profile-builder' ),
614
+ 'PYG' => __( 'Paraguay Guarani', 'profile-builder' ),
615
+ 'PEN' => __( 'Peru Nuevo Sol', 'profile-builder' ),
616
+ 'PHP' => __( 'Philippines Peso', 'profile-builder' ),
617
+ 'PLN' => __( 'Poland Zloty', 'profile-builder' ),
618
+ 'QAR' => __( 'Qatar Riyal', 'profile-builder' ),
619
+ 'RON' => __( 'Romania New Leu', 'profile-builder' ),
620
+ 'RUB' => __( 'Russia Ruble', 'profile-builder' ),
621
+ 'SHP' => __( 'Saint Helena Pound', 'profile-builder' ),
622
+ 'SAR' => __( 'Saudi Arabia Riyal', 'profile-builder' ),
623
+ 'RSD' => __( 'Serbia Dinar', 'profile-builder' ),
624
+ 'SCR' => __( 'Seychelles Rupee', 'profile-builder' ),
625
+ 'SGD' => __( 'Singapore Dollar', 'profile-builder' ),
626
+ 'SBD' => __( 'Solomon Islands Dollar', 'profile-builder' ),
627
+ 'SOS' => __( 'Somalia Shilling', 'profile-builder' ),
628
+ 'ZAR' => __( 'South Africa Rand', 'profile-builder' ),
629
+ 'LKR' => __( 'Sri Lanka Rupee', 'profile-builder' ),
630
+ 'SEK' => __( 'Sweden Krona', 'profile-builder' ),
631
+ 'CHF' => __( 'Switzerland Franc', 'profile-builder' ),
632
+ 'SRD' => __( 'Suriname Dollar', 'profile-builder' ),
633
+ 'SYP' => __( 'Syria Pound', 'profile-builder' ),
634
+ 'TWD' => __( 'Taiwan New Dollar', 'profile-builder' ),
635
+ 'THB' => __( 'Thailand Baht', 'profile-builder' ),
636
+ 'TTD' => __( 'Trinidad and Tobago Dollar', 'profile-builder' ),
637
+ 'TRY' => __( 'Turkey Lira', 'profile-builder' ),
638
+ 'TRL' => __( 'Turkey Lira', 'profile-builder' ),
639
+ 'TVD' => __( 'Tuvalu Dollar', 'profile-builder' ),
640
+ 'UAH' => __( 'Ukraine Hryvna', 'profile-builder' ),
641
+ 'GBP' => __( 'United Kingdom Pound', 'profile-builder' ),
642
+ 'UGX' => __( 'Uganda Shilling', 'profile-builder' ),
643
+ 'USD' => __( 'US Dollar', 'profile-builder' ),
644
+ 'UYU' => __( 'Uruguay Peso', 'profile-builder' ),
645
+ 'UZS' => __( 'Uzbekistan Som', 'profile-builder' ),
646
+ 'VEF' => __( 'Venezuela Bolivar', 'profile-builder' ),
647
+ 'VND' => __( 'Viet Nam Dong', 'profile-builder' ),
648
+ 'YER' => __( 'Yemen Rial', 'profile-builder' ),
649
+ 'ZWD' => __( 'Zimbabwe Dollar', 'profile-builder' )
650
+ );
651
+
652
+ $filter_name = ( empty( $form_location ) ? 'wppb_get_currencies' : 'wppb_get_currencies_' . $form_location );
653
+
654
+ return apply_filters( $filter_name, $currencies );
655
+
656
+ }
657
+
658
+
659
+ /*
660
+ * Returns the currency symbol for a given currency code
661
+ *
662
+ * @param string $currency_code
663
+ *
664
+ * @return string
665
+ *
666
+ */
667
+ function wppb_get_currency_symbol( $currency_code ) {
668
+
669
+ $currency_symbols = array(
670
+ 'AED' => '&#1583;.&#1573;', // ?
671
+ 'AFN' => '&#65;&#102;',
672
+ 'ALL' => '&#76;&#101;&#107;',
673
+ 'AMD' => '',
674
+ 'ANG' => '&#402;',
675
+ 'AOA' => '&#75;&#122;', // ?
676
+ 'ARS' => '&#36;',
677
+ 'AUD' => '&#36;',
678
+ 'AWG' => '&#402;',
679
+ 'AZN' => '&#1084;&#1072;&#1085;',
680
+ 'BAM' => '&#75;&#77;',
681
+ 'BBD' => '&#36;',
682
+ 'BDT' => '&#2547;', // ?
683
+ 'BGN' => '&#1083;&#1074;',
684
+ 'BHD' => '.&#1583;.&#1576;', // ?
685
+ 'BIF' => '&#70;&#66;&#117;', // ?
686
+ 'BMD' => '&#36;',
687
+ 'BND' => '&#36;',
688
+ 'BOB' => '&#36;&#98;',
689
+ 'BRL' => '&#82;&#36;',
690
+ 'BSD' => '&#36;',
691
+ 'BTN' => '&#78;&#117;&#46;', // ?
692
+ 'BWP' => '&#80;',
693
+ 'BYR' => '&#112;&#46;',
694
+ 'BZD' => '&#66;&#90;&#36;',
695
+ 'CAD' => '&#36;',
696
+ 'CDF' => '&#70;&#67;',
697
+ 'CHF' => '&#67;&#72;&#70;',
698
+ 'CLF' => '', // ?
699
+ 'CLP' => '&#36;',
700
+ 'CNY' => '&#165;',
701
+ 'COP' => '&#36;',
702
+ 'CRC' => '&#8353;',
703
+ 'CUP' => '&#8396;',
704
+ 'CVE' => '&#36;', // ?
705
+ 'CZK' => '&#75;&#269;',
706
+ 'DJF' => '&#70;&#100;&#106;', // ?
707
+ 'DKK' => '&#107;&#114;',
708
+ 'DOP' => '&#82;&#68;&#36;',
709
+ 'DZD' => '&#1583;&#1580;', // ?
710
+ 'EGP' => '&#163;',
711
+ 'ETB' => '&#66;&#114;',
712
+ 'EUR' => '&#8364;',
713
+ 'FJD' => '&#36;',
714
+ 'FKP' => '&#163;',
715
+ 'GBP' => '&#163;',
716
+ 'GEL' => '&#4314;', // ?
717
+ 'GHS' => '&#162;',
718
+ 'GIP' => '&#163;',
719
+ 'GMD' => '&#68;', // ?
720
+ 'GNF' => '&#70;&#71;', // ?
721
+ 'GTQ' => '&#81;',
722
+ 'GYD' => '&#36;',
723
+ 'HKD' => '&#36;',
724
+ 'HNL' => '&#76;',
725
+ 'HRK' => '&#107;&#110;',
726
+ 'HTG' => '&#71;', // ?
727
+ 'HUF' => '&#70;&#116;',
728
+ 'IDR' => '&#82;&#112;',
729
+ 'ILS' => '&#8362;',
730
+ 'INR' => '&#8377;',
731
+ 'IQD' => '&#1593;.&#1583;', // ?
732
+ 'IRR' => '&#65020;',
733
+ 'ISK' => '&#107;&#114;',
734
+ 'JEP' => '&#163;',
735
+ 'JMD' => '&#74;&#36;',
736
+ 'JOD' => '&#74;&#68;', // ?
737
+ 'JPY' => '&#165;',
738
+ 'KES' => '&#75;&#83;&#104;', // ?
739
+ 'KGS' => '&#1083;&#1074;',
740
+ 'KHR' => '&#6107;',
741
+ 'KMF' => '&#67;&#70;', // ?
742
+ 'KPW' => '&#8361;',
743
+ 'KRW' => '&#8361;',
744
+ 'KWD' => '&#1583;.&#1603;', // ?
745
+ 'KYD' => '&#36;',
746
+ 'KZT' => '&#1083;&#1074;',
747
+ 'LAK' => '&#8365;',
748
+ 'LBP' => '&#163;',
749
+ 'LKR' => '&#8360;',
750
+ 'LRD' => '&#36;',
751
+ 'LSL' => '&#76;', // ?
752
+ 'LTL' => '&#76;&#116;',
753
+ 'LVL' => '&#76;&#115;',
754
+ 'LYD' => '&#1604;.&#1583;', // ?
755
+ 'MAD' => '&#1583;.&#1605;.', //?
756
+ 'MDL' => '&#76;',
757
+ 'MGA' => '&#65;&#114;', // ?
758
+ 'MKD' => '&#1076;&#1077;&#1085;',
759
+ 'MMK' => '&#75;',
760
+ 'MNT' => '&#8366;',
761
+ 'MOP' => '&#77;&#79;&#80;&#36;', // ?
762
+ 'MRO' => '&#85;&#77;', // ?
763
+ 'MUR' => '&#8360;', // ?
764
+ 'MVR' => '.&#1923;', // ?
765
+ 'MWK' => '&#77;&#75;',
766
+ 'MXN' => '&#36;',
767
+ 'MYR' => '&#82;&#77;',
768
+ 'MZN' => '&#77;&#84;',
769
+ 'NAD' => '&#36;',
770
+ 'NGN' => '&#8358;',
771
+ 'NIO' => '&#67;&#36;',
772
+ 'NOK' => '&#107;&#114;',
773
+ 'NPR' => '&#8360;',
774
+ 'NZD' => '&#36;',
775
+ 'OMR' => '&#65020;',
776
+ 'PAB' => '&#66;&#47;&#46;',
777
+ 'PEN' => '&#83;&#47;&#46;',
778
+ 'PGK' => '&#75;', // ?
779
+ 'PHP' => '&#8369;',
780
+ 'PKR' => '&#8360;',
781
+ 'PLN' => '&#122;&#322;',
782
+ 'PYG' => '&#71;&#115;',
783
+ 'QAR' => '&#65020;',
784
+ 'RON' => '&#108;&#101;&#105;',
785
+ 'RSD' => '&#1044;&#1080;&#1085;&#46;',
786
+ 'RUB' => '&#1088;&#1091;&#1073;',
787
+ 'RWF' => '&#1585;.&#1587;',
788
+ 'SAR' => '&#65020;',
789
+ 'SBD' => '&#36;',
790
+ 'SCR' => '&#8360;',
791
+ 'SDG' => '&#163;', // ?
792
+ 'SEK' => '&#107;&#114;',
793
+ 'SGD' => '&#36;',
794
+ 'SHP' => '&#163;',
795
+ 'SLL' => '&#76;&#101;', // ?
796
+ 'SOS' => '&#83;',
797
+ 'SRD' => '&#36;',
798
+ 'STD' => '&#68;&#98;', // ?
799
+ 'SVC' => '&#36;',
800
+ 'SYP' => '&#163;',
801
+ 'SZL' => '&#76;', // ?
802
+ 'THB' => '&#3647;',
803
+ 'TJS' => '&#84;&#74;&#83;', // ? TJS (guess)
804
+ 'TMT' => '&#109;',
805
+ 'TND' => '&#1583;.&#1578;',
806
+ 'TOP' => '&#84;&#36;',
807
+ 'TRY' => '&#8356;', // New Turkey Lira (old symbol used)
808
+ 'TTD' => '&#36;',
809
+ 'TWD' => '&#78;&#84;&#36;',
810
+ 'TZS' => '',
811
+ 'UAH' => '&#8372;',
812
+ 'UGX' => '&#85;&#83;&#104;',
813
+ 'USD' => '&#36;',
814
+ 'UYU' => '&#36;&#85;',
815
+ 'UZS' => '&#1083;&#1074;',
816
+ 'VEF' => '&#66;&#115;',
817
+ 'VND' => '&#8363;',
818
+ 'VUV' => '&#86;&#84;',
819
+ 'WST' => '&#87;&#83;&#36;',
820
+ 'XAF' => '&#70;&#67;&#70;&#65;',
821
+ 'XCD' => '&#36;',
822
+ 'XDR' => '',
823
+ 'XOF' => '',
824
+ 'XPF' => '&#70;',
825
+ 'YER' => '&#65020;',
826
+ 'ZAR' => '&#82;',
827
+ 'ZMK' => '&#90;&#75;', // ?
828
+ 'ZWL' => '&#90;&#36;',
829
+ );
830
+
831
+ if( !empty( $currency_symbols[$currency_code] ) )
832
+ return $currency_symbols[$currency_code];
833
+ else
834
+ return '';
835
+
836
+ }
837
+
838
+
839
  /**
840
  * Function that returns a unique, incremented ID
841
  *
assets/css/style-front-end.css CHANGED
@@ -167,6 +167,11 @@
167
  float:left;
168
  }
169
 
 
 
 
 
 
170
  .wppb-user-forms .wppb-wysiwyg .wp-editor-wrap .wp-editor-tabs *{
171
  box-sizing: content-box !important;
172
  }
@@ -194,6 +199,16 @@ input#send_credentials_via_email{
194
  font-style:italic;
195
  }
196
 
 
 
 
 
 
 
 
 
 
 
197
  .wppb_upload_button{
198
  display:inline-block;
199
  }
167
  float:left;
168
  }
169
 
170
+ .wppb-form-field.wppb-timepicker select {
171
+ width: auto;
172
+ margin-right: 5px;
173
+ }
174
+
175
  .wppb-user-forms .wppb-wysiwyg .wp-editor-wrap .wp-editor-tabs *{
176
  box-sizing: content-box !important;
177
  }
199
  font-style:italic;
200
  }
201
 
202
+ .wppb-form-field.wppb-timepicker > span.wppb-timepicker-separator {
203
+ display: inline-block;
204
+ float: left;
205
+ clear: none;
206
+ margin-left: 0;
207
+ margin-right: 5px;
208
+ font-size: 100%;
209
+ font-style: normal;
210
+ }
211
+
212
  .wppb_upload_button{
213
  display:inline-block;
214
  }
assets/js/jquery-manage-fields-live-change.js CHANGED
@@ -270,6 +270,17 @@ var fields = {
270
  ]
271
  },
272
 
 
 
 
 
 
 
 
 
 
 
 
273
  'Select (Timezone)': { 'show_rows' : [
274
  '.row-field-title',
275
  '.row-meta-name',
@@ -348,6 +359,40 @@ var fields = {
348
  ]
349
  },
350
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  'reCAPTCHA': { 'show_rows' : [
352
  '.row-field-title',
353
  '.row-description',
270
  ]
271
  },
272
 
273
+ 'Select (Currency)': { 'show_rows' : [
274
+ '.row-field-title',
275
+ '.row-meta-name',
276
+ '.row-description',
277
+ '.row-show-currency-symbol',
278
+ '.row-default-option-currency',
279
+ '.row-required',
280
+ '.row-overwrite-existing'
281
+ ]
282
+ },
283
+
284
  'Select (Timezone)': { 'show_rows' : [
285
  '.row-field-title',
286
  '.row-meta-name',
359
  ]
360
  },
361
 
362
+
363
+ 'Timepicker': { 'show_rows' : [
364
+ '.row-field-title',
365
+ '.row-meta-name',
366
+ '.row-description',
367
+ '.row-required',
368
+ '.row-time-format',
369
+ '.row-overwrite-existing'
370
+ ]
371
+ },
372
+
373
+ 'Colorpicker': { 'show_rows' : [
374
+ '.row-field-title',
375
+ '.row-meta-name',
376
+ '.row-description',
377
+ '.row-required',
378
+ '.row-overwrite-existing'
379
+ ]
380
+ },
381
+
382
+
383
+ 'Validation': { 'show_rows' : [
384
+ '.row-field-title',
385
+ '.row-meta-name',
386
+ '.row-description',
387
+ '.row-validation-possible-values',
388
+ '.row-custom-error-message',
389
+ '.row-required'
390
+ ],
391
+ 'required' : [
392
+ true
393
+ ]
394
+ },
395
+
396
  'reCAPTCHA': { 'show_rows' : [
397
  '.row-field-title',
398
  '.row-description',
features/email-confirmation/email-confirmation.php CHANGED
@@ -556,8 +556,10 @@ function wppb_notify_user_registration_email( $bloginfo, $user_name, $email, $se
556
  $message_content = apply_filters( 'wppb_register_admin_email_message_without_admin_approval', $message_content, $email, $password, $message_from, 'wppb_admin_emailc_default_registration_email_content' );
557
  }
558
 
559
- if ( trim( $message_content ) != '' )
560
- wppb_mail( get_option('admin_email'), $message_subject, $message_content, $message_from, $message_context );
 
 
561
 
562
 
563
 
556
  $message_content = apply_filters( 'wppb_register_admin_email_message_without_admin_approval', $message_content, $email, $password, $message_from, 'wppb_admin_emailc_default_registration_email_content' );
557
  }
558
 
559
+ if ( trim( $message_content ) != '' ){
560
+ $admin_email = apply_filters('wppb_send_to_admin_email', get_option('admin_email'), get_user_by( 'email', $email ), $message_context);
561
+ wppb_mail( $admin_email, $message_subject, $message_content, $message_from, $message_context );
562
+ }
563
 
564
 
565
 
features/functions.php CHANGED
@@ -79,11 +79,15 @@ if(!function_exists('wppb_curpageurl')){
79
 
80
  $pageURL .= "://";
81
 
82
- if ($_SERVER["SERVER_PORT"] != "80")
83
- $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
84
-
85
- else
86
- $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 
 
 
 
87
 
88
  if ( function_exists('apply_filters') ) $pageURL = apply_filters('wppb_curpageurl', $pageURL);
89
 
79
 
80
  $pageURL .= "://";
81
 
82
+ if( strpos( $_SERVER["HTTP_HOST"], $_SERVER["SERVER_NAME"] ) !== false ){
83
+ $pageURL .=$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
84
+ }
85
+ else {
86
+ if ($_SERVER["SERVER_PORT"] != "80")
87
+ $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
88
+ else
89
+ $pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
90
+ }
91
 
92
  if ( function_exists('apply_filters') ) $pageURL = apply_filters('wppb_curpageurl', $pageURL);
93
 
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Profile Builder
4
  Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
5
  Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
6
- Version: 2.3.6
7
  Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
8
  Author URI: http://www.cozmoslabs.com/
9
  License: GPL2
@@ -73,7 +73,7 @@ function wppb_free_plugin_init() {
73
  *
74
  *
75
  */
76
- define('PROFILE_BUILDER_VERSION', '2.3.6' );
77
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
78
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
79
  define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
3
  Plugin Name: Profile Builder
4
  Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
5
  Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
6
+ Version: 2.3.7
7
  Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
8
  Author URI: http://www.cozmoslabs.com/
9
  License: GPL2
73
  *
74
  *
75
  */
76
+ define('PROFILE_BUILDER_VERSION', '2.3.7' );
77
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
78
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
79
  define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Profile Builder - front-end user registration, login and edit profile ===
2
  Contributors: cozmoslabs, reflectionmedia, sareiodata, adispiac, madalin.ungureanu, iova.mihai, barinagabriel
3
  Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
4
- Tags: registration, user profile, user registration, custom field registration, customize profile, user fields, extra user fields, builder, profile builder, custom user profile, user profile page, edit profile, custom registration, custom registration form, custom registration page, registration page, user custom fields, user listing, front-end user listing, user login, user registration form, front-end login, login redirect, login widget, front-end register, front-end registration, front-end edit profile, front-end user registration, custom redirects, user email, avatar upload, email confirmation, user approval, customize registration email, minimum password length, minimum password strength, password strength meter, multiple registration forms, register, register form, register user, register users, login form, member directory, redirect user
5
 
6
  Requires at least: 3.1
7
  Tested up to: 4.5.2
8
- Stable tag: 2.3.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -147,6 +147,10 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
147
  10. Profile Builder Login Widget
148
 
149
  == Changelog ==
 
 
 
 
150
  = 2.3.6 =
151
  * Fixed a security issue regarding shortcodes
152
  * Fixed a deprecated function warning in the hidden input field
1
  === Profile Builder - front-end user registration, login and edit profile ===
2
  Contributors: cozmoslabs, reflectionmedia, sareiodata, adispiac, madalin.ungureanu, iova.mihai, barinagabriel
3
  Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
4
+ Tags: user registration, user registration form, user fields, extra user fields, edit profile, user custom fields, front-end login, front-end edit profile, front-end user registration, email confirmation, login form
5
 
6
  Requires at least: 3.1
7
  Tested up to: 4.5.2
8
+ Stable tag: 2.3.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
147
  10. Profile Builder Login Widget
148
 
149
  == Changelog ==
150
+ = 2.3.7 =
151
+ * Changed the wppb_curpageurl function to fix the missing www problem from links
152
+ * Added a new filter wppb_send_to_admin_email to Email Confirmation
153
+
154
  = 2.3.6 =
155
  * Fixed a security issue regarding shortcodes
156
  * Fixed a deprecated function warning in the hidden input field