Plugin Directory

Changeset 1027324


Ignore:
Timestamp:
11/17/2014 02:49:24 PM (11 years ago)
Author:
reflectionmedia
Message:

tagging version 2.0.6

Location:
profile-builder
Files:
26 added
28 edited
1 copied

Legend:

Unmodified
Added
Removed
  • profile-builder/tags/2.0.6/admin/manage-fields.php

    r1020987 r1027324  
    168168
    169169    if ( ( $wppb_manage_fields === 'not_found' ) || ( empty( $wppb_manage_fields ) ) ){
    170         return 'custom_field'.$id;
     170        return 'custom_field_' . $id;
    171171    }
    172172    else{
     
    182182            foreach( $meta_names as $meta_name ){
    183183                $number = str_replace( 'custom_field', '', $meta_name );
    184                 /* backwards compatibility check in PB 1.3 meta_name was custom_field_# */
     184                /* we should have an underscore present in custom_field_# so remove it */
    185185                $number = str_replace( '_', '', $number );
    186186
     
    193193        }
    194194
    195         return 'custom_field'.$id;
     195        return 'custom_field_' . $id;
    196196    }
    197197}
     
    219219        if( !empty( $ids_array ) ){
    220220            rsort( $ids_array );
    221             $id = $ids_array[0]+1;
     221            $id = $ids_array[0] + 1;
    222222        }
    223223    }
    224224    return $id;
    225225}
     226
     227/**
     228 * Function that checks to see if the id is unique when saving the new field
     229 *
     230 * @param array $values
     231 *
     232 * @return array
     233 */
     234function wppb_check_unique_id_on_saving( $values ) {
     235    $wppb_manage_fields = get_option( 'wppb_manage_fields', 'not_found' );
     236
     237    if( $wppb_manage_fields != 'not_found' ) {
     238
     239        $ids_array = array();
     240        foreach( $wppb_manage_fields as $field ){
     241            $ids_array[] = $field['id'];
     242        }
     243
     244        if( in_array( $values['id'], $ids_array ) ) {
     245            rsort( $ids_array );
     246            $values['id'] = $ids_array[0] + 1;
     247        }
     248
     249    }
     250
     251    return $values;
     252}
     253add_filter( 'wck_add_meta_filter_values_wppb_manage_fields', 'wppb_check_unique_id_on_saving' );
     254
    226255
    227256function wppb_return_unique_field_list( $only_default_fields = false ){
     
    337366        // END check for the correct the date-format   
    338367       
    339         //check duplicate meta-name
     368        //check for empty meta-name and duplicate meta-name
    340369        if ( $posted_values['overwrite-existing'] == 'No' ){
    341370            $skip_check_for_fields = wppb_return_unique_field_list(true);
     
    344373            if ( !in_array( trim( $posted_values['field'] ), $skip_check_for_fields ) ){
    345374                $unique_meta_name_list = array( 'first_name', 'last_name', 'nickname', 'description' );
    346                
     375
     376                //check to see if meta-name is empty
     377                $skip_empty_check_for_fields = array('Heading');
     378
     379                if( !in_array( $posted_values['field'], $skip_empty_check_for_fields ) && empty( $posted_values['meta-name'] ) ) {
     380                    $message .= __( "The meta-name cannot be empty\n", 'profilebuilder' );
     381                }
     382
    347383                // Default contact methods were removed in WP 3.6. A filter dictates contact methods.
    348384                if ( apply_filters( 'wppb_remove_default_contact_methods', get_site_option( 'initial_db_version' ) < 23588 ) ){
     
    401437        }
    402438        // END check for valid default option (checkbox, select, radio)
    403    
     439
     440        $message = apply_filters( 'wppb_check_extra_manage_fields', $message, $posted_values );
     441
    404442    }elseif ( ( $meta_name == 'wppb_rf_fields' ) || ( $meta_name == 'wppb_epf_fields' ) ){
    405443        if ( $posted_values['field'] == '' ){
  • profile-builder/tags/2.0.6/admin/register-version.php

    r1020987 r1027324  
    9494   
    9595    $response = wp_remote_get( 'http://updatemetadata.cozmoslabs.com/checkserial/?serialNumberSent='.$serial_number_set );
    96    
     96
    9797    if ( PROFILE_BUILDER == 'Profile Builder Pro' ){
    9898        wppb_update_serial_status($response, 'pro');
     
    209209if ( PROFILE_BUILDER == 'Profile Builder Pro' ){
    210210    $wppb_profile_builder_pro_hobbyist_serial_status = get_option( 'wppb_profile_builder_pro_serial_status', 'empty' );
     211    $version = 'pro';
     212
    211213} elseif( PROFILE_BUILDER == 'Profile Builder Hobbyist' ) {
    212214    $wppb_profile_builder_pro_hobbyist_serial_status = get_option( 'wppb_profile_builder_hobbyist_serial_status', 'empty' );
     215    $version = 'hobbyist';
    213216}
    214217
    215218if ( $wppb_profile_builder_pro_hobbyist_serial_status == 'notFound' || $wppb_profile_builder_pro_hobbyist_serial_status == 'empty' ){
    216     new wppb_add_notices( 'wppb', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> serial number is invalid or missing. <br/>Please %1$sregister your copy%2$s of Profile Builder to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s</p>', 'profilebuilder'), "<a href='admin.php?page=profile-builder-register'>", "</a>", "<a href='http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Purchase' target='_blank' class='button-primary'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
     219    new wppb_add_notices( 'wppb', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> serial number is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s</p>', 'profilebuilder'), "<a href='admin.php?page=profile-builder-register'>", "</a>", "<a href='http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-SN-Purchase' target='_blank' class='button-primary'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
    217220}
    218221elseif ( $wppb_profile_builder_pro_hobbyist_serial_status == 'expired' ){
    219     $wppb_notice = new wppb_add_notices( 'wppb', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> licence has expired. <br/>Please %1$sRenew Your Licence%2$s to receive access to automatic updates and support. %3$sPurchase one now%4$s %5$sDismiss%6$s</p>', 'profilebuilder'), "<a href='http://www.cozmoslabs.com/downloads/profile-builder-pro-1-year/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank'>", "</a>", "<a href='http://www.cozmoslabs.com/downloads/profile-builder-pro-1-year/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank' class='button-primary'>", "</a>", "<a href='". add_query_arg( 'wppb_dismiss_notification', '0' ) ."' class='wppb-dismiss-notification'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
     222    new wppb_add_notices( 'wppb_expired', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now and get 50&#37; off %4$s %5$sDismiss%6$s</p>', 'profilebuilder'), "<a href='http://www.cozmoslabs.com/downloads/profile-builder-". $version ."-v2-yearly-renewal/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank'>", "</a>", "<a href='http://www.cozmoslabs.com/downloads/profile-builder-".$version."-v2-yearly-renewal/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank' class='button-primary'>", "</a>", "<a href='". add_query_arg( 'wppb_expired_dismiss_notification', '0' ) ."' class='wppb-dismiss-notification'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
    220223}
    221224elseif( strpos( $wppb_profile_builder_pro_hobbyist_serial_status, 'aboutToExpire' ) === 0 ){
    222225    $serial_status_parts = explode( '#', $wppb_profile_builder_pro_hobbyist_serial_status );
    223226    $date = $serial_status_parts[1];
    224     new wppb_add_notices( 'wppb', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> serial number is about to expire on %5$s. <br/>Please %1$sRenew Your Licence%2$s to receive access to automatic updates and support. %3$sPurchase one now%4$s</p>', 'profilebuilder'), "<a href='admin.php?page=profile-builder-register'>", "</a>", "<a href='http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Purchase' target='_blank' class='button-primary'>", "</a>", $date ), 'wppb_profile_builder_pro_serial_status' );
    225 }
     227    new wppb_add_notices( 'wppb_about_to_expire', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> license is about to expire on %5$s. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now and get 50&#37; off %4$s %6$sDismiss%7$s</p>', 'profilebuilder'), "<a href='http://www.cozmoslabs.com/downloads/profile-builder-". $version ."-v2-yearly-renewal/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank'>", "</a>", "<a href='http://www.cozmoslabs.com/downloads/profile-builder-".$version."-v2-yearly-renewal/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank' class='button-primary'>", "</a>", $date, "<a href='". add_query_arg( 'wppb_about_to_expire_dismiss_notification', '0' ) ."' class='wppb-dismiss-notification'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
     228}
  • profile-builder/tags/2.0.6/assets/css/style-front-end.css

    r1020987 r1027324  
    144144    padding-right:0;
    145145}
     146
     147.wppb-user-forms ul li{
     148    list-style:none;
     149}
     150
    146151.wppb-user-forms ul li,
    147152#wppb-login-wrap p{
  • profile-builder/tags/2.0.6/assets/js/jquery-manage-fields-live-change.js

    r1020987 r1027324  
    464464                if( meta_name.indexOf( 'custom_field' ) !== -1 ){
    465465                    var meta_name = meta_name.replace('custom_field', '' );
    466                     /* backwards compatibility check in PB 1.3 meta_name was custom_field_# */
     466                    /* we should have an underscore present in custom_field_# so remove it */
    467467                    meta_name = meta_name.replace('_', '' );
     468
    468469                    if( isNaN( meta_name ) ){
    469470                        meta_name = Math.floor((Math.random() * 200) + 100);
    470471                    }
    471                     numbers.push( meta_name );
     472                    numbers.push( parseInt(meta_name) );
    472473                }
     474
    473475            });
    474476            if( numbers.length > 0 ){
    475                 numbers.sort();
     477                numbers.sort( function(a, b){return a-b} );
    476478                numbers.reverse();
    477479                meta_number = parseInt(numbers[0])+1;
     
    480482                meta_number = 1;
    481483
    482             meta_value = 'custom_field'+meta_number;
     484            meta_value = 'custom_field_' + meta_number;
    483485        }
     486
    484487        jQuery( container_name + ' ' + '#meta-name' ).val( meta_value );
    485488        jQuery( container_name + ' ' + '#meta-name' ).attr( 'readonly', false );
  • profile-builder/tags/2.0.6/assets/lib/wck-api/wordpress-creation-kit.php

    r1020987 r1027324  
    345345        $form = '';
    346346        $form .= '<tr id="update_container_'.$meta.'_'.$element_id.'" ' . $wck_update_container_css_class . '><td colspan="4">';
    347        
    348347        if($results != null){
    349348            $i = 0;
     
    357356                    else
    358357                        $value = '';
    359                    
     358
    360359                    $form = apply_filters( "wck_before_update_form_{$meta}_element_{$i}", $form, $element_id, $value );
    361360                   
     
    674673        else
    675674            $values = array();
    676        
     675
    677676        $values = apply_filters( "wck_add_meta_filter_values_{$meta}", $values );
    678        
     677
    679678        /* check required fields */
    680679        $errors = self::wck_test_required( $this->args['meta_array'], $meta, $values, $id );       
     
    836835        $meta = $_POST['meta'];
    837836        $id = absint($_POST['id']);
    838         $element_id = $_POST['element_id'];
    839        
     837        $element_id = $_POST['element_id'];
     838
     839        do_action( "wck_before_adding_form_{$meta}", $id, $element_id );
     840
    840841        echo self::mb_update_form($this->args['meta_array'], $meta, $id, $element_id);
    841842       
     
    886887           
    887888            $meta_suffix = 1;           
    888            
     889
    889890            if( !empty( $results ) ){
    890                 foreach( $results as $result ){             
    891                     foreach ( $result as $name => $value){                 
    892                         update_post_meta($id, $meta.'_'.$name.'_'.$meta_suffix, $value);                   
     891                foreach( $results as $result ){
     892                    foreach ( $result as $name => $value){
     893                        update_post_meta($id, $meta.'_'.$name.'_'.$meta_suffix, $value);
    893894                    }
    894895                    $meta_suffix++;         
     
    10311032    function wck_media_send_to_editor($html, $id)
    10321033    {
    1033         parse_str($_POST["_wp_http_referer"], $arr_postinfo);
    1034        
    1035         if(isset($arr_postinfo["mb_type"]))
    1036         {
    1037             $file_src = wp_get_attachment_url($id);
    1038             $thumbnail = wp_get_attachment_image( $id, array( 80, 60 ), true );
    1039             $file_name = get_the_title( $id );
    1040            
    1041             if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $id ), $matches ) )
    1042                 $file_type = esc_html( strtoupper( $matches[1] ) );
    1043             else
    1044                 $file_type = strtoupper( str_replace( 'image/', '', get_post_mime_type( $id ) ) );
    1045        
    1046             ?>
    1047             <script type="text/javascript">             
    1048                
    1049                 self.parent.window. <?php echo $arr_postinfo["mb_type"];?> .val('<?php echo $id; ?>');
    1050                 self.parent.window. <?php echo $arr_postinfo["mb_info_div"];?> .html('<?php echo $thumbnail ?><p><span class="file-name"><?php echo $file_name; ?></span><span class="file-type"><?php echo $file_type; ?></span><span class="wck-remove-upload"><?php _e( 'Remove', 'wck' )?></span></p>');
    1051                
    1052                 self.parent.tb_remove();
    1053                
    1054             </script>
    1055             <?php
    1056             exit;
    1057         }
    1058         else
    1059         {
     1034        if( !empty( $_POST["_wp_http_referer"] ) ) {
     1035            parse_str($_POST["_wp_http_referer"], $arr_postinfo);
     1036            if (isset($arr_postinfo["mb_type"])) {
     1037                $file_src = wp_get_attachment_url($id);
     1038                $thumbnail = wp_get_attachment_image($id, array(80, 60), true);
     1039                $file_name = get_the_title($id);
     1040
     1041                if (preg_match('/^.*?\.(\w+)$/', get_attached_file($id), $matches))
     1042                    $file_type = esc_html(strtoupper($matches[1]));
     1043                else
     1044                    $file_type = strtoupper(str_replace('image/', '', get_post_mime_type($id)));
     1045
     1046                ?>
     1047                <script type="text/javascript">
     1048
     1049                    self.parent.window.<?php echo $arr_postinfo["mb_type"];?>.val('<?php echo $id; ?>');
     1050                    self.parent.window.<?php echo $arr_postinfo["mb_info_div"];?>.html('<?php echo $thumbnail ?><p><span class="file-name"><?php echo $file_name; ?></span><span class="file-type"><?php echo $file_type; ?></span><span class="wck-remove-upload"><?php _e( 'Remove', 'wck' )?></span></p>');
     1051
     1052                    self.parent.tb_remove();
     1053
     1054                </script>
     1055                <?php
     1056                exit;
     1057            }
     1058        }
     1059        else{
    10601060            return $html;
    10611061        }
  • profile-builder/tags/2.0.6/features/email-confirmation/email-confirmation.php

    r1012789 r1027324  
    375375        $user_login = esc_sql( $signup->user_login );
    376376        $user_email = esc_sql( $signup->user_email );
    377         $password = base64_decode( $meta['user_pass'] );
     377        /* the password is in hashed form in the signup table and we will copy it later to the user */
     378        $password = NULL;
    378379
    379380        $user_id = username_exists($user_login);
     
    403404                clean_object_term_cache( $user_id, 'user_status' );
    404405            }
     406
     407            /* copy the hashed password from signup meta to wp user table */
     408            if( !empty( $meta['user_pass'] ) ){
     409                /* we might still have the base64 encoded password in signups and not the hash */
     410                if( base64_encode(base64_decode($meta['user_pass'], true)) === $meta['user_pass'] )
     411                    $meta['user_pass'] = wp_hash_password( $meta['user_pass'] );
     412
     413                $wpdb->update( $wpdb->users, array('user_pass' => $meta['user_pass'] ), array('ID' => $user_id) );
     414            }
    405415           
    406416            wppb_notify_user_registration_email( get_bloginfo( 'name' ), $user_login, $user_email, 'sending', $password, ( isset( $wppb_general_settings['adminApproval'] ) ? $wppb_general_settings['adminApproval'] : 'no' ) );
  • profile-builder/tags/2.0.6/features/functions.php

    r1020987 r1027324  
    554554 */
    555555function wppb_required_field_error($field_title='') {
    556     $required_error = __(apply_filters('wppb_required_error' , 'This field is required' , $field_title),'profilebuilder');
     556    $required_error = apply_filters('wppb_required_error' , __('This field is required','profilebuilder') , $field_title);
    557557
    558558    return $required_error;
     
    608608        'update-nag');
    609609}
     610
     611/*Filter default WordPress notices ("Post published. Post updated."), add post type name for User Listing, Registration Forms and Edit Profile Forms*/
     612function wppb_change_default_post_updated_messages($messages){
     613    global $post;
     614    $post_type = get_post_type($post->ID);
     615    $object = get_post_type_object($post_type);
     616
     617    if ( ($post_type == 'wppb-rf-cpt')||($post_type == 'wppb-epf-cpt')||($post_type == 'wppb-ul-cpt') ){
     618        $messages['post'][1] = $object->labels->name . ' updated.';
     619        $messages['post'][6] = $object->labels->name . ' published.';
     620    }
     621    return $messages;
     622}
     623add_filter('post_updated_messages','wppb_change_default_post_updated_messages', 2);
  • profile-builder/tags/2.0.6/features/upgrades/upgrades-functions.php

    r1011421 r1027324  
    159159                $local_array = array();
    160160
    161                 $local_array['id']                          = ( isset( $value['id'] ) ? trim( $value['id'] ) : '' );
     161                /* id will be set up at a later point */
     162                $local_array['id']                          = '';
    162163                $local_array['meta-name']                   = ( isset( $value['item_metaName'] ) ? trim( $value['item_metaName'] ) : '' );
    163164                $local_array['field-title']                 = ( isset( $value['item_title'] ) ? trim( $value['item_title'] ) : '' );
     
    280281        update_option( 'wppb_module_settings', $wppb_module_settings );
    281282    }
    282    
     283
     284    /* set up ids for each field */
     285    if( !empty( $backed_up_manage_fields ) ){
     286        /*make sure we have a 0 based index */
     287        $backed_up_manage_fields = array_values( $backed_up_manage_fields );
     288        foreach( $backed_up_manage_fields as $key => $backed_up_manage_field ){
     289            $backed_up_manage_fields[$key]['id'] = (int)$key + 1;
     290        }
     291    }
    283292    add_option( 'wppb_manage_fields', $backed_up_manage_fields );
    284293   
     
    508517function wppb_add_existing_default_fields ( $backed_up_manage_fields = array(), $field, $meta_name, $required, $description = '', $recaptcha_public_key = '', $recaptcha_private_key = '' ){
    509518    $local_array = array();
    510    
    511     $id = 0;
    512     foreach ( $backed_up_manage_fields as $key => $value ){
    513         if ( (int)$id < (int)$value['id'] );
    514             $id = $value['id'];
    515     }
    516     $id++;
    517 
    518     $local_array['id']                          = $id;
     519
     520    $local_array['id']                          = '';
    519521    $local_array['field']                       = $field;
    520522    $local_array['meta-name']                   = $meta_name;
  • profile-builder/tags/2.0.6/front-end/class-formbuilder.php

    r1020987 r1027324  
    369369                    $userdata = $this->wppb_add_custom_field_values( $global_request, $userdata, $this->args['form_fields'] );
    370370                    $userdata['role'] = $this->args['role'];
    371                     $userdata['user_pass'] = base64_encode( $userdata['user_pass'] );
     371                    $userdata['user_pass'] = wp_hash_password( $userdata['user_pass'] );
    372372                    wppb_signup_user( $userdata['user_login'], $userdata['user_email'], $userdata );
    373373               
     
    383383                $userdata = $this->wppb_add_custom_field_values( $global_request, $userdata, $this->args['form_fields'] );
    384384                $userdata['role'] = $this->args['role'];
    385                 $userdata['user_pass'] = base64_encode( $userdata['user_pass'] );
     385                $userdata['user_pass'] = wp_hash_password( $userdata['user_pass'] );
    386386                $userdata = wp_unslash( $userdata );
    387387                wppb_signup_user( $userdata['user_login'], $userdata['user_email'], $userdata );
     
    412412                    else
    413413                        $send_credentials_via_email = '';
    414                     wppb_notify_user_registration_email( get_bloginfo( 'name' ), ( isset( $global_request['username'] ) ? trim( $global_request['username'] ) : trim( $global_request['email'] ) ), trim( $global_request['email'] ), $send_credentials_via_email, trim( $global_request['passw1'] ), ( isset( $wppb_general_settings['adminApproval'] ) ? $wppb_general_settings['adminApproval'] : 'no' ) );
     414                    wppb_notify_user_registration_email( get_bloginfo( 'name' ), ( isset( $userdata['user_login'] ) ? trim( $userdata['user_login'] ) : trim( $userdata['user_email'] ) ), trim( $userdata['user_email'] ), $send_credentials_via_email, trim( $userdata['user_pass'] ), ( isset( $wppb_general_settings['adminApproval'] ) ? $wppb_general_settings['adminApproval'] : 'no' ) );
    415415                }
    416416            }
  • profile-builder/tags/2.0.6/front-end/default-fields/description/description.php

    r1011421 r1027324  
    2121        $output = '
    2222            <label for="description">'.$item_title.$error_mark.'</label>
    23             <textarea rows="'.$field['row-count'].'" name="description" class="default_field_description" id="description" wrap="virtual">'. esc_textarea( wp_unslash( $input_value ) ).'</textarea>';
     23            <textarea rows="'.$field['row-count'].'" name="description" maxlength="'. apply_filters( 'wppb_maximum_character_length', '', $field ) .'" class="default_field_description" id="description" wrap="virtual">'. esc_textarea( wp_unslash( $input_value ) ).'</textarea>';
    2424        if( !empty( $item_description ) )
    2525            $output .= '<span class="wppb-description-delimiter">'. $item_description .'</span>';
  • profile-builder/tags/2.0.6/front-end/register.php

    r1012789 r1027324  
    5555       
    5656    $user_email = esc_sql( $signup->user_email );
    57     $password = base64_decode( $meta['user_pass'] );
     57    /* the password is in hashed form in the signup table so we will add it later */
     58    $password = NULL;
    5859
    5960    $user_id = username_exists( $user_login );
     
    8485        if ( !isset( $wppb_generalSettings['adminApproval'] ) )
    8586            $wppb_generalSettings['adminApproval'] = 'no';
     87
     88        /* copy the hashed password from signup meta to wp user table */
     89        if( !empty( $meta['user_pass'] ) ){
     90            /* we might still have the base64 encoded password in signups and not the hash */
     91            if( base64_encode(base64_decode($meta['user_pass'], true)) === $meta['user_pass'] )
     92                $meta['user_pass'] = wp_hash_password( $meta['user_pass'] );
     93
     94            $wpdb->update( $wpdb->users, array('user_pass' => $meta['user_pass'] ), array('ID' => $user_id) );
     95        }
    8696       
    8797        wppb_notify_user_registration_email($bloginfo, $user_login, $user_email, 'sending', $password, $wppb_generalSettings['adminApproval']);
  • profile-builder/tags/2.0.6/index.php

    r1020987 r1027324  
    44Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
    55Description: 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.0.5
     6Version: 2.0.6
    77Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel
    88Author URI: http://www.cozmoslabs.com/
     
    2525*/
    2626
    27 /**
    28  * Convert memory value from ini file to a readable form
    29  *
    30  * @since v.1.0
    31  *
    32  * @return integer
    33  */
    34 function wppb_return_bytes( $val ) {
    35     $val = trim( $val );
    36    
    37     switch( strtolower( $val[strlen( $val )-1] ) ) {
    38         // The 'G' modifier is available since PHP 5.1.0
    39         case 'g':
    40             $val *= 1024;
    41         case 'm':
    42             $val *= 1024;
    43         case 'k':
    44             $val *= 1024;
    45     }
     27/* Check if another version of Profile Builder is activated, to prevent fatal errors*/
     28function wppb_plugin_init() {
     29    if (function_exists('wppb_return_bytes')) {
     30        function wppb_admin_notice()
     31        {
     32            ?>
     33            <div class="error">
     34                <p><?php _e( PROFILE_BUILDER . ' is also activated. You need to deactivate it before activating this version of the plugin.', 'profilebuilder'); ?></p>
     35            </div>
     36        <?php
     37        }
     38        function wppb_plugin_deactivate() {
     39            deactivate_plugins( plugin_basename( __FILE__ ) );
     40            unset($_GET['activate']);
     41        }
    4642
    47     return $val;
    48 }
     43        add_action('admin_notices', 'wppb_admin_notice');
     44        add_action( 'admin_init', 'wppb_plugin_deactivate' );
     45    } else {
    4946
    50 /**
    51  * Definitions
    52  *
    53  *
    54  */
    55 define( 'PROFILE_BUILDER_VERSION', '2.0.5' );
    56 define( 'WPPB_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
    57 define( 'WPPB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    58 define( 'WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters( 'wppb_server_max_upload_size_byte_constant', wppb_return_bytes( ini_get( 'upload_max_filesize') ) ) );
    59 define( 'WPPB_SERVER_MAX_UPLOAD_SIZE_MEGA', apply_filters( 'wppb_server_max_upload_size_mega_constant', ini_get( 'upload_max_filesize') ) );
    60 define( 'WPPB_SERVER_MAX_POST_SIZE_BYTE', apply_filters( 'wppb_server_max_post_size_byte_constant', wppb_return_bytes( ini_get( 'post_max_size') ) ) );
    61 define( 'WPPB_SERVER_MAX_POST_SIZE_MEGA', apply_filters( 'wppb_server_max_post_size_mega_constant', ini_get( 'post_max_size') ) );
    62 define( 'WPPB_TRANSLATE_DIR', WPPB_PLUGIN_DIR.'/translation' );
    63 define( 'WPPB_TRANSLATE_DOMAIN', 'profilebuilder' );
     47        /**
     48         * Convert memory value from ini file to a readable form
     49         *
     50         * @since v.1.0
     51         *
     52         * @return integer
     53         */
     54        function wppb_return_bytes($val)
     55        {
     56            $val = trim($val);
    6457
    65 /* include notices class */
    66 if ( file_exists ( WPPB_PLUGIN_DIR.'/assets/lib/class_notices.php' ) )
    67     include_once(WPPB_PLUGIN_DIR . '/assets/lib/class_notices.php' );
     58            switch (strtolower($val[strlen($val) - 1])) {
     59                // The 'G' modifier is available since PHP 5.1.0
     60                case 'g':
     61                    $val *= 1024;
     62                case 'm':
     63                    $val *= 1024;
     64                case 'k':
     65                    $val *= 1024;
     66            }
    6867
    69 if ( file_exists ( WPPB_PLUGIN_DIR.'/modules/modules.php' ) )
    70     define( 'PROFILE_BUILDER', 'Profile Builder Pro' );
    71 elseif ( file_exists ( WPPB_PLUGIN_DIR.'/front-end/extra-fields/extra-fields.php' ) )
    72     define( 'PROFILE_BUILDER', 'Profile Builder Hobbyist' );
    73 else
    74     define( 'PROFILE_BUILDER', 'Profile Builder Free' );
     68            return $val;
     69        }
    7570
    76 /**
    77  * Initialize the translation for the Plugin.
    78  *
    79  * @since v.1.0
    80  *
    81  * @return null
    82  */
    83 function wppb_init_translation(){
    84     load_plugin_textdomain( 'profilebuilder', false, basename( dirname( __FILE__ ) ) . '/translation/' );
    85 }
    86 add_action( 'init', 'wppb_init_translation', 8);
     71        /**
     72         * Definitions
     73         *
     74         *
     75         */
     76        define('PROFILE_BUILDER_VERSION', '2.0.6' );
     77        define('WPPB_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname(plugin_basename(__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'))));
     80        define('WPPB_SERVER_MAX_UPLOAD_SIZE_MEGA', apply_filters('wppb_server_max_upload_size_mega_constant', ini_get('upload_max_filesize')));
     81        define('WPPB_SERVER_MAX_POST_SIZE_BYTE', apply_filters('wppb_server_max_post_size_byte_constant', wppb_return_bytes(ini_get('post_max_size'))));
     82        define('WPPB_SERVER_MAX_POST_SIZE_MEGA', apply_filters('wppb_server_max_post_size_mega_constant', ini_get('post_max_size')));
     83        define('WPPB_TRANSLATE_DIR', WPPB_PLUGIN_DIR . '/translation');
     84        define('WPPB_TRANSLATE_DOMAIN', 'profilebuilder');
     85
     86        /* include notices class */
     87        if (file_exists(WPPB_PLUGIN_DIR . '/assets/lib/class_notices.php'))
     88            include_once(WPPB_PLUGIN_DIR . '/assets/lib/class_notices.php');
     89
     90        if (file_exists(WPPB_PLUGIN_DIR . '/modules/modules.php'))
     91            define('PROFILE_BUILDER', 'Profile Builder Pro');
     92        elseif (file_exists(WPPB_PLUGIN_DIR . '/front-end/extra-fields/extra-fields.php'))
     93            define('PROFILE_BUILDER', 'Profile Builder Hobbyist');
     94        else
     95            define('PROFILE_BUILDER', 'Profile Builder Free');
     96
     97        /**
     98         * Initialize the translation for the Plugin.
     99         *
     100         * @since v.1.0
     101         *
     102         * @return null
     103         */
     104        function wppb_init_translation()
     105        {
     106            load_plugin_textdomain('profilebuilder', false, basename(dirname(__FILE__)) . '/translation/');
     107        }
     108
     109        add_action('init', 'wppb_init_translation', 8);
    87110
    88111
    89 /**
    90  * Required files
    91  *
    92  *
    93  */
    94 include_once( WPPB_PLUGIN_DIR.'/assets/lib/wck-api/wordpress-creation-kit.php' );
    95 include_once( WPPB_PLUGIN_DIR.'/features/upgrades/upgrades.php' );
    96 include_once( WPPB_PLUGIN_DIR.'/features/functions.php' );
    97 include_once( WPPB_PLUGIN_DIR.'/admin/admin-functions.php' );
    98 include_once( WPPB_PLUGIN_DIR.'/admin/basic-info.php' );
    99 include_once( WPPB_PLUGIN_DIR.'/admin/general-settings.php' );
    100 include_once( WPPB_PLUGIN_DIR.'/admin/admin-bar.php' );
    101 include_once( WPPB_PLUGIN_DIR.'/admin/manage-fields.php' );
    102 include_once( WPPB_PLUGIN_DIR.'/features/email-confirmation/email-confirmation.php' );
    103 include_once( WPPB_PLUGIN_DIR.'/features/email-confirmation/class-email-confirmation.php' );
    104 if ( file_exists ( WPPB_PLUGIN_DIR.'/features/admin-approval/admin-approval.php' ) ) {
    105     include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/admin-approval.php');
    106     include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/class-admin-approval.php');
    107 }
    108 include_once( WPPB_PLUGIN_DIR.'/features/login-widget/login-widget.php' );
     112        /**
     113         * Required files
     114         *
     115         *
     116         */
     117        include_once(WPPB_PLUGIN_DIR . '/assets/lib/wck-api/wordpress-creation-kit.php');
     118        include_once(WPPB_PLUGIN_DIR . '/features/upgrades/upgrades.php');
     119        include_once(WPPB_PLUGIN_DIR . '/features/functions.php');
     120        include_once(WPPB_PLUGIN_DIR . '/admin/admin-functions.php');
     121        include_once(WPPB_PLUGIN_DIR . '/admin/basic-info.php');
     122        include_once(WPPB_PLUGIN_DIR . '/admin/general-settings.php');
     123        include_once(WPPB_PLUGIN_DIR . '/admin/admin-bar.php');
     124        include_once(WPPB_PLUGIN_DIR . '/admin/manage-fields.php');
     125        include_once(WPPB_PLUGIN_DIR . '/features/email-confirmation/email-confirmation.php');
     126        include_once(WPPB_PLUGIN_DIR . '/features/email-confirmation/class-email-confirmation.php');
     127        if (file_exists(WPPB_PLUGIN_DIR . '/features/admin-approval/admin-approval.php')) {
     128            include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/admin-approval.php');
     129            include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/class-admin-approval.php');
     130        }
     131        include_once(WPPB_PLUGIN_DIR . '/features/login-widget/login-widget.php');
    109132
    110 if ( file_exists ( WPPB_PLUGIN_DIR.'/update/update-checker.php' ) ){
    111     include_once ( WPPB_PLUGIN_DIR.'/update/update-checker.php' );
    112     include_once ( WPPB_PLUGIN_DIR.'/admin/register-version.php' );
    113 }
     133        if (file_exists(WPPB_PLUGIN_DIR . '/update/update-checker.php')) {
     134            include_once(WPPB_PLUGIN_DIR . '/update/update-checker.php');
     135            include_once(WPPB_PLUGIN_DIR . '/admin/register-version.php');
     136        }
    114137
    115 if ( file_exists ( WPPB_PLUGIN_DIR.'/modules/modules.php' ) ){
    116     include_once ( WPPB_PLUGIN_DIR.'/modules/modules.php' );
    117     include_once ( WPPB_PLUGIN_DIR.'/modules/custom-redirects/custom-redirects.php' );
    118     include_once ( WPPB_PLUGIN_DIR.'/modules/email-customizer/email-customizer.php' );
    119     include_once ( WPPB_PLUGIN_DIR.'/modules/multiple-forms/multiple-forms.php' );
    120    
    121     $wppb_module_settings = get_option( 'wppb_module_settings' );
    122     if ( isset( $wppb_module_settings['wppb_userListing'] ) && ( $wppb_module_settings['wppb_userListing'] == 'show' ) ){
    123         include_once ( WPPB_PLUGIN_DIR.'/modules/user-listing/userlisting.php' );
    124         add_shortcode( 'wppb-list-users', 'wppb_user_listing_shortcode' );
    125     }else
    126         add_shortcode( 'wppb-list-users', 'wppb_list_all_users_display_error' );
    127    
    128     if ( isset( $wppb_module_settings['wppb_emailCustomizerAdmin'] ) && ( $wppb_module_settings['wppb_emailCustomizerAdmin'] == 'show' ) )
    129         include_once ( WPPB_PLUGIN_DIR.'/modules/email-customizer/admin-email-customizer.php' );
    130        
    131     if ( isset( $wppb_module_settings['wppb_emailCustomizer'] ) && ( $wppb_module_settings['wppb_emailCustomizer'] == 'show' ) )
    132         include_once ( WPPB_PLUGIN_DIR.'/modules/email-customizer/user-email-customizer.php' );
    133 }
     138        if (file_exists(WPPB_PLUGIN_DIR . '/modules/modules.php')) {
     139            include_once(WPPB_PLUGIN_DIR . '/modules/modules.php');
     140            include_once(WPPB_PLUGIN_DIR . '/modules/custom-redirects/custom-redirects.php');
     141            include_once(WPPB_PLUGIN_DIR . '/modules/email-customizer/email-customizer.php');
     142            include_once(WPPB_PLUGIN_DIR . '/modules/multiple-forms/multiple-forms.php');
     143
     144            $wppb_module_settings = get_option('wppb_module_settings');
     145            if (isset($wppb_module_settings['wppb_userListing']) && ($wppb_module_settings['wppb_userListing'] == 'show')) {
     146                include_once(WPPB_PLUGIN_DIR . '/modules/user-listing/userlisting.php');
     147                add_shortcode('wppb-list-users', 'wppb_user_listing_shortcode');
     148            } else
     149                add_shortcode('wppb-list-users', 'wppb_list_all_users_display_error');
     150
     151            if (isset($wppb_module_settings['wppb_emailCustomizerAdmin']) && ($wppb_module_settings['wppb_emailCustomizerAdmin'] == 'show'))
     152                include_once(WPPB_PLUGIN_DIR . '/modules/email-customizer/admin-email-customizer.php');
     153
     154            if (isset($wppb_module_settings['wppb_emailCustomizer']) && ($wppb_module_settings['wppb_emailCustomizer'] == 'show'))
     155                include_once(WPPB_PLUGIN_DIR . '/modules/email-customizer/user-email-customizer.php');
     156        }
    134157
    135158
    136 /**
    137  * Check for updates
    138  *
    139  *
    140  */
    141 if ( file_exists ( WPPB_PLUGIN_DIR.'/update/update-checker.php' ) ){   
    142     if ( file_exists ( WPPB_PLUGIN_DIR.'/modules/modules.php' ) ){
    143         $localSerial = get_option( 'wppb_profile_builder_pro_serial' );
    144         $wppb_update = new wppb_PluginUpdateChecker( 'http://updatemetadata.cozmoslabs.com/?localSerialNumber='.$localSerial.'&uniqueproduct=CLPBP', __FILE__, 'profile-builder-pro-update' );
    145    
    146     }else{
    147         $localSerial = get_option( 'wppb_profile_builder_hobbyist_serial' );
    148         $wppb_update = new wppb_PluginUpdateChecker( 'http://updatemetadata.cozmoslabs.com/?localSerialNumber='.$localSerial.'&uniqueproduct=CLPBH', __FILE__, 'profile-builder-hobbyist-update' );
    149     }
    150 }
     159        /**
     160         * Check for updates
     161         *
     162         *
     163         */
     164        if (file_exists(WPPB_PLUGIN_DIR . '/update/update-checker.php')) {
     165            if (file_exists(WPPB_PLUGIN_DIR . '/modules/modules.php')) {
     166                $localSerial = get_option('wppb_profile_builder_pro_serial');
     167                $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBP', __FILE__, 'profile-builder-pro-update');
     168
     169            } else {
     170                $localSerial = get_option('wppb_profile_builder_hobbyist_serial');
     171                $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBH', __FILE__, 'profile-builder-hobbyist-update');
     172            }
     173        }
    151174
    152175
    153176// these settings are important, so besides running them on page load, we also need to do a check on plugin activation
    154 register_activation_hook( __FILE__, 'wppb_generate_default_settings_defaults' );    //prepoulate general settings
    155 register_activation_hook( __FILE__, 'wppb_prepopulate_fields' );                    //prepopulate manage fields list
     177        register_activation_hook(__FILE__, 'wppb_generate_default_settings_defaults');    //prepoulate general settings
     178        register_activation_hook(__FILE__, 'wppb_prepopulate_fields');                    //prepopulate manage fields list
    156179
     180    }
     181} //end wppb_plugin_init
     182add_action( 'plugins_loaded', 'wppb_plugin_init' );
  • profile-builder/tags/2.0.6/readme.txt

    r1020987 r1027324  
    33Contributors: reflectionmedia, barinagabriel, sareiodata, cozmoslabs, adispiac, madalin.ungureanu
    44Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
    5 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, 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
     5Tags: 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
    66
    77Requires at least: 3.1
    88Tested up to: 4.0
    9 Stable tag: 2.0.5
     9Stable tag: 2.0.6
    1010
    1111Simple to use profile plugin allowing front-end login, user registration and edit profile by using shortcodes.
     
    2020
    2121To achieve this, simply create a new page and give it an intuitive name(i.e. Edit Profile).
    22 Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
     22Now all you need to do is add the following shortcode: [wppb-edit-profile].
    2323Publish the page and you are done!
    2424
     
    3737* allow users to **Log-in with their Username or Email**
    3838* enforce a **minimum password length** and **minimum password strength** (using the default WordPress password strength meter)
    39 * assign users a specific role at registration (using [wppb-register role="desired_role"] shortcode )
     39* assign users a specific role at registration (using **[wppb-register role="desired_role"]** shortcode argument)
     40* redirect users after login (using **[wppb-login redirect="www.example.com"]** shortcode argument)
     41* add register and lost password links below the login form (using **[wppb-login register_url="www.example.com" lostpassword_url="www.example.com"]** shortcode arguments)
     42* customizable login widget
    4043* add a custom stylesheet/inherit values from the current theme or use the default one built into this plugin.
    4144* chose which user roles view the admin bar in the front-end of the website (Admin Bar Settings page).
     
    4447**PROFILE BUILDER PRO**
    4548
    46 The [Pro version](http://www.cozmoslabs.com/wordpress-profile-builder/) has the following extra features:
     49The [Pro version](http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wp.org&utm_medium=plugin-description-page&utm_campaign=PBFree) has the following extra features:
    4750
    4851* Create Extra User Fields (Heading, Input, Hidden-Input, Checkbox, Agree to Terms Checkbox, Radio Buttons, DatePicker, Textareas, reCAPTCHA, Upload fields, Selects, Country Selects, Timezone selects, Avatar Upload)
     
    6063* 1 Year of Updates / Priority Support
    6164
    62 [Click here to find out more](http://www.cozmoslabs.com/wordpress-profile-builder/) or watch the video below:
    63 
    64 [youtube http://www.youtube.com/watch?v=Uv8piGapOoA]
     65[Find out more about Profile Builder PRO](http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wp.org&utm_medium=plugin-description-page&utm_campaign=PBFree)
    6566
    6667NOTE:
     
    1011028. Edit User Profile Page
    1021039. Recover Password Page
     10410. Profile Builder Login Widget
    103105
    104106== Changelog ==
     107= 2.0.6 =
     108* Fixed a bug with checkbox field that didn't pass the required if the value of the checkbox contained spaces
     109* When email confirmation is enabled we no longer can send the selected password via email because we now store the hased password inside wp-signups table and not a encoded version of it. This was done to improve security
     110* Fixed problem that was causing "Insert into post" image button not to work
     111* Fixed Fatal error when having both Free and Premium versions activated.
     112* Removing the meta name for extra fields is no longer possible
     113* Added translation files
     114
     115
    105116= 2.0.5 =
    106117* Added notification to enable user registration via Profile Builder (Anyone can register checkbox).
  • profile-builder/tags/2.0.6/translation/profilebuilder.pot

    r1020987 r1027324  
    22msgstr ""
    33"Project-Id-Version: profilebuilder\n"
    4 "POT-Creation-Date: 2014-10-30 16:33+0200\n"
    5 "PO-Revision-Date: 2014-10-30 16:34+0200\n"
     4"POT-Creation-Date: 2014-11-17 15:27+0200\n"
     5"PO-Revision-Date: 2014-11-17 15:28+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: Cozmoslabs\n"
     
    1414"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    1515"X-Poedit-KeywordsList: __;_e;_x;_n\n"
     16"X-Poedit-SourceCharset: UTF-8\n"
    1617"X-Poedit-SearchPath-0: ..\n"
    1718
     
    125126msgstr ""
    126127
    127 #: ../admin/basic-info.php:36 ../features/login-widget/login-widget.php:75
     128#: ../admin/basic-info.php:36 ../features/login-widget/login-widget.php:59
    128129msgid "Login"
    129130msgstr ""
     
    384385#: ../modules/multiple-forms/register-forms.php:229
    385386#: ../modules/multiple-forms/register-forms.php:230
    386 #: ../modules/user-listing/userlisting.php:1150
     387#: ../modules/user-listing/userlisting.php:1157
    387388msgid "Yes"
    388389msgstr ""
     
    471472#: ../modules/user-listing/userlisting.php:94
    472473#: ../modules/user-listing/userlisting.php:516
    473 #: ../modules/user-listing/userlisting.php:1107
     474#: ../modules/user-listing/userlisting.php:1114
    474475msgid "Username"
    475476msgstr ""
    476477
    477 #: ../admin/general-settings.php:145 ../front-end/login.php:134
     478#: ../admin/general-settings.php:145 ../front-end/login.php:144
    478479#: ../modules/email-customizer/email-customizer.php:29
    479480#: ../modules/user-listing/userlisting.php:522
    480 #: ../modules/user-listing/userlisting.php:1108
     481#: ../modules/user-listing/userlisting.php:1115
    481482msgid "Email"
    482483msgstr ""
     
    738739msgstr ""
    739740
    740 #: ../admin/manage-fields.php:136
     741#: ../admin/manage-fields.php:136 ../modules/user-listing/userlisting.php:555
    741742msgid "Nickname"
    742743msgstr ""
     
    761762#: ../modules/user-listing/userlisting.php:103
    762763#: ../modules/user-listing/userlisting.php:537
    763 #: ../modules/user-listing/userlisting.php:1109
     764#: ../modules/user-listing/userlisting.php:1116
    764765msgid "Website"
    765766msgstr ""
     
    783784#: ../admin/manage-fields.php:150 ../modules/user-listing/userlisting.php:106
    784785#: ../modules/user-listing/userlisting.php:540
    785 #: ../modules/user-listing/userlisting.php:1110
     786#: ../modules/user-listing/userlisting.php:1117
    786787msgid "Biographical Info"
    787788msgstr ""
     
    810811msgstr ""
    811812
    812 #: ../admin/manage-fields.php:279 ../admin/manage-fields.php:406
     813#: ../admin/manage-fields.php:308 ../admin/manage-fields.php:444
    813814msgid "You must select a field\n"
    814815msgstr ""
    815816
    816 #: ../admin/manage-fields.php:289
     817#: ../admin/manage-fields.php:318
    817818msgid ""
    818819"Please choose a different field type as this one already exists in your form "
     
    820821msgstr ""
    821822
    822 #: ../admin/manage-fields.php:300
     823#: ../admin/manage-fields.php:329
    823824msgid "The entered avatar size is not between 20 and 200\n"
    824825msgstr ""
    825826
    826 #: ../admin/manage-fields.php:303
     827#: ../admin/manage-fields.php:332
    827828msgid "The entered avatar size is not numerical\n"
    828829msgstr ""
    829830
    830 #: ../admin/manage-fields.php:311
     831#: ../admin/manage-fields.php:340
    831832msgid "The entered row number is not numerical\n"
    832833msgstr ""
    833834
    834 #: ../admin/manage-fields.php:314
     835#: ../admin/manage-fields.php:343
    835836msgid "You must enter a value for the row number\n"
    836837msgstr ""
    837838
    838 #: ../admin/manage-fields.php:322
     839#: ../admin/manage-fields.php:351
    839840msgid "You must enter the public key\n"
    840841msgstr ""
    841842
    842 #: ../admin/manage-fields.php:324
     843#: ../admin/manage-fields.php:353
    843844msgid "You must enter the private key\n"
    844845msgstr ""
    845846
    846 #: ../admin/manage-fields.php:332
     847#: ../admin/manage-fields.php:361
    847848msgid "The entered value for the Datepicker is not a valid date-format\n"
    848849msgstr ""
    849850
    850 #: ../admin/manage-fields.php:335
     851#: ../admin/manage-fields.php:364
    851852msgid "You must enter a value for the date-format\n"
    852853msgstr ""
    853854
    854 #: ../admin/manage-fields.php:356 ../admin/manage-fields.php:364
    855 #: ../admin/manage-fields.php:374
     855#: ../admin/manage-fields.php:380
     856msgid "The meta-name cannot be empty\n"
     857msgstr ""
     858
     859#: ../admin/manage-fields.php:392 ../admin/manage-fields.php:400
     860#: ../admin/manage-fields.php:410
    856861msgid "That meta-name is already in use\n"
    857862msgstr ""
    858863
    859 #: ../admin/manage-fields.php:396
     864#: ../admin/manage-fields.php:432
    860865#, php-format
    861866msgid ""
     
    864869msgstr ""
    865870
    866 #: ../admin/manage-fields.php:400
     871#: ../admin/manage-fields.php:436
    867872#, php-format
    868873msgid ""
     
    870875msgstr ""
    871876
    872 #: ../admin/manage-fields.php:413
     877#: ../admin/manage-fields.php:451
    873878msgid "That field is already added in this form\n"
    874879msgstr ""
    875880
    876 #: ../admin/manage-fields.php:462
     881#: ../admin/manage-fields.php:500
    877882msgid ""
    878883"<pre>Title</pre><pre>Type</pre><pre>Meta Name</pre><pre class=\"wppb-mb-head-"
     
    880885msgstr ""
    881886
    882 #: ../admin/manage-fields.php:462
    883 #: ../assets/lib/wck-api/wordpress-creation-kit.php:416
     887#: ../admin/manage-fields.php:500
     888#: ../assets/lib/wck-api/wordpress-creation-kit.php:415
     889#: ../assets/lib/wck-api/wordpress-creation-kit.php:501
     890#: ../features/functions.php:590 ../features/functions.php:597
     891#: ../modules/multiple-forms/multiple-forms.php:407
     892msgid "Edit"
     893msgstr ""
     894
     895#: ../admin/manage-fields.php:500
     896#: ../assets/lib/wck-api/wordpress-creation-kit.php:415
    884897#: ../assets/lib/wck-api/wordpress-creation-kit.php:502
    885 #: ../features/functions.php:590 ../features/functions.php:597
    886 #: ../modules/multiple-forms/edit-profile-forms.php:267
    887 msgid "Edit"
    888 msgstr ""
    889 
    890 #: ../admin/manage-fields.php:462
    891 #: ../assets/lib/wck-api/wordpress-creation-kit.php:416
    892 #: ../assets/lib/wck-api/wordpress-creation-kit.php:503
    893898#: ../features/admin-approval/class-admin-approval.php:124
    894899#: ../features/admin-approval/class-admin-approval.php:235
     
    896901#: ../features/email-confirmation/class-email-confirmation.php:202
    897902#: ../features/functions.php:583 ../features/functions.php:597
    898 #: ../modules/multiple-forms/edit-profile-forms.php:267
    899903msgid "Delete"
    900904msgstr ""
    901905
    902 #: ../admin/manage-fields.php:477
     906#: ../admin/manage-fields.php:515
    903907msgid "Use these shortcodes on the pages you want the forms to be displayed:"
    904908msgstr ""
    905909
    906 #: ../admin/manage-fields.php:483
     910#: ../admin/manage-fields.php:521
    907911msgid ""
    908912"If you're interested in displaying different fields in the registration and "
     
    958962msgstr ""
    959963
    960 #: ../admin/register-version.php:216
     964#: ../admin/register-version.php:219
    961965#, php-format
    962966msgid ""
    963967"<p>Your <strong>Profile Builder</strong> serial number is invalid or "
    964 "missing. <br/>Please %1$sregister your copy%2$s of Profile Builder to "
    965 "receive access to automatic updates and support. Need a license key? "
    966 "%3$sPurchase one now%4$s</p>"
    967 msgstr ""
    968 
    969 #: ../admin/register-version.php:219
    970 #, php-format
    971 msgid ""
    972 "<p>Your <strong>Profile Builder</strong> licence has expired. <br/>Please "
    973 "%1$sRenew Your Licence%2$s to receive access to automatic updates and "
    974 "support. %3$sPurchase one now%4$s %5$sDismiss%6$s</p>"
    975 msgstr ""
    976 
    977 #: ../admin/register-version.php:224
    978 #, php-format
    979 msgid ""
    980 "<p>Your <strong>Profile Builder</strong> serial number is about to expire on "
    981 "%5$s. <br/>Please %1$sRenew Your Licence%2$s to receive access to automatic "
    982 "updates and support. %3$sPurchase one now%4$s</p>"
     968"missing. <br/>Please %1$sregister your copy%2$s to receive access to "
     969"automatic updates and support. Need a license key? %3$sPurchase one now%4$s</"
     970"p>"
     971msgstr ""
     972
     973#: ../admin/register-version.php:222
     974#, php-format
     975msgid ""
     976"<p>Your <strong>Profile Builder</strong> license has expired. <br/>Please "
     977"%1$sRenew Your Licence%2$s to continue receiving access to product "
     978"downloads, automatic updates and support. %3$sRenew now and get 50&#37; off "
     979"%4$s %5$sDismiss%6$s</p>"
     980msgstr ""
     981
     982#: ../admin/register-version.php:227
     983#, php-format
     984msgid ""
     985"<p>Your <strong>Profile Builder</strong> license is about to expire on %5$s. "
     986"<br/>Please %1$sRenew Your Licence%2$s to continue receiving access to "
     987"product downloads, automatic updates and support. %3$sRenew now and get "
     988"50&#37; off %4$s %6$sDismiss%7$s</p>"
    983989msgstr ""
    984990
     
    10041010msgstr ""
    10051011
    1006 #: ../assets/lib/wck-api/wordpress-creation-kit.php:416
     1012#: ../assets/lib/wck-api/wordpress-creation-kit.php:415
    10071013#: ../features/functions.php:597
    10081014msgid "Content"
    10091015msgstr ""
    10101016
     1017#: ../assets/lib/wck-api/wordpress-creation-kit.php:501
     1018msgid "Edit this item"
     1019msgstr ""
     1020
    10111021#: ../assets/lib/wck-api/wordpress-creation-kit.php:502
    1012 msgid "Edit this item"
    1013 msgstr ""
    1014 
    1015 #: ../assets/lib/wck-api/wordpress-creation-kit.php:503
    10161022msgid "Delete this item"
    10171023msgstr ""
    10181024
    1019 #: ../assets/lib/wck-api/wordpress-creation-kit.php:644
     1025#: ../assets/lib/wck-api/wordpress-creation-kit.php:643
    10201026msgid "Please enter a value for the required field "
    10211027msgstr ""
    10221028
    1023 #: ../assets/lib/wck-api/wordpress-creation-kit.php:1009
     1029#: ../assets/lib/wck-api/wordpress-creation-kit.php:1010
    10241030msgid "Select File"
    10251031msgstr ""
     
    11511157#: ../features/admin-approval/class-admin-approval.php:178
    11521158#: ../modules/user-listing/userlisting.php:528
    1153 #: ../modules/user-listing/userlisting.php:1112
     1159#: ../modules/user-listing/userlisting.php:1119
    11541160msgid "Firstname"
    11551161msgstr ""
     
    11571163#: ../features/admin-approval/class-admin-approval.php:179
    11581164#: ../modules/user-listing/userlisting.php:531
    1159 #: ../modules/user-listing/userlisting.php:1113
     1165#: ../modules/user-listing/userlisting.php:1120
    11601166msgid "Lastname"
    11611167msgstr ""
     
    13231329msgstr ""
    13241330
    1325 #: ../features/email-confirmation/email-confirmation.php:387
    1326 #: ../front-end/register.php:67
     1331#: ../features/email-confirmation/email-confirmation.php:388
     1332#: ../front-end/register.php:68
    13271333msgid "Could not create user!"
    13281334msgstr ""
    13291335
    1330 #: ../features/email-confirmation/email-confirmation.php:390
     1336#: ../features/email-confirmation/email-confirmation.php:391
    13311337msgid "That username is already activated!"
    13321338msgstr ""
    13331339
    1334 #: ../features/email-confirmation/email-confirmation.php:410
     1340#: ../features/email-confirmation/email-confirmation.php:420
    13351341msgid "There was an error while trying to activate the user"
    13361342msgstr ""
    13371343
    1338 #: ../features/email-confirmation/email-confirmation.php:448
     1344#: ../features/email-confirmation/email-confirmation.php:458
    13391345#: ../modules/email-customizer/admin-email-customizer.php:73
    13401346msgid "A new subscriber has (been) registered!"
    13411347msgstr ""
    13421348
    1343 #: ../features/email-confirmation/email-confirmation.php:451
     1349#: ../features/email-confirmation/email-confirmation.php:461
    13441350#, php-format
    13451351msgid "New subscriber on %1$s.<br/><br/>Username:%2$s<br/>E-mail:%3$s<br/>"
    13461352msgstr ""
    13471353
    1348 #: ../features/email-confirmation/email-confirmation.php:456
     1354#: ../features/email-confirmation/email-confirmation.php:466
    13491355msgid ""
    13501356"The \"Admin Approval\" feature was activated at the time of registration, so "
     
    13521358msgstr ""
    13531359
    1354 #: ../features/email-confirmation/email-confirmation.php:471
     1360#: ../features/email-confirmation/email-confirmation.php:481
    13551361#, php-format
    13561362msgid "[%1$s] Your new account information"
    13571363msgstr ""
    13581364
    1359 #: ../features/email-confirmation/email-confirmation.php:474
     1365#: ../features/email-confirmation/email-confirmation.php:484
    13601366#, php-format
    13611367msgid "Welcome to %1$s!<br/><br/><br/>Your username is:%2$s and password:%3$s"
    13621368msgstr ""
    13631369
    1364 #: ../features/email-confirmation/email-confirmation.php:479
    1365 #: ../front-end/register.php:93
     1370#: ../features/email-confirmation/email-confirmation.php:489
     1371#: ../front-end/register.php:103
    13661372msgid ""
    13671373"Before you can access your account, an administrator needs to approve it. "
     
    13931399msgstr ""
    13941400
     1401#: ../features/functions.php:556
     1402msgid "This field is required"
     1403msgstr ""
     1404
    13951405#: ../features/functions.php:576
    13961406msgid "Cancel"
    13971407msgstr ""
    13981408
     1409#: ../features/functions.php:607
     1410#, php-format
     1411msgid ""
     1412"To allow users to register for your website via Profile Builder, you first "
     1413"must enable user registration. Go to %1$sSettings -> General%2$s tab, and "
     1414"under Membership make sure to check “Anyone can register”. %3$sDismiss%4$s"
     1415msgstr ""
     1416
    13991417#: ../features/login-widget/login-widget.php:10
    14001418msgid "This login widget lets you add a login form in the sidebar."
     
    14051423msgstr ""
    14061424
    1407 #: ../features/login-widget/login-widget.php:40
    1408 #: ../front-end/class-formbuilder.php:274
    1409 msgid "Register"
    1410 msgstr ""
    1411 
    1412 #: ../features/login-widget/login-widget.php:41
    1413 msgid "Don't have an account?"
    1414 msgstr ""
    1415 
    1416 #: ../features/login-widget/login-widget.php:46
    1417 msgid "Lost Password"
    1418 msgstr ""
    1419 
    1420 #: ../features/login-widget/login-widget.php:46
    1421 msgid "Lost Your Password?"
    1422 msgstr ""
    1423 
    1424 #: ../features/login-widget/login-widget.php:79
     1425#: ../features/login-widget/login-widget.php:63
    14251426msgid "Title:"
    14261427msgstr ""
    14271428
    1428 #: ../features/login-widget/login-widget.php:84
     1429#: ../features/login-widget/login-widget.php:68
    14291430msgid "After login redirect URL (optional):"
    14301431msgstr ""
    14311432
    1432 #: ../features/login-widget/login-widget.php:89
     1433#: ../features/login-widget/login-widget.php:73
    14331434msgid "Register page URL (optional):"
    14341435msgstr ""
    14351436
    1436 #: ../features/login-widget/login-widget.php:94
     1437#: ../features/login-widget/login-widget.php:78
    14371438msgid "Password Recovery page URL (optional):"
    14381439msgstr ""
     
    15151516#: ../front-end/class-formbuilder.php:274
    15161517msgid "Add User"
     1518msgstr ""
     1519
     1520#: ../front-end/class-formbuilder.php:274 ../front-end/login.php:172
     1521msgid "Register"
    15171522msgstr ""
    15181523
     
    16891694msgstr ""
    16901695
    1691 #: ../front-end/extra-fields/extra-fields.php:94 ../front-end/login.php:63
    1692 #: ../front-end/login.php:70 ../front-end/login.php:80
     1696#: ../front-end/extra-fields/extra-fields.php:94 ../front-end/login.php:72
     1697#: ../front-end/login.php:79 ../front-end/login.php:89
    16931698#: ../front-end/recover.php:17 ../front-end/recover.php:206
    16941699msgid "ERROR"
     
    17781783msgstr ""
    17791784
    1780 #: ../front-end/login.php:63
     1785#: ../front-end/login.php:72
    17811786msgid "The password you entered is incorrect."
    17821787msgstr ""
    17831788
    1784 #: ../front-end/login.php:64 ../front-end/login.php:71
     1789#: ../front-end/login.php:73 ../front-end/login.php:80
    17851790msgid "Password Lost and Found."
    17861791msgstr ""
    17871792
    1788 #: ../front-end/login.php:64 ../front-end/login.php:71
     1793#: ../front-end/login.php:73 ../front-end/login.php:80
    17891794msgid "Lost your password"
    17901795msgstr ""
    17911796
    1792 #: ../front-end/login.php:70
     1797#: ../front-end/login.php:79
    17931798msgid "Invalid username."
    17941799msgstr ""
    17951800
    1796 #: ../front-end/login.php:75
     1801#: ../front-end/login.php:84
    17971802msgid "username"
    17981803msgstr ""
    17991804
    1800 #: ../front-end/login.php:75
     1805#: ../front-end/login.php:84
    18011806msgid "email"
    18021807msgstr ""
    18031808
    1804 #: ../front-end/login.php:80
     1809#: ../front-end/login.php:89
    18051810msgid "Both fields are empty."
    18061811msgstr ""
    18071812
    1808 #: ../front-end/login.php:173
     1813#: ../front-end/login.php:178
     1814msgid "Lost your password?"
     1815msgstr ""
     1816
     1817#: ../front-end/login.php:199
    18091818#, php-format
    18101819msgid "You are currently logged in as %1$s. %2$s"
    18111820msgstr ""
    18121821
    1813 #: ../front-end/login.php:173
     1822#: ../front-end/login.php:199
    18141823msgid "Log out of this account"
    18151824msgstr ""
    18161825
    1817 #: ../front-end/login.php:173
     1826#: ../front-end/login.php:199
    18181827msgid "Log out"
    18191828msgstr ""
     
    19241933msgstr ""
    19251934
    1926 #: ../front-end/register.php:70
     1935#: ../front-end/register.php:71
    19271936msgid "This username is already activated!"
    19281937msgstr ""
    19291938
    1930 #: ../front-end/register.php:92
     1939#: ../front-end/register.php:102
    19311940msgid "Your email was successfully confirmed."
    19321941msgstr ""
    19331942
    1934 #: ../front-end/register.php:102
     1943#: ../front-end/register.php:112
    19351944msgid "There was an error while trying to activate the user."
    19361945msgstr ""
    19371946
    1938 #: ../index.php:159
    1939 #, php-format
    1940 msgid ""
    1941 "<p style=\"position:relative;\">Halloween treat: 30&#37; OFF on all Profile "
    1942 "Builder purchases 29 - 30 -31 October over at %1$swww.cozmslabs.com%2$s Get "
    1943 "your discount code! %3$sDismiss%4$s</p>"
    1944 msgstr ""
    1945 
    1946 #: ../modules/class-mustache-templates/class-mustache-templates.php:239
     1947#: ../index.php:34
     1948msgid ""
     1949" is also activated. You need to deactivate it before activating this version "
     1950"of the plugin."
     1951msgstr ""
     1952
     1953#: ../modules/class-mustache-templates/class-mustache-templates.php:242
    19471954msgid "Save"
    19481955msgstr ""
     
    20492056
    20502057#: ../modules/email-customizer/admin-email-customizer.php:38
    2051 #: ../modules/email-customizer/user-email-customizer.php:38
    20522058msgid ""
    20532059"These settings are also replicated in the \"User Email Customizer\" settings-"
    20542060"page upon save."
     2061msgstr ""
     2062
     2063#: ../modules/email-customizer/admin-email-customizer.php:38
     2064#: ../modules/email-customizer/user-email-customizer.php:38
     2065msgid "Valid tags {{reply_to}} and {{site_name}}"
    20552066msgstr ""
    20562067
     
    20632074#: ../modules/email-customizer/user-email-customizer.php:49
    20642075msgid "From (reply-to email)"
     2076msgstr ""
     2077
     2078#: ../modules/email-customizer/admin-email-customizer.php:54
     2079#: ../modules/email-customizer/user-email-customizer.php:54
     2080msgid ""
     2081"Must be a valid email address or the tag {{reply_to}} which defaults to the "
     2082"administrator email"
    20652083msgstr ""
    20662084
     
    21452163msgstr ""
    21462164
     2165#: ../modules/email-customizer/email-customizer.php:265
     2166#: ../modules/email-customizer/email-customizer.php:272
     2167msgid "Your selected password at signup"
     2168msgstr ""
     2169
    21472170#: ../modules/email-customizer/user-email-customizer.php:11
    21482171#: ../modules/email-customizer/user-email-customizer.php:12
    21492172#: ../modules/modules.php:125
    21502173msgid "User Email Customizer"
     2174msgstr ""
     2175
     2176#: ../modules/email-customizer/user-email-customizer.php:38
     2177msgid ""
     2178"These settings are also replicated in the \"Admin Email Customizer\" "
     2179"settings-page upon save."
    21512180msgstr ""
    21522181
     
    22872316#: ../modules/multiple-forms/edit-profile-forms.php:135
    22882317#: ../modules/multiple-forms/register-forms.php:138
    2289 #: ../modules/user-listing/userlisting.php:1022
     2318#: ../modules/user-listing/userlisting.php:1029
    22902319msgid "Shortcode"
    22912320msgstr ""
     
    22932322#: ../modules/multiple-forms/edit-profile-forms.php:155
    22942323#: ../modules/multiple-forms/register-forms.php:159
    2295 #: ../modules/user-listing/userlisting.php:1043
     2324#: ../modules/user-listing/userlisting.php:1050
    22962325msgid "(no title)"
    22972326msgstr ""
     
    22992328#: ../modules/multiple-forms/edit-profile-forms.php:175
    23002329#: ../modules/multiple-forms/register-forms.php:178
    2301 #: ../modules/user-listing/userlisting.php:1063
     2330#: ../modules/user-listing/userlisting.php:1070
    23022331msgid "The shortcode will be available after you publish this form."
    23032332msgstr ""
     
    23052334#: ../modules/multiple-forms/edit-profile-forms.php:177
    23062335#: ../modules/multiple-forms/register-forms.php:180
    2307 #: ../modules/user-listing/userlisting.php:1065
     2336#: ../modules/user-listing/userlisting.php:1072
    23082337msgid "Use this shortcode on the page you want the form to be displayed:"
    23092338msgstr ""
     
    23112340#: ../modules/multiple-forms/edit-profile-forms.php:181
    23122341#: ../modules/multiple-forms/register-forms.php:184
    2313 #: ../modules/user-listing/userlisting.php:1069
     2342#: ../modules/user-listing/userlisting.php:1076
    23142343msgid ""
    23152344"<span style=\"color:red;\">Note:</span> changing the form title also changes "
     
    23192348#: ../modules/multiple-forms/edit-profile-forms.php:187
    23202349#: ../modules/multiple-forms/register-forms.php:190
    2321 #: ../modules/user-listing/userlisting.php:1083
     2350#: ../modules/user-listing/userlisting.php:1090
    23222351msgid "Form Shortcode"
    23232352msgstr ""
     
    23582387msgstr ""
    23592388
    2360 #: ../modules/multiple-forms/edit-profile-forms.php:267
    2361 msgid "<pre>Title (Type)</pre>"
     2389#: ../modules/multiple-forms/edit-profile-forms.php:272
     2390msgid "This form is empty."
    23622391msgstr ""
    23632392
    23642393#: ../modules/multiple-forms/multiple-forms.php:233
    23652394msgid "You need to specify the title of the form before creating it"
     2395msgstr ""
     2396
     2397#: ../modules/multiple-forms/multiple-forms.php:407
     2398msgid "<pre>Title (Type)</pre>"
     2399msgstr ""
     2400
     2401#: ../modules/multiple-forms/multiple-forms.php:407
     2402msgid "Delete all items"
     2403msgstr ""
     2404
     2405#: ../modules/multiple-forms/multiple-forms.php:407
     2406msgid "Delete all"
    23662407msgstr ""
    23672408
     
    24442485msgstr ""
    24452486
    2446 #: ../modules/user-listing/class-userlisting.php:454
    2447 #: ../modules/user-listing/userlisting.php:621
    2448 #: ../modules/user-listing/userlisting.php:835
    2449 #: ../modules/user-listing/userlisting.php:878
    2450 #: ../modules/user-listing/userlisting.php:1202
     2487#: ../modules/user-listing/class-userlisting.php:458
     2488#: ../modules/user-listing/userlisting.php:624
     2489#: ../modules/user-listing/userlisting.php:842
     2490#: ../modules/user-listing/userlisting.php:885
     2491#: ../modules/user-listing/userlisting.php:1209
    24512492msgid "Search Users by All Fields"
    24522493msgstr ""
     
    24892530
    24902531#: ../modules/user-listing/userlisting.php:118
    2491 #: ../modules/user-listing/userlisting.php:1111
     2532#: ../modules/user-listing/userlisting.php:1118
    24922533msgid "Registration Date"
    24932534msgstr ""
    24942535
    24952536#: ../modules/user-listing/userlisting.php:119
    2496 #: ../modules/user-listing/userlisting.php:1115
     2537#: ../modules/user-listing/userlisting.php:1122
    24972538msgid "Number of Posts"
    24982539msgstr ""
     
    25602601
    25612602#: ../modules/user-listing/userlisting.php:534
    2562 #: ../modules/user-listing/userlisting.php:1114
     2603#: ../modules/user-listing/userlisting.php:1121
    25632604msgid "Display Name"
    25642605msgstr ""
     
    25692610
    25702611#: ../modules/user-listing/userlisting.php:546
    2571 #: ../modules/user-listing/userlisting.php:1119
     2612#: ../modules/user-listing/userlisting.php:1126
    25722613msgid "Aim"
    25732614msgstr ""
    25742615
    25752616#: ../modules/user-listing/userlisting.php:549
    2576 #: ../modules/user-listing/userlisting.php:1120
     2617#: ../modules/user-listing/userlisting.php:1127
    25772618msgid "Yim"
    25782619msgstr ""
    25792620
    25802621#: ../modules/user-listing/userlisting.php:552
    2581 #: ../modules/user-listing/userlisting.php:1121
     2622#: ../modules/user-listing/userlisting.php:1128
    25822623msgid "Jabber"
    25832624msgstr ""
    25842625
    2585 #: ../modules/user-listing/userlisting.php:698
     2626#: ../modules/user-listing/userlisting.php:701
    25862627msgid "Click here to see more information about this user"
    25872628msgstr ""
    25882629
    2589 #: ../modules/user-listing/userlisting.php:698
     2630#: ../modules/user-listing/userlisting.php:701
    25902631msgid "More..."
    25912632msgstr ""
    25922633
    2593 #: ../modules/user-listing/userlisting.php:701
     2634#: ../modules/user-listing/userlisting.php:704
    25942635msgid "Click here to see more information about this user."
    25952636msgstr ""
    25962637
    2597 #: ../modules/user-listing/userlisting.php:789
    2598 #: ../modules/user-listing/userlisting.php:792
     2638#: ../modules/user-listing/userlisting.php:796
     2639#: ../modules/user-listing/userlisting.php:799
    25992640msgid "Click here to go back"
    26002641msgstr ""
    26012642
    2602 #: ../modules/user-listing/userlisting.php:789
     2643#: ../modules/user-listing/userlisting.php:796
    26032644msgid "Back"
    26042645msgstr ""
    26052646
    2606 #: ../modules/user-listing/userlisting.php:822
     2647#: ../modules/user-listing/userlisting.php:829
    26072648msgid "&laquo;&laquo; First"
    26082649msgstr ""
    26092650
    2610 #: ../modules/user-listing/userlisting.php:823
     2651#: ../modules/user-listing/userlisting.php:830
    26112652msgid "&laquo; Prev"
    26122653msgstr ""
    26132654
    2614 #: ../modules/user-listing/userlisting.php:824
     2655#: ../modules/user-listing/userlisting.php:831
    26152656msgid "Next &raquo; "
    26162657msgstr ""
    26172658
    2618 #: ../modules/user-listing/userlisting.php:825
     2659#: ../modules/user-listing/userlisting.php:832
    26192660msgid "Last &raquo;&raquo;"
    26202661msgstr ""
    26212662
    2622 #: ../modules/user-listing/userlisting.php:854
     2663#: ../modules/user-listing/userlisting.php:861
    26232664msgid "You don't have any pagination settings on this userlisting!"
    26242665msgstr ""
    26252666
    2626 #: ../modules/user-listing/userlisting.php:895
     2667#: ../modules/user-listing/userlisting.php:902
    26272668msgid "Search"
    26282669msgstr ""
    26292670
    2630 #: ../modules/user-listing/userlisting.php:896
     2671#: ../modules/user-listing/userlisting.php:903
    26312672msgid "Clear Results"
    26322673msgstr ""
    26332674
    2634 #: ../modules/user-listing/userlisting.php:1072
     2675#: ../modules/user-listing/userlisting.php:1079
    26352676msgid "Extra shortcode parameters"
    26362677msgstr ""
    26372678
    2638 #: ../modules/user-listing/userlisting.php:1074
     2679#: ../modules/user-listing/userlisting.php:1081
    26392680msgid ""
    26402681"displays users having a certain meta-value within a certain (extra) meta-"
     
    26422683msgstr ""
    26432684
    2644 #: ../modules/user-listing/userlisting.php:1075
     2685#: ../modules/user-listing/userlisting.php:1082
    26452686msgid "Example:"
    26462687msgstr ""
    26472688
    2648 #: ../modules/user-listing/userlisting.php:1077
     2689#: ../modules/user-listing/userlisting.php:1084
    26492690msgid ""
    26502691"Remember though, that the field-value combination must exist in the database."
    26512692msgstr ""
    26522693
    2653 #: ../modules/user-listing/userlisting.php:1131
     2694#: ../modules/user-listing/userlisting.php:1138
    26542695msgid "Random (very slow on large databases > 10K user)"
    26552696msgstr ""
    26562697
    2657 #: ../modules/user-listing/userlisting.php:1144
     2698#: ../modules/user-listing/userlisting.php:1151
    26582699msgid "Roles to Display"
    26592700msgstr ""
    26602701
    2661 #: ../modules/user-listing/userlisting.php:1144
     2702#: ../modules/user-listing/userlisting.php:1151
    26622703msgid ""
    26632704"Restrict the userlisting to these selected roles only<br/>If not specified, "
     
    26652706msgstr ""
    26662707
    2667 #: ../modules/user-listing/userlisting.php:1145
     2708#: ../modules/user-listing/userlisting.php:1152
    26682709msgid "Number of Users/Page"
    26692710msgstr ""
    26702711
    2671 #: ../modules/user-listing/userlisting.php:1145
     2712#: ../modules/user-listing/userlisting.php:1152
    26722713msgid ""
    26732714"Set the number of users to be displayed on every paginated part of the all-"
     
    26752716msgstr ""
    26762717
    2677 #: ../modules/user-listing/userlisting.php:1146
     2718#: ../modules/user-listing/userlisting.php:1153
    26782719msgid "Default Sorting Criteria"
    26792720msgstr ""
    26802721
    2681 #: ../modules/user-listing/userlisting.php:1146
     2722#: ../modules/user-listing/userlisting.php:1153
    26822723msgid ""
    26832724"Set the default sorting criteria<br/>This can temporarily be changed for "
     
    26852726msgstr ""
    26862727
    2687 #: ../modules/user-listing/userlisting.php:1147
     2728#: ../modules/user-listing/userlisting.php:1154
    26882729msgid "Default Sorting Order"
    26892730msgstr ""
    26902731
    2691 #: ../modules/user-listing/userlisting.php:1147
     2732#: ../modules/user-listing/userlisting.php:1154
    26922733msgid ""
    26932734"Set the default sorting order<br/>This can temporarily be changed for each "
     
    26952736msgstr ""
    26962737
    2697 #: ../modules/user-listing/userlisting.php:1148
     2738#: ../modules/user-listing/userlisting.php:1155
    26982739msgid "Avatar Size (All-userlisting)"
    26992740msgstr ""
    27002741
    2701 #: ../modules/user-listing/userlisting.php:1148
     2742#: ../modules/user-listing/userlisting.php:1155
    27022743msgid "Set the avatar size on the all-userlisting only"
    27032744msgstr ""
    27042745
    2705 #: ../modules/user-listing/userlisting.php:1149
     2746#: ../modules/user-listing/userlisting.php:1156
    27062747msgid "Avatar Size (Single-userlisting)"
    27072748msgstr ""
    27082749
    2709 #: ../modules/user-listing/userlisting.php:1149
     2750#: ../modules/user-listing/userlisting.php:1156
    27102751msgid "Set the avatar size on the single-userlisting only"
    27112752msgstr ""
    27122753
    2713 #: ../modules/user-listing/userlisting.php:1150
     2754#: ../modules/user-listing/userlisting.php:1157
    27142755msgid "Visible only to logged in users?"
    27152756msgstr ""
    27162757
    2717 #: ../modules/user-listing/userlisting.php:1150
     2758#: ../modules/user-listing/userlisting.php:1157
    27182759msgid "The userlisting will only be visible only to the logged in users"
    27192760msgstr ""
    27202761
    2721 #: ../modules/user-listing/userlisting.php:1151
     2762#: ../modules/user-listing/userlisting.php:1158
    27222763msgid "Visible to following Roles"
    27232764msgstr ""
    27242765
    2725 #: ../modules/user-listing/userlisting.php:1151
     2766#: ../modules/user-listing/userlisting.php:1158
    27262767msgid "The userlisting will only be visible to the following roles"
    27272768msgstr ""
    27282769
    2729 #: ../modules/user-listing/userlisting.php:1157
     2770#: ../modules/user-listing/userlisting.php:1164
    27302771msgid "Userlisting Settings"
    27312772msgstr ""
    27322773
    2733 #: ../modules/user-listing/userlisting.php:1178
     2774#: ../modules/user-listing/userlisting.php:1185
    27342775msgid ""
    27352776"You need to activate the Userlisting feature from within the \"Modules\" tab!"
    27362777msgstr ""
    27372778
    2738 #: ../modules/user-listing/userlisting.php:1178
     2779#: ../modules/user-listing/userlisting.php:1185
    27392780msgid "You can find it in the Profile Builder menu."
    27402781msgstr ""
    27412782
    2742 #: ../modules/user-listing/userlisting.php:1328
     2783#: ../modules/user-listing/userlisting.php:1335
    27432784msgid "No results found!"
    27442785msgstr ""
  • profile-builder/trunk/admin/manage-fields.php

    r1020987 r1027324  
    168168
    169169    if ( ( $wppb_manage_fields === 'not_found' ) || ( empty( $wppb_manage_fields ) ) ){
    170         return 'custom_field'.$id;
     170        return 'custom_field_' . $id;
    171171    }
    172172    else{
     
    182182            foreach( $meta_names as $meta_name ){
    183183                $number = str_replace( 'custom_field', '', $meta_name );
    184                 /* backwards compatibility check in PB 1.3 meta_name was custom_field_# */
     184                /* we should have an underscore present in custom_field_# so remove it */
    185185                $number = str_replace( '_', '', $number );
    186186
     
    193193        }
    194194
    195         return 'custom_field'.$id;
     195        return 'custom_field_' . $id;
    196196    }
    197197}
     
    219219        if( !empty( $ids_array ) ){
    220220            rsort( $ids_array );
    221             $id = $ids_array[0]+1;
     221            $id = $ids_array[0] + 1;
    222222        }
    223223    }
    224224    return $id;
    225225}
     226
     227/**
     228 * Function that checks to see if the id is unique when saving the new field
     229 *
     230 * @param array $values
     231 *
     232 * @return array
     233 */
     234function wppb_check_unique_id_on_saving( $values ) {
     235    $wppb_manage_fields = get_option( 'wppb_manage_fields', 'not_found' );
     236
     237    if( $wppb_manage_fields != 'not_found' ) {
     238
     239        $ids_array = array();
     240        foreach( $wppb_manage_fields as $field ){
     241            $ids_array[] = $field['id'];
     242        }
     243
     244        if( in_array( $values['id'], $ids_array ) ) {
     245            rsort( $ids_array );
     246            $values['id'] = $ids_array[0] + 1;
     247        }
     248
     249    }
     250
     251    return $values;
     252}
     253add_filter( 'wck_add_meta_filter_values_wppb_manage_fields', 'wppb_check_unique_id_on_saving' );
     254
    226255
    227256function wppb_return_unique_field_list( $only_default_fields = false ){
     
    337366        // END check for the correct the date-format   
    338367       
    339         //check duplicate meta-name
     368        //check for empty meta-name and duplicate meta-name
    340369        if ( $posted_values['overwrite-existing'] == 'No' ){
    341370            $skip_check_for_fields = wppb_return_unique_field_list(true);
     
    344373            if ( !in_array( trim( $posted_values['field'] ), $skip_check_for_fields ) ){
    345374                $unique_meta_name_list = array( 'first_name', 'last_name', 'nickname', 'description' );
    346                
     375
     376                //check to see if meta-name is empty
     377                $skip_empty_check_for_fields = array('Heading');
     378
     379                if( !in_array( $posted_values['field'], $skip_empty_check_for_fields ) && empty( $posted_values['meta-name'] ) ) {
     380                    $message .= __( "The meta-name cannot be empty\n", 'profilebuilder' );
     381                }
     382
    347383                // Default contact methods were removed in WP 3.6. A filter dictates contact methods.
    348384                if ( apply_filters( 'wppb_remove_default_contact_methods', get_site_option( 'initial_db_version' ) < 23588 ) ){
     
    401437        }
    402438        // END check for valid default option (checkbox, select, radio)
    403    
     439
     440        $message = apply_filters( 'wppb_check_extra_manage_fields', $message, $posted_values );
     441
    404442    }elseif ( ( $meta_name == 'wppb_rf_fields' ) || ( $meta_name == 'wppb_epf_fields' ) ){
    405443        if ( $posted_values['field'] == '' ){
  • profile-builder/trunk/admin/register-version.php

    r1020987 r1027324  
    9494   
    9595    $response = wp_remote_get( 'http://updatemetadata.cozmoslabs.com/checkserial/?serialNumberSent='.$serial_number_set );
    96    
     96
    9797    if ( PROFILE_BUILDER == 'Profile Builder Pro' ){
    9898        wppb_update_serial_status($response, 'pro');
     
    209209if ( PROFILE_BUILDER == 'Profile Builder Pro' ){
    210210    $wppb_profile_builder_pro_hobbyist_serial_status = get_option( 'wppb_profile_builder_pro_serial_status', 'empty' );
     211    $version = 'pro';
     212
    211213} elseif( PROFILE_BUILDER == 'Profile Builder Hobbyist' ) {
    212214    $wppb_profile_builder_pro_hobbyist_serial_status = get_option( 'wppb_profile_builder_hobbyist_serial_status', 'empty' );
     215    $version = 'hobbyist';
    213216}
    214217
    215218if ( $wppb_profile_builder_pro_hobbyist_serial_status == 'notFound' || $wppb_profile_builder_pro_hobbyist_serial_status == 'empty' ){
    216     new wppb_add_notices( 'wppb', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> serial number is invalid or missing. <br/>Please %1$sregister your copy%2$s of Profile Builder to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s</p>', 'profilebuilder'), "<a href='admin.php?page=profile-builder-register'>", "</a>", "<a href='http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Purchase' target='_blank' class='button-primary'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
     219    new wppb_add_notices( 'wppb', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> serial number is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s</p>', 'profilebuilder'), "<a href='admin.php?page=profile-builder-register'>", "</a>", "<a href='http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-SN-Purchase' target='_blank' class='button-primary'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
    217220}
    218221elseif ( $wppb_profile_builder_pro_hobbyist_serial_status == 'expired' ){
    219     $wppb_notice = new wppb_add_notices( 'wppb', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> licence has expired. <br/>Please %1$sRenew Your Licence%2$s to receive access to automatic updates and support. %3$sPurchase one now%4$s %5$sDismiss%6$s</p>', 'profilebuilder'), "<a href='http://www.cozmoslabs.com/downloads/profile-builder-pro-1-year/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank'>", "</a>", "<a href='http://www.cozmoslabs.com/downloads/profile-builder-pro-1-year/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank' class='button-primary'>", "</a>", "<a href='". add_query_arg( 'wppb_dismiss_notification', '0' ) ."' class='wppb-dismiss-notification'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
     222    new wppb_add_notices( 'wppb_expired', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now and get 50&#37; off %4$s %5$sDismiss%6$s</p>', 'profilebuilder'), "<a href='http://www.cozmoslabs.com/downloads/profile-builder-". $version ."-v2-yearly-renewal/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank'>", "</a>", "<a href='http://www.cozmoslabs.com/downloads/profile-builder-".$version."-v2-yearly-renewal/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank' class='button-primary'>", "</a>", "<a href='". add_query_arg( 'wppb_expired_dismiss_notification', '0' ) ."' class='wppb-dismiss-notification'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
    220223}
    221224elseif( strpos( $wppb_profile_builder_pro_hobbyist_serial_status, 'aboutToExpire' ) === 0 ){
    222225    $serial_status_parts = explode( '#', $wppb_profile_builder_pro_hobbyist_serial_status );
    223226    $date = $serial_status_parts[1];
    224     new wppb_add_notices( 'wppb', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> serial number is about to expire on %5$s. <br/>Please %1$sRenew Your Licence%2$s to receive access to automatic updates and support. %3$sPurchase one now%4$s</p>', 'profilebuilder'), "<a href='admin.php?page=profile-builder-register'>", "</a>", "<a href='http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Purchase' target='_blank' class='button-primary'>", "</a>", $date ), 'wppb_profile_builder_pro_serial_status' );
    225 }
     227    new wppb_add_notices( 'wppb_about_to_expire', 'profile_builder_pro', sprintf( __( '<p>Your <strong>Profile Builder</strong> license is about to expire on %5$s. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now and get 50&#37; off %4$s %6$sDismiss%7$s</p>', 'profilebuilder'), "<a href='http://www.cozmoslabs.com/downloads/profile-builder-". $version ."-v2-yearly-renewal/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank'>", "</a>", "<a href='http://www.cozmoslabs.com/downloads/profile-builder-".$version."-v2-yearly-renewal/?utm_source=PB&utm_medium=dashboard&utm_campaign=PB-Renewal' target='_blank' class='button-primary'>", "</a>", $date, "<a href='". add_query_arg( 'wppb_about_to_expire_dismiss_notification', '0' ) ."' class='wppb-dismiss-notification'>", "</a>" ), 'wppb_profile_builder_pro_serial_status' );
     228}
  • profile-builder/trunk/assets/css/style-front-end.css

    r1020987 r1027324  
    144144    padding-right:0;
    145145}
     146
     147.wppb-user-forms ul li{
     148    list-style:none;
     149}
     150
    146151.wppb-user-forms ul li,
    147152#wppb-login-wrap p{
  • profile-builder/trunk/assets/js/jquery-manage-fields-live-change.js

    r1020987 r1027324  
    464464                if( meta_name.indexOf( 'custom_field' ) !== -1 ){
    465465                    var meta_name = meta_name.replace('custom_field', '' );
    466                     /* backwards compatibility check in PB 1.3 meta_name was custom_field_# */
     466                    /* we should have an underscore present in custom_field_# so remove it */
    467467                    meta_name = meta_name.replace('_', '' );
     468
    468469                    if( isNaN( meta_name ) ){
    469470                        meta_name = Math.floor((Math.random() * 200) + 100);
    470471                    }
    471                     numbers.push( meta_name );
     472                    numbers.push( parseInt(meta_name) );
    472473                }
     474
    473475            });
    474476            if( numbers.length > 0 ){
    475                 numbers.sort();
     477                numbers.sort( function(a, b){return a-b} );
    476478                numbers.reverse();
    477479                meta_number = parseInt(numbers[0])+1;
     
    480482                meta_number = 1;
    481483
    482             meta_value = 'custom_field'+meta_number;
     484            meta_value = 'custom_field_' + meta_number;
    483485        }
     486
    484487        jQuery( container_name + ' ' + '#meta-name' ).val( meta_value );
    485488        jQuery( container_name + ' ' + '#meta-name' ).attr( 'readonly', false );
  • profile-builder/trunk/assets/lib/wck-api/wordpress-creation-kit.php

    r1020987 r1027324  
    345345        $form = '';
    346346        $form .= '<tr id="update_container_'.$meta.'_'.$element_id.'" ' . $wck_update_container_css_class . '><td colspan="4">';
    347        
    348347        if($results != null){
    349348            $i = 0;
     
    357356                    else
    358357                        $value = '';
    359                    
     358
    360359                    $form = apply_filters( "wck_before_update_form_{$meta}_element_{$i}", $form, $element_id, $value );
    361360                   
     
    674673        else
    675674            $values = array();
    676        
     675
    677676        $values = apply_filters( "wck_add_meta_filter_values_{$meta}", $values );
    678        
     677
    679678        /* check required fields */
    680679        $errors = self::wck_test_required( $this->args['meta_array'], $meta, $values, $id );       
     
    836835        $meta = $_POST['meta'];
    837836        $id = absint($_POST['id']);
    838         $element_id = $_POST['element_id'];
    839        
     837        $element_id = $_POST['element_id'];
     838
     839        do_action( "wck_before_adding_form_{$meta}", $id, $element_id );
     840
    840841        echo self::mb_update_form($this->args['meta_array'], $meta, $id, $element_id);
    841842       
     
    886887           
    887888            $meta_suffix = 1;           
    888            
     889
    889890            if( !empty( $results ) ){
    890                 foreach( $results as $result ){             
    891                     foreach ( $result as $name => $value){                 
    892                         update_post_meta($id, $meta.'_'.$name.'_'.$meta_suffix, $value);                   
     891                foreach( $results as $result ){
     892                    foreach ( $result as $name => $value){
     893                        update_post_meta($id, $meta.'_'.$name.'_'.$meta_suffix, $value);
    893894                    }
    894895                    $meta_suffix++;         
     
    10311032    function wck_media_send_to_editor($html, $id)
    10321033    {
    1033         parse_str($_POST["_wp_http_referer"], $arr_postinfo);
    1034        
    1035         if(isset($arr_postinfo["mb_type"]))
    1036         {
    1037             $file_src = wp_get_attachment_url($id);
    1038             $thumbnail = wp_get_attachment_image( $id, array( 80, 60 ), true );
    1039             $file_name = get_the_title( $id );
    1040            
    1041             if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $id ), $matches ) )
    1042                 $file_type = esc_html( strtoupper( $matches[1] ) );
    1043             else
    1044                 $file_type = strtoupper( str_replace( 'image/', '', get_post_mime_type( $id ) ) );
    1045        
    1046             ?>
    1047             <script type="text/javascript">             
    1048                
    1049                 self.parent.window. <?php echo $arr_postinfo["mb_type"];?> .val('<?php echo $id; ?>');
    1050                 self.parent.window. <?php echo $arr_postinfo["mb_info_div"];?> .html('<?php echo $thumbnail ?><p><span class="file-name"><?php echo $file_name; ?></span><span class="file-type"><?php echo $file_type; ?></span><span class="wck-remove-upload"><?php _e( 'Remove', 'wck' )?></span></p>');
    1051                
    1052                 self.parent.tb_remove();
    1053                
    1054             </script>
    1055             <?php
    1056             exit;
    1057         }
    1058         else
    1059         {
     1034        if( !empty( $_POST["_wp_http_referer"] ) ) {
     1035            parse_str($_POST["_wp_http_referer"], $arr_postinfo);
     1036            if (isset($arr_postinfo["mb_type"])) {
     1037                $file_src = wp_get_attachment_url($id);
     1038                $thumbnail = wp_get_attachment_image($id, array(80, 60), true);
     1039                $file_name = get_the_title($id);
     1040
     1041                if (preg_match('/^.*?\.(\w+)$/', get_attached_file($id), $matches))
     1042                    $file_type = esc_html(strtoupper($matches[1]));
     1043                else
     1044                    $file_type = strtoupper(str_replace('image/', '', get_post_mime_type($id)));
     1045
     1046                ?>
     1047                <script type="text/javascript">
     1048
     1049                    self.parent.window.<?php echo $arr_postinfo["mb_type"];?>.val('<?php echo $id; ?>');
     1050                    self.parent.window.<?php echo $arr_postinfo["mb_info_div"];?>.html('<?php echo $thumbnail ?><p><span class="file-name"><?php echo $file_name; ?></span><span class="file-type"><?php echo $file_type; ?></span><span class="wck-remove-upload"><?php _e( 'Remove', 'wck' )?></span></p>');
     1051
     1052                    self.parent.tb_remove();
     1053
     1054                </script>
     1055                <?php
     1056                exit;
     1057            }
     1058        }
     1059        else{
    10601060            return $html;
    10611061        }
  • profile-builder/trunk/features/email-confirmation/email-confirmation.php

    r1012789 r1027324  
    375375        $user_login = esc_sql( $signup->user_login );
    376376        $user_email = esc_sql( $signup->user_email );
    377         $password = base64_decode( $meta['user_pass'] );
     377        /* the password is in hashed form in the signup table and we will copy it later to the user */
     378        $password = NULL;
    378379
    379380        $user_id = username_exists($user_login);
     
    403404                clean_object_term_cache( $user_id, 'user_status' );
    404405            }
     406
     407            /* copy the hashed password from signup meta to wp user table */
     408            if( !empty( $meta['user_pass'] ) ){
     409                /* we might still have the base64 encoded password in signups and not the hash */
     410                if( base64_encode(base64_decode($meta['user_pass'], true)) === $meta['user_pass'] )
     411                    $meta['user_pass'] = wp_hash_password( $meta['user_pass'] );
     412
     413                $wpdb->update( $wpdb->users, array('user_pass' => $meta['user_pass'] ), array('ID' => $user_id) );
     414            }
    405415           
    406416            wppb_notify_user_registration_email( get_bloginfo( 'name' ), $user_login, $user_email, 'sending', $password, ( isset( $wppb_general_settings['adminApproval'] ) ? $wppb_general_settings['adminApproval'] : 'no' ) );
  • profile-builder/trunk/features/functions.php

    r1020987 r1027324  
    554554 */
    555555function wppb_required_field_error($field_title='') {
    556     $required_error = __(apply_filters('wppb_required_error' , 'This field is required' , $field_title),'profilebuilder');
     556    $required_error = apply_filters('wppb_required_error' , __('This field is required','profilebuilder') , $field_title);
    557557
    558558    return $required_error;
     
    608608        'update-nag');
    609609}
     610
     611/*Filter default WordPress notices ("Post published. Post updated."), add post type name for User Listing, Registration Forms and Edit Profile Forms*/
     612function wppb_change_default_post_updated_messages($messages){
     613    global $post;
     614    $post_type = get_post_type($post->ID);
     615    $object = get_post_type_object($post_type);
     616
     617    if ( ($post_type == 'wppb-rf-cpt')||($post_type == 'wppb-epf-cpt')||($post_type == 'wppb-ul-cpt') ){
     618        $messages['post'][1] = $object->labels->name . ' updated.';
     619        $messages['post'][6] = $object->labels->name . ' published.';
     620    }
     621    return $messages;
     622}
     623add_filter('post_updated_messages','wppb_change_default_post_updated_messages', 2);
  • profile-builder/trunk/features/upgrades/upgrades-functions.php

    r1011421 r1027324  
    159159                $local_array = array();
    160160
    161                 $local_array['id']                          = ( isset( $value['id'] ) ? trim( $value['id'] ) : '' );
     161                /* id will be set up at a later point */
     162                $local_array['id']                          = '';
    162163                $local_array['meta-name']                   = ( isset( $value['item_metaName'] ) ? trim( $value['item_metaName'] ) : '' );
    163164                $local_array['field-title']                 = ( isset( $value['item_title'] ) ? trim( $value['item_title'] ) : '' );
     
    280281        update_option( 'wppb_module_settings', $wppb_module_settings );
    281282    }
    282    
     283
     284    /* set up ids for each field */
     285    if( !empty( $backed_up_manage_fields ) ){
     286        /*make sure we have a 0 based index */
     287        $backed_up_manage_fields = array_values( $backed_up_manage_fields );
     288        foreach( $backed_up_manage_fields as $key => $backed_up_manage_field ){
     289            $backed_up_manage_fields[$key]['id'] = (int)$key + 1;
     290        }
     291    }
    283292    add_option( 'wppb_manage_fields', $backed_up_manage_fields );
    284293   
     
    508517function wppb_add_existing_default_fields ( $backed_up_manage_fields = array(), $field, $meta_name, $required, $description = '', $recaptcha_public_key = '', $recaptcha_private_key = '' ){
    509518    $local_array = array();
    510    
    511     $id = 0;
    512     foreach ( $backed_up_manage_fields as $key => $value ){
    513         if ( (int)$id < (int)$value['id'] );
    514             $id = $value['id'];
    515     }
    516     $id++;
    517 
    518     $local_array['id']                          = $id;
     519
     520    $local_array['id']                          = '';
    519521    $local_array['field']                       = $field;
    520522    $local_array['meta-name']                   = $meta_name;
  • profile-builder/trunk/front-end/class-formbuilder.php

    r1020987 r1027324  
    369369                    $userdata = $this->wppb_add_custom_field_values( $global_request, $userdata, $this->args['form_fields'] );
    370370                    $userdata['role'] = $this->args['role'];
    371                     $userdata['user_pass'] = base64_encode( $userdata['user_pass'] );
     371                    $userdata['user_pass'] = wp_hash_password( $userdata['user_pass'] );
    372372                    wppb_signup_user( $userdata['user_login'], $userdata['user_email'], $userdata );
    373373               
     
    383383                $userdata = $this->wppb_add_custom_field_values( $global_request, $userdata, $this->args['form_fields'] );
    384384                $userdata['role'] = $this->args['role'];
    385                 $userdata['user_pass'] = base64_encode( $userdata['user_pass'] );
     385                $userdata['user_pass'] = wp_hash_password( $userdata['user_pass'] );
    386386                $userdata = wp_unslash( $userdata );
    387387                wppb_signup_user( $userdata['user_login'], $userdata['user_email'], $userdata );
     
    412412                    else
    413413                        $send_credentials_via_email = '';
    414                     wppb_notify_user_registration_email( get_bloginfo( 'name' ), ( isset( $global_request['username'] ) ? trim( $global_request['username'] ) : trim( $global_request['email'] ) ), trim( $global_request['email'] ), $send_credentials_via_email, trim( $global_request['passw1'] ), ( isset( $wppb_general_settings['adminApproval'] ) ? $wppb_general_settings['adminApproval'] : 'no' ) );
     414                    wppb_notify_user_registration_email( get_bloginfo( 'name' ), ( isset( $userdata['user_login'] ) ? trim( $userdata['user_login'] ) : trim( $userdata['user_email'] ) ), trim( $userdata['user_email'] ), $send_credentials_via_email, trim( $userdata['user_pass'] ), ( isset( $wppb_general_settings['adminApproval'] ) ? $wppb_general_settings['adminApproval'] : 'no' ) );
    415415                }
    416416            }
  • profile-builder/trunk/front-end/default-fields/description/description.php

    r1011421 r1027324  
    2121        $output = '
    2222            <label for="description">'.$item_title.$error_mark.'</label>
    23             <textarea rows="'.$field['row-count'].'" name="description" class="default_field_description" id="description" wrap="virtual">'. esc_textarea( wp_unslash( $input_value ) ).'</textarea>';
     23            <textarea rows="'.$field['row-count'].'" name="description" maxlength="'. apply_filters( 'wppb_maximum_character_length', '', $field ) .'" class="default_field_description" id="description" wrap="virtual">'. esc_textarea( wp_unslash( $input_value ) ).'</textarea>';
    2424        if( !empty( $item_description ) )
    2525            $output .= '<span class="wppb-description-delimiter">'. $item_description .'</span>';
  • profile-builder/trunk/front-end/register.php

    r1012789 r1027324  
    5555       
    5656    $user_email = esc_sql( $signup->user_email );
    57     $password = base64_decode( $meta['user_pass'] );
     57    /* the password is in hashed form in the signup table so we will add it later */
     58    $password = NULL;
    5859
    5960    $user_id = username_exists( $user_login );
     
    8485        if ( !isset( $wppb_generalSettings['adminApproval'] ) )
    8586            $wppb_generalSettings['adminApproval'] = 'no';
     87
     88        /* copy the hashed password from signup meta to wp user table */
     89        if( !empty( $meta['user_pass'] ) ){
     90            /* we might still have the base64 encoded password in signups and not the hash */
     91            if( base64_encode(base64_decode($meta['user_pass'], true)) === $meta['user_pass'] )
     92                $meta['user_pass'] = wp_hash_password( $meta['user_pass'] );
     93
     94            $wpdb->update( $wpdb->users, array('user_pass' => $meta['user_pass'] ), array('ID' => $user_id) );
     95        }
    8696       
    8797        wppb_notify_user_registration_email($bloginfo, $user_login, $user_email, 'sending', $password, $wppb_generalSettings['adminApproval']);
  • profile-builder/trunk/index.php

    r1020987 r1027324  
    44Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
    55Description: 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.0.5
     6Version: 2.0.6
    77Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel
    88Author URI: http://www.cozmoslabs.com/
     
    2525*/
    2626
    27 /**
    28  * Convert memory value from ini file to a readable form
    29  *
    30  * @since v.1.0
    31  *
    32  * @return integer
    33  */
    34 function wppb_return_bytes( $val ) {
    35     $val = trim( $val );
    36    
    37     switch( strtolower( $val[strlen( $val )-1] ) ) {
    38         // The 'G' modifier is available since PHP 5.1.0
    39         case 'g':
    40             $val *= 1024;
    41         case 'm':
    42             $val *= 1024;
    43         case 'k':
    44             $val *= 1024;
    45     }
     27/* Check if another version of Profile Builder is activated, to prevent fatal errors*/
     28function wppb_plugin_init() {
     29    if (function_exists('wppb_return_bytes')) {
     30        function wppb_admin_notice()
     31        {
     32            ?>
     33            <div class="error">
     34                <p><?php _e( PROFILE_BUILDER . ' is also activated. You need to deactivate it before activating this version of the plugin.', 'profilebuilder'); ?></p>
     35            </div>
     36        <?php
     37        }
     38        function wppb_plugin_deactivate() {
     39            deactivate_plugins( plugin_basename( __FILE__ ) );
     40            unset($_GET['activate']);
     41        }
    4642
    47     return $val;
    48 }
     43        add_action('admin_notices', 'wppb_admin_notice');
     44        add_action( 'admin_init', 'wppb_plugin_deactivate' );
     45    } else {
    4946
    50 /**
    51  * Definitions
    52  *
    53  *
    54  */
    55 define( 'PROFILE_BUILDER_VERSION', '2.0.5' );
    56 define( 'WPPB_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
    57 define( 'WPPB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    58 define( 'WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters( 'wppb_server_max_upload_size_byte_constant', wppb_return_bytes( ini_get( 'upload_max_filesize') ) ) );
    59 define( 'WPPB_SERVER_MAX_UPLOAD_SIZE_MEGA', apply_filters( 'wppb_server_max_upload_size_mega_constant', ini_get( 'upload_max_filesize') ) );
    60 define( 'WPPB_SERVER_MAX_POST_SIZE_BYTE', apply_filters( 'wppb_server_max_post_size_byte_constant', wppb_return_bytes( ini_get( 'post_max_size') ) ) );
    61 define( 'WPPB_SERVER_MAX_POST_SIZE_MEGA', apply_filters( 'wppb_server_max_post_size_mega_constant', ini_get( 'post_max_size') ) );
    62 define( 'WPPB_TRANSLATE_DIR', WPPB_PLUGIN_DIR.'/translation' );
    63 define( 'WPPB_TRANSLATE_DOMAIN', 'profilebuilder' );
     47        /**
     48         * Convert memory value from ini file to a readable form
     49         *
     50         * @since v.1.0
     51         *
     52         * @return integer
     53         */
     54        function wppb_return_bytes($val)
     55        {
     56            $val = trim($val);
    6457
    65 /* include notices class */
    66 if ( file_exists ( WPPB_PLUGIN_DIR.'/assets/lib/class_notices.php' ) )
    67     include_once(WPPB_PLUGIN_DIR . '/assets/lib/class_notices.php' );
     58            switch (strtolower($val[strlen($val) - 1])) {
     59                // The 'G' modifier is available since PHP 5.1.0
     60                case 'g':
     61                    $val *= 1024;
     62                case 'm':
     63                    $val *= 1024;
     64                case 'k':
     65                    $val *= 1024;
     66            }
    6867
    69 if ( file_exists ( WPPB_PLUGIN_DIR.'/modules/modules.php' ) )
    70     define( 'PROFILE_BUILDER', 'Profile Builder Pro' );
    71 elseif ( file_exists ( WPPB_PLUGIN_DIR.'/front-end/extra-fields/extra-fields.php' ) )
    72     define( 'PROFILE_BUILDER', 'Profile Builder Hobbyist' );
    73 else
    74     define( 'PROFILE_BUILDER', 'Profile Builder Free' );
     68            return $val;
     69        }
    7570
    76 /**
    77  * Initialize the translation for the Plugin.
    78  *
    79  * @since v.1.0
    80  *
    81  * @return null
    82  */
    83 function wppb_init_translation(){
    84     load_plugin_textdomain( 'profilebuilder', false, basename( dirname( __FILE__ ) ) . '/translation/' );
    85 }
    86 add_action( 'init', 'wppb_init_translation', 8);
     71        /**
     72         * Definitions
     73         *
     74         *
     75         */
     76        define('PROFILE_BUILDER_VERSION', '2.0.6' );
     77        define('WPPB_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname(plugin_basename(__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'))));
     80        define('WPPB_SERVER_MAX_UPLOAD_SIZE_MEGA', apply_filters('wppb_server_max_upload_size_mega_constant', ini_get('upload_max_filesize')));
     81        define('WPPB_SERVER_MAX_POST_SIZE_BYTE', apply_filters('wppb_server_max_post_size_byte_constant', wppb_return_bytes(ini_get('post_max_size'))));
     82        define('WPPB_SERVER_MAX_POST_SIZE_MEGA', apply_filters('wppb_server_max_post_size_mega_constant', ini_get('post_max_size')));
     83        define('WPPB_TRANSLATE_DIR', WPPB_PLUGIN_DIR . '/translation');
     84        define('WPPB_TRANSLATE_DOMAIN', 'profilebuilder');
     85
     86        /* include notices class */
     87        if (file_exists(WPPB_PLUGIN_DIR . '/assets/lib/class_notices.php'))
     88            include_once(WPPB_PLUGIN_DIR . '/assets/lib/class_notices.php');
     89
     90        if (file_exists(WPPB_PLUGIN_DIR . '/modules/modules.php'))
     91            define('PROFILE_BUILDER', 'Profile Builder Pro');
     92        elseif (file_exists(WPPB_PLUGIN_DIR . '/front-end/extra-fields/extra-fields.php'))
     93            define('PROFILE_BUILDER', 'Profile Builder Hobbyist');
     94        else
     95            define('PROFILE_BUILDER', 'Profile Builder Free');
     96
     97        /**
     98         * Initialize the translation for the Plugin.
     99         *
     100         * @since v.1.0
     101         *
     102         * @return null
     103         */
     104        function wppb_init_translation()
     105        {
     106            load_plugin_textdomain('profilebuilder', false, basename(dirname(__FILE__)) . '/translation/');
     107        }
     108
     109        add_action('init', 'wppb_init_translation', 8);
    87110
    88111
    89 /**
    90  * Required files
    91  *
    92  *
    93  */
    94 include_once( WPPB_PLUGIN_DIR.'/assets/lib/wck-api/wordpress-creation-kit.php' );
    95 include_once( WPPB_PLUGIN_DIR.'/features/upgrades/upgrades.php' );
    96 include_once( WPPB_PLUGIN_DIR.'/features/functions.php' );
    97 include_once( WPPB_PLUGIN_DIR.'/admin/admin-functions.php' );
    98 include_once( WPPB_PLUGIN_DIR.'/admin/basic-info.php' );
    99 include_once( WPPB_PLUGIN_DIR.'/admin/general-settings.php' );
    100 include_once( WPPB_PLUGIN_DIR.'/admin/admin-bar.php' );
    101 include_once( WPPB_PLUGIN_DIR.'/admin/manage-fields.php' );
    102 include_once( WPPB_PLUGIN_DIR.'/features/email-confirmation/email-confirmation.php' );
    103 include_once( WPPB_PLUGIN_DIR.'/features/email-confirmation/class-email-confirmation.php' );
    104 if ( file_exists ( WPPB_PLUGIN_DIR.'/features/admin-approval/admin-approval.php' ) ) {
    105     include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/admin-approval.php');
    106     include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/class-admin-approval.php');
    107 }
    108 include_once( WPPB_PLUGIN_DIR.'/features/login-widget/login-widget.php' );
     112        /**
     113         * Required files
     114         *
     115         *
     116         */
     117        include_once(WPPB_PLUGIN_DIR . '/assets/lib/wck-api/wordpress-creation-kit.php');
     118        include_once(WPPB_PLUGIN_DIR . '/features/upgrades/upgrades.php');
     119        include_once(WPPB_PLUGIN_DIR . '/features/functions.php');
     120        include_once(WPPB_PLUGIN_DIR . '/admin/admin-functions.php');
     121        include_once(WPPB_PLUGIN_DIR . '/admin/basic-info.php');
     122        include_once(WPPB_PLUGIN_DIR . '/admin/general-settings.php');
     123        include_once(WPPB_PLUGIN_DIR . '/admin/admin-bar.php');
     124        include_once(WPPB_PLUGIN_DIR . '/admin/manage-fields.php');
     125        include_once(WPPB_PLUGIN_DIR . '/features/email-confirmation/email-confirmation.php');
     126        include_once(WPPB_PLUGIN_DIR . '/features/email-confirmation/class-email-confirmation.php');
     127        if (file_exists(WPPB_PLUGIN_DIR . '/features/admin-approval/admin-approval.php')) {
     128            include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/admin-approval.php');
     129            include_once(WPPB_PLUGIN_DIR . '/features/admin-approval/class-admin-approval.php');
     130        }
     131        include_once(WPPB_PLUGIN_DIR . '/features/login-widget/login-widget.php');
    109132
    110 if ( file_exists ( WPPB_PLUGIN_DIR.'/update/update-checker.php' ) ){
    111     include_once ( WPPB_PLUGIN_DIR.'/update/update-checker.php' );
    112     include_once ( WPPB_PLUGIN_DIR.'/admin/register-version.php' );
    113 }
     133        if (file_exists(WPPB_PLUGIN_DIR . '/update/update-checker.php')) {
     134            include_once(WPPB_PLUGIN_DIR . '/update/update-checker.php');
     135            include_once(WPPB_PLUGIN_DIR . '/admin/register-version.php');
     136        }
    114137
    115 if ( file_exists ( WPPB_PLUGIN_DIR.'/modules/modules.php' ) ){
    116     include_once ( WPPB_PLUGIN_DIR.'/modules/modules.php' );
    117     include_once ( WPPB_PLUGIN_DIR.'/modules/custom-redirects/custom-redirects.php' );
    118     include_once ( WPPB_PLUGIN_DIR.'/modules/email-customizer/email-customizer.php' );
    119     include_once ( WPPB_PLUGIN_DIR.'/modules/multiple-forms/multiple-forms.php' );
    120    
    121     $wppb_module_settings = get_option( 'wppb_module_settings' );
    122     if ( isset( $wppb_module_settings['wppb_userListing'] ) && ( $wppb_module_settings['wppb_userListing'] == 'show' ) ){
    123         include_once ( WPPB_PLUGIN_DIR.'/modules/user-listing/userlisting.php' );
    124         add_shortcode( 'wppb-list-users', 'wppb_user_listing_shortcode' );
    125     }else
    126         add_shortcode( 'wppb-list-users', 'wppb_list_all_users_display_error' );
    127    
    128     if ( isset( $wppb_module_settings['wppb_emailCustomizerAdmin'] ) && ( $wppb_module_settings['wppb_emailCustomizerAdmin'] == 'show' ) )
    129         include_once ( WPPB_PLUGIN_DIR.'/modules/email-customizer/admin-email-customizer.php' );
    130        
    131     if ( isset( $wppb_module_settings['wppb_emailCustomizer'] ) && ( $wppb_module_settings['wppb_emailCustomizer'] == 'show' ) )
    132         include_once ( WPPB_PLUGIN_DIR.'/modules/email-customizer/user-email-customizer.php' );
    133 }
     138        if (file_exists(WPPB_PLUGIN_DIR . '/modules/modules.php')) {
     139            include_once(WPPB_PLUGIN_DIR . '/modules/modules.php');
     140            include_once(WPPB_PLUGIN_DIR . '/modules/custom-redirects/custom-redirects.php');
     141            include_once(WPPB_PLUGIN_DIR . '/modules/email-customizer/email-customizer.php');
     142            include_once(WPPB_PLUGIN_DIR . '/modules/multiple-forms/multiple-forms.php');
     143
     144            $wppb_module_settings = get_option('wppb_module_settings');
     145            if (isset($wppb_module_settings['wppb_userListing']) && ($wppb_module_settings['wppb_userListing'] == 'show')) {
     146                include_once(WPPB_PLUGIN_DIR . '/modules/user-listing/userlisting.php');
     147                add_shortcode('wppb-list-users', 'wppb_user_listing_shortcode');
     148            } else
     149                add_shortcode('wppb-list-users', 'wppb_list_all_users_display_error');
     150
     151            if (isset($wppb_module_settings['wppb_emailCustomizerAdmin']) && ($wppb_module_settings['wppb_emailCustomizerAdmin'] == 'show'))
     152                include_once(WPPB_PLUGIN_DIR . '/modules/email-customizer/admin-email-customizer.php');
     153
     154            if (isset($wppb_module_settings['wppb_emailCustomizer']) && ($wppb_module_settings['wppb_emailCustomizer'] == 'show'))
     155                include_once(WPPB_PLUGIN_DIR . '/modules/email-customizer/user-email-customizer.php');
     156        }
    134157
    135158
    136 /**
    137  * Check for updates
    138  *
    139  *
    140  */
    141 if ( file_exists ( WPPB_PLUGIN_DIR.'/update/update-checker.php' ) ){   
    142     if ( file_exists ( WPPB_PLUGIN_DIR.'/modules/modules.php' ) ){
    143         $localSerial = get_option( 'wppb_profile_builder_pro_serial' );
    144         $wppb_update = new wppb_PluginUpdateChecker( 'http://updatemetadata.cozmoslabs.com/?localSerialNumber='.$localSerial.'&uniqueproduct=CLPBP', __FILE__, 'profile-builder-pro-update' );
    145    
    146     }else{
    147         $localSerial = get_option( 'wppb_profile_builder_hobbyist_serial' );
    148         $wppb_update = new wppb_PluginUpdateChecker( 'http://updatemetadata.cozmoslabs.com/?localSerialNumber='.$localSerial.'&uniqueproduct=CLPBH', __FILE__, 'profile-builder-hobbyist-update' );
    149     }
    150 }
     159        /**
     160         * Check for updates
     161         *
     162         *
     163         */
     164        if (file_exists(WPPB_PLUGIN_DIR . '/update/update-checker.php')) {
     165            if (file_exists(WPPB_PLUGIN_DIR . '/modules/modules.php')) {
     166                $localSerial = get_option('wppb_profile_builder_pro_serial');
     167                $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBP', __FILE__, 'profile-builder-pro-update');
     168
     169            } else {
     170                $localSerial = get_option('wppb_profile_builder_hobbyist_serial');
     171                $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBH', __FILE__, 'profile-builder-hobbyist-update');
     172            }
     173        }
    151174
    152175
    153176// these settings are important, so besides running them on page load, we also need to do a check on plugin activation
    154 register_activation_hook( __FILE__, 'wppb_generate_default_settings_defaults' );    //prepoulate general settings
    155 register_activation_hook( __FILE__, 'wppb_prepopulate_fields' );                    //prepopulate manage fields list
     177        register_activation_hook(__FILE__, 'wppb_generate_default_settings_defaults');    //prepoulate general settings
     178        register_activation_hook(__FILE__, 'wppb_prepopulate_fields');                    //prepopulate manage fields list
    156179
     180    }
     181} //end wppb_plugin_init
     182add_action( 'plugins_loaded', 'wppb_plugin_init' );
  • profile-builder/trunk/readme.txt

    r1020987 r1027324  
    33Contributors: reflectionmedia, barinagabriel, sareiodata, cozmoslabs, adispiac, madalin.ungureanu
    44Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
    5 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, 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
     5Tags: 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
    66
    77Requires at least: 3.1
    88Tested up to: 4.0
    9 Stable tag: 2.0.5
     9Stable tag: 2.0.6
    1010
    1111Simple to use profile plugin allowing front-end login, user registration and edit profile by using shortcodes.
     
    2020
    2121To achieve this, simply create a new page and give it an intuitive name(i.e. Edit Profile).
    22 Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
     22Now all you need to do is add the following shortcode: [wppb-edit-profile].
    2323Publish the page and you are done!
    2424
     
    3737* allow users to **Log-in with their Username or Email**
    3838* enforce a **minimum password length** and **minimum password strength** (using the default WordPress password strength meter)
    39 * assign users a specific role at registration (using [wppb-register role="desired_role"] shortcode )
     39* assign users a specific role at registration (using **[wppb-register role="desired_role"]** shortcode argument)
     40* redirect users after login (using **[wppb-login redirect="www.example.com"]** shortcode argument)
     41* add register and lost password links below the login form (using **[wppb-login register_url="www.example.com" lostpassword_url="www.example.com"]** shortcode arguments)
     42* customizable login widget
    4043* add a custom stylesheet/inherit values from the current theme or use the default one built into this plugin.
    4144* chose which user roles view the admin bar in the front-end of the website (Admin Bar Settings page).
     
    4447**PROFILE BUILDER PRO**
    4548
    46 The [Pro version](http://www.cozmoslabs.com/wordpress-profile-builder/) has the following extra features:
     49The [Pro version](http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wp.org&utm_medium=plugin-description-page&utm_campaign=PBFree) has the following extra features:
    4750
    4851* Create Extra User Fields (Heading, Input, Hidden-Input, Checkbox, Agree to Terms Checkbox, Radio Buttons, DatePicker, Textareas, reCAPTCHA, Upload fields, Selects, Country Selects, Timezone selects, Avatar Upload)
     
    6063* 1 Year of Updates / Priority Support
    6164
    62 [Click here to find out more](http://www.cozmoslabs.com/wordpress-profile-builder/) or watch the video below:
    63 
    64 [youtube http://www.youtube.com/watch?v=Uv8piGapOoA]
     65[Find out more about Profile Builder PRO](http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wp.org&utm_medium=plugin-description-page&utm_campaign=PBFree)
    6566
    6667NOTE:
     
    1011028. Edit User Profile Page
    1021039. Recover Password Page
     10410. Profile Builder Login Widget
    103105
    104106== Changelog ==
     107= 2.0.6 =
     108* Fixed a bug with checkbox field that didn't pass the required if the value of the checkbox contained spaces
     109* When email confirmation is enabled we no longer can send the selected password via email because we now store the hased password inside wp-signups table and not a encoded version of it. This was done to improve security
     110* Fixed problem that was causing "Insert into post" image button not to work
     111* Fixed Fatal error when having both Free and Premium versions activated.
     112* Removing the meta name for extra fields is no longer possible
     113* Added translation files
     114
     115
    105116= 2.0.5 =
    106117* Added notification to enable user registration via Profile Builder (Anyone can register checkbox).
  • profile-builder/trunk/translation/profilebuilder.pot

    r1020987 r1027324  
    22msgstr ""
    33"Project-Id-Version: profilebuilder\n"
    4 "POT-Creation-Date: 2014-10-30 16:33+0200\n"
    5 "PO-Revision-Date: 2014-10-30 16:34+0200\n"
     4"POT-Creation-Date: 2014-11-17 15:27+0200\n"
     5"PO-Revision-Date: 2014-11-17 15:28+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: Cozmoslabs\n"
     
    1414"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    1515"X-Poedit-KeywordsList: __;_e;_x;_n\n"
     16"X-Poedit-SourceCharset: UTF-8\n"
    1617"X-Poedit-SearchPath-0: ..\n"
    1718
     
    125126msgstr ""
    126127
    127 #: ../admin/basic-info.php:36 ../features/login-widget/login-widget.php:75
     128#: ../admin/basic-info.php:36 ../features/login-widget/login-widget.php:59
    128129msgid "Login"
    129130msgstr ""
     
    384385#: ../modules/multiple-forms/register-forms.php:229
    385386#: ../modules/multiple-forms/register-forms.php:230
    386 #: ../modules/user-listing/userlisting.php:1150
     387#: ../modules/user-listing/userlisting.php:1157
    387388msgid "Yes"
    388389msgstr ""
     
    471472#: ../modules/user-listing/userlisting.php:94
    472473#: ../modules/user-listing/userlisting.php:516
    473 #: ../modules/user-listing/userlisting.php:1107
     474#: ../modules/user-listing/userlisting.php:1114
    474475msgid "Username"
    475476msgstr ""
    476477
    477 #: ../admin/general-settings.php:145 ../front-end/login.php:134
     478#: ../admin/general-settings.php:145 ../front-end/login.php:144
    478479#: ../modules/email-customizer/email-customizer.php:29
    479480#: ../modules/user-listing/userlisting.php:522
    480 #: ../modules/user-listing/userlisting.php:1108
     481#: ../modules/user-listing/userlisting.php:1115
    481482msgid "Email"
    482483msgstr ""
     
    738739msgstr ""
    739740
    740 #: ../admin/manage-fields.php:136
     741#: ../admin/manage-fields.php:136 ../modules/user-listing/userlisting.php:555
    741742msgid "Nickname"
    742743msgstr ""
     
    761762#: ../modules/user-listing/userlisting.php:103
    762763#: ../modules/user-listing/userlisting.php:537
    763 #: ../modules/user-listing/userlisting.php:1109
     764#: ../modules/user-listing/userlisting.php:1116
    764765msgid "Website"
    765766msgstr ""
     
    783784#: ../admin/manage-fields.php:150 ../modules/user-listing/userlisting.php:106
    784785#: ../modules/user-listing/userlisting.php:540
    785 #: ../modules/user-listing/userlisting.php:1110
     786#: ../modules/user-listing/userlisting.php:1117
    786787msgid "Biographical Info"
    787788msgstr ""
     
    810811msgstr ""
    811812
    812 #: ../admin/manage-fields.php:279 ../admin/manage-fields.php:406
     813#: ../admin/manage-fields.php:308 ../admin/manage-fields.php:444
    813814msgid "You must select a field\n"
    814815msgstr ""
    815816
    816 #: ../admin/manage-fields.php:289
     817#: ../admin/manage-fields.php:318
    817818msgid ""
    818819"Please choose a different field type as this one already exists in your form "
     
    820821msgstr ""
    821822
    822 #: ../admin/manage-fields.php:300
     823#: ../admin/manage-fields.php:329
    823824msgid "The entered avatar size is not between 20 and 200\n"
    824825msgstr ""
    825826
    826 #: ../admin/manage-fields.php:303
     827#: ../admin/manage-fields.php:332
    827828msgid "The entered avatar size is not numerical\n"
    828829msgstr ""
    829830
    830 #: ../admin/manage-fields.php:311
     831#: ../admin/manage-fields.php:340
    831832msgid "The entered row number is not numerical\n"
    832833msgstr ""
    833834
    834 #: ../admin/manage-fields.php:314
     835#: ../admin/manage-fields.php:343
    835836msgid "You must enter a value for the row number\n"
    836837msgstr ""
    837838
    838 #: ../admin/manage-fields.php:322
     839#: ../admin/manage-fields.php:351
    839840msgid "You must enter the public key\n"
    840841msgstr ""
    841842
    842 #: ../admin/manage-fields.php:324
     843#: ../admin/manage-fields.php:353
    843844msgid "You must enter the private key\n"
    844845msgstr ""
    845846
    846 #: ../admin/manage-fields.php:332
     847#: ../admin/manage-fields.php:361
    847848msgid "The entered value for the Datepicker is not a valid date-format\n"
    848849msgstr ""
    849850
    850 #: ../admin/manage-fields.php:335
     851#: ../admin/manage-fields.php:364
    851852msgid "You must enter a value for the date-format\n"
    852853msgstr ""
    853854
    854 #: ../admin/manage-fields.php:356 ../admin/manage-fields.php:364
    855 #: ../admin/manage-fields.php:374
     855#: ../admin/manage-fields.php:380
     856msgid "The meta-name cannot be empty\n"
     857msgstr ""
     858
     859#: ../admin/manage-fields.php:392 ../admin/manage-fields.php:400
     860#: ../admin/manage-fields.php:410
    856861msgid "That meta-name is already in use\n"
    857862msgstr ""
    858863
    859 #: ../admin/manage-fields.php:396
     864#: ../admin/manage-fields.php:432
    860865#, php-format
    861866msgid ""
     
    864869msgstr ""
    865870
    866 #: ../admin/manage-fields.php:400
     871#: ../admin/manage-fields.php:436
    867872#, php-format
    868873msgid ""
     
    870875msgstr ""
    871876
    872 #: ../admin/manage-fields.php:413
     877#: ../admin/manage-fields.php:451
    873878msgid "That field is already added in this form\n"
    874879msgstr ""
    875880
    876 #: ../admin/manage-fields.php:462
     881#: ../admin/manage-fields.php:500
    877882msgid ""
    878883"<pre>Title</pre><pre>Type</pre><pre>Meta Name</pre><pre class=\"wppb-mb-head-"
     
    880885msgstr ""
    881886
    882 #: ../admin/manage-fields.php:462
    883 #: ../assets/lib/wck-api/wordpress-creation-kit.php:416
     887#: ../admin/manage-fields.php:500
     888#: ../assets/lib/wck-api/wordpress-creation-kit.php:415
     889#: ../assets/lib/wck-api/wordpress-creation-kit.php:501
     890#: ../features/functions.php:590 ../features/functions.php:597
     891#: ../modules/multiple-forms/multiple-forms.php:407
     892msgid "Edit"
     893msgstr ""
     894
     895#: ../admin/manage-fields.php:500
     896#: ../assets/lib/wck-api/wordpress-creation-kit.php:415
    884897#: ../assets/lib/wck-api/wordpress-creation-kit.php:502
    885 #: ../features/functions.php:590 ../features/functions.php:597
    886 #: ../modules/multiple-forms/edit-profile-forms.php:267
    887 msgid "Edit"
    888 msgstr ""
    889 
    890 #: ../admin/manage-fields.php:462
    891 #: ../assets/lib/wck-api/wordpress-creation-kit.php:416
    892 #: ../assets/lib/wck-api/wordpress-creation-kit.php:503
    893898#: ../features/admin-approval/class-admin-approval.php:124
    894899#: ../features/admin-approval/class-admin-approval.php:235
     
    896901#: ../features/email-confirmation/class-email-confirmation.php:202
    897902#: ../features/functions.php:583 ../features/functions.php:597
    898 #: ../modules/multiple-forms/edit-profile-forms.php:267
    899903msgid "Delete"
    900904msgstr ""
    901905
    902 #: ../admin/manage-fields.php:477
     906#: ../admin/manage-fields.php:515
    903907msgid "Use these shortcodes on the pages you want the forms to be displayed:"
    904908msgstr ""
    905909
    906 #: ../admin/manage-fields.php:483
     910#: ../admin/manage-fields.php:521
    907911msgid ""
    908912"If you're interested in displaying different fields in the registration and "
     
    958962msgstr ""
    959963
    960 #: ../admin/register-version.php:216
     964#: ../admin/register-version.php:219
    961965#, php-format
    962966msgid ""
    963967"<p>Your <strong>Profile Builder</strong> serial number is invalid or "
    964 "missing. <br/>Please %1$sregister your copy%2$s of Profile Builder to "
    965 "receive access to automatic updates and support. Need a license key? "
    966 "%3$sPurchase one now%4$s</p>"
    967 msgstr ""
    968 
    969 #: ../admin/register-version.php:219
    970 #, php-format
    971 msgid ""
    972 "<p>Your <strong>Profile Builder</strong> licence has expired. <br/>Please "
    973 "%1$sRenew Your Licence%2$s to receive access to automatic updates and "
    974 "support. %3$sPurchase one now%4$s %5$sDismiss%6$s</p>"
    975 msgstr ""
    976 
    977 #: ../admin/register-version.php:224
    978 #, php-format
    979 msgid ""
    980 "<p>Your <strong>Profile Builder</strong> serial number is about to expire on "
    981 "%5$s. <br/>Please %1$sRenew Your Licence%2$s to receive access to automatic "
    982 "updates and support. %3$sPurchase one now%4$s</p>"
     968"missing. <br/>Please %1$sregister your copy%2$s to receive access to "
     969"automatic updates and support. Need a license key? %3$sPurchase one now%4$s</"
     970"p>"
     971msgstr ""
     972
     973#: ../admin/register-version.php:222
     974#, php-format
     975msgid ""
     976"<p>Your <strong>Profile Builder</strong> license has expired. <br/>Please "
     977"%1$sRenew Your Licence%2$s to continue receiving access to product "
     978"downloads, automatic updates and support. %3$sRenew now and get 50&#37; off "
     979"%4$s %5$sDismiss%6$s</p>"
     980msgstr ""
     981
     982#: ../admin/register-version.php:227
     983#, php-format
     984msgid ""
     985"<p>Your <strong>Profile Builder</strong> license is about to expire on %5$s. "
     986"<br/>Please %1$sRenew Your Licence%2$s to continue receiving access to "
     987"product downloads, automatic updates and support. %3$sRenew now and get "
     988"50&#37; off %4$s %6$sDismiss%7$s</p>"
    983989msgstr ""
    984990
     
    10041010msgstr ""
    10051011
    1006 #: ../assets/lib/wck-api/wordpress-creation-kit.php:416
     1012#: ../assets/lib/wck-api/wordpress-creation-kit.php:415
    10071013#: ../features/functions.php:597
    10081014msgid "Content"
    10091015msgstr ""
    10101016
     1017#: ../assets/lib/wck-api/wordpress-creation-kit.php:501
     1018msgid "Edit this item"
     1019msgstr ""
     1020
    10111021#: ../assets/lib/wck-api/wordpress-creation-kit.php:502
    1012 msgid "Edit this item"
    1013 msgstr ""
    1014 
    1015 #: ../assets/lib/wck-api/wordpress-creation-kit.php:503
    10161022msgid "Delete this item"
    10171023msgstr ""
    10181024
    1019 #: ../assets/lib/wck-api/wordpress-creation-kit.php:644
     1025#: ../assets/lib/wck-api/wordpress-creation-kit.php:643
    10201026msgid "Please enter a value for the required field "
    10211027msgstr ""
    10221028
    1023 #: ../assets/lib/wck-api/wordpress-creation-kit.php:1009
     1029#: ../assets/lib/wck-api/wordpress-creation-kit.php:1010
    10241030msgid "Select File"
    10251031msgstr ""
     
    11511157#: ../features/admin-approval/class-admin-approval.php:178
    11521158#: ../modules/user-listing/userlisting.php:528
    1153 #: ../modules/user-listing/userlisting.php:1112
     1159#: ../modules/user-listing/userlisting.php:1119
    11541160msgid "Firstname"
    11551161msgstr ""
     
    11571163#: ../features/admin-approval/class-admin-approval.php:179
    11581164#: ../modules/user-listing/userlisting.php:531
    1159 #: ../modules/user-listing/userlisting.php:1113
     1165#: ../modules/user-listing/userlisting.php:1120
    11601166msgid "Lastname"
    11611167msgstr ""
     
    13231329msgstr ""
    13241330
    1325 #: ../features/email-confirmation/email-confirmation.php:387
    1326 #: ../front-end/register.php:67
     1331#: ../features/email-confirmation/email-confirmation.php:388
     1332#: ../front-end/register.php:68
    13271333msgid "Could not create user!"
    13281334msgstr ""
    13291335
    1330 #: ../features/email-confirmation/email-confirmation.php:390
     1336#: ../features/email-confirmation/email-confirmation.php:391
    13311337msgid "That username is already activated!"
    13321338msgstr ""
    13331339
    1334 #: ../features/email-confirmation/email-confirmation.php:410
     1340#: ../features/email-confirmation/email-confirmation.php:420
    13351341msgid "There was an error while trying to activate the user"
    13361342msgstr ""
    13371343
    1338 #: ../features/email-confirmation/email-confirmation.php:448
     1344#: ../features/email-confirmation/email-confirmation.php:458
    13391345#: ../modules/email-customizer/admin-email-customizer.php:73
    13401346msgid "A new subscriber has (been) registered!"
    13411347msgstr ""
    13421348
    1343 #: ../features/email-confirmation/email-confirmation.php:451
     1349#: ../features/email-confirmation/email-confirmation.php:461
    13441350#, php-format
    13451351msgid "New subscriber on %1$s.<br/><br/>Username:%2$s<br/>E-mail:%3$s<br/>"
    13461352msgstr ""
    13471353
    1348 #: ../features/email-confirmation/email-confirmation.php:456
     1354#: ../features/email-confirmation/email-confirmation.php:466
    13491355msgid ""
    13501356"The \"Admin Approval\" feature was activated at the time of registration, so "
     
    13521358msgstr ""
    13531359
    1354 #: ../features/email-confirmation/email-confirmation.php:471
     1360#: ../features/email-confirmation/email-confirmation.php:481
    13551361#, php-format
    13561362msgid "[%1$s] Your new account information"
    13571363msgstr ""
    13581364
    1359 #: ../features/email-confirmation/email-confirmation.php:474
     1365#: ../features/email-confirmation/email-confirmation.php:484
    13601366#, php-format
    13611367msgid "Welcome to %1$s!<br/><br/><br/>Your username is:%2$s and password:%3$s"
    13621368msgstr ""
    13631369
    1364 #: ../features/email-confirmation/email-confirmation.php:479
    1365 #: ../front-end/register.php:93
     1370#: ../features/email-confirmation/email-confirmation.php:489
     1371#: ../front-end/register.php:103
    13661372msgid ""
    13671373"Before you can access your account, an administrator needs to approve it. "
     
    13931399msgstr ""
    13941400
     1401#: ../features/functions.php:556
     1402msgid "This field is required"
     1403msgstr ""
     1404
    13951405#: ../features/functions.php:576
    13961406msgid "Cancel"
    13971407msgstr ""
    13981408
     1409#: ../features/functions.php:607
     1410#, php-format
     1411msgid ""
     1412"To allow users to register for your website via Profile Builder, you first "
     1413"must enable user registration. Go to %1$sSettings -> General%2$s tab, and "
     1414"under Membership make sure to check “Anyone can register”. %3$sDismiss%4$s"
     1415msgstr ""
     1416
    13991417#: ../features/login-widget/login-widget.php:10
    14001418msgid "This login widget lets you add a login form in the sidebar."
     
    14051423msgstr ""
    14061424
    1407 #: ../features/login-widget/login-widget.php:40
    1408 #: ../front-end/class-formbuilder.php:274
    1409 msgid "Register"
    1410 msgstr ""
    1411 
    1412 #: ../features/login-widget/login-widget.php:41
    1413 msgid "Don't have an account?"
    1414 msgstr ""
    1415 
    1416 #: ../features/login-widget/login-widget.php:46
    1417 msgid "Lost Password"
    1418 msgstr ""
    1419 
    1420 #: ../features/login-widget/login-widget.php:46
    1421 msgid "Lost Your Password?"
    1422 msgstr ""
    1423 
    1424 #: ../features/login-widget/login-widget.php:79
     1425#: ../features/login-widget/login-widget.php:63
    14251426msgid "Title:"
    14261427msgstr ""
    14271428
    1428 #: ../features/login-widget/login-widget.php:84
     1429#: ../features/login-widget/login-widget.php:68
    14291430msgid "After login redirect URL (optional):"
    14301431msgstr ""
    14311432
    1432 #: ../features/login-widget/login-widget.php:89
     1433#: ../features/login-widget/login-widget.php:73
    14331434msgid "Register page URL (optional):"
    14341435msgstr ""
    14351436
    1436 #: ../features/login-widget/login-widget.php:94
     1437#: ../features/login-widget/login-widget.php:78
    14371438msgid "Password Recovery page URL (optional):"
    14381439msgstr ""
     
    15151516#: ../front-end/class-formbuilder.php:274
    15161517msgid "Add User"
     1518msgstr ""
     1519
     1520#: ../front-end/class-formbuilder.php:274 ../front-end/login.php:172
     1521msgid "Register"
    15171522msgstr ""
    15181523
     
    16891694msgstr ""
    16901695
    1691 #: ../front-end/extra-fields/extra-fields.php:94 ../front-end/login.php:63
    1692 #: ../front-end/login.php:70 ../front-end/login.php:80
     1696#: ../front-end/extra-fields/extra-fields.php:94 ../front-end/login.php:72
     1697#: ../front-end/login.php:79 ../front-end/login.php:89
    16931698#: ../front-end/recover.php:17 ../front-end/recover.php:206
    16941699msgid "ERROR"
     
    17781783msgstr ""
    17791784
    1780 #: ../front-end/login.php:63
     1785#: ../front-end/login.php:72
    17811786msgid "The password you entered is incorrect."
    17821787msgstr ""
    17831788
    1784 #: ../front-end/login.php:64 ../front-end/login.php:71
     1789#: ../front-end/login.php:73 ../front-end/login.php:80
    17851790msgid "Password Lost and Found."
    17861791msgstr ""
    17871792
    1788 #: ../front-end/login.php:64 ../front-end/login.php:71
     1793#: ../front-end/login.php:73 ../front-end/login.php:80
    17891794msgid "Lost your password"
    17901795msgstr ""
    17911796
    1792 #: ../front-end/login.php:70
     1797#: ../front-end/login.php:79
    17931798msgid "Invalid username."
    17941799msgstr ""
    17951800
    1796 #: ../front-end/login.php:75
     1801#: ../front-end/login.php:84
    17971802msgid "username"
    17981803msgstr ""
    17991804
    1800 #: ../front-end/login.php:75
     1805#: ../front-end/login.php:84
    18011806msgid "email"
    18021807msgstr ""
    18031808
    1804 #: ../front-end/login.php:80
     1809#: ../front-end/login.php:89
    18051810msgid "Both fields are empty."
    18061811msgstr ""
    18071812
    1808 #: ../front-end/login.php:173
     1813#: ../front-end/login.php:178
     1814msgid "Lost your password?"
     1815msgstr ""
     1816
     1817#: ../front-end/login.php:199
    18091818#, php-format
    18101819msgid "You are currently logged in as %1$s. %2$s"
    18111820msgstr ""
    18121821
    1813 #: ../front-end/login.php:173
     1822#: ../front-end/login.php:199
    18141823msgid "Log out of this account"
    18151824msgstr ""
    18161825
    1817 #: ../front-end/login.php:173
     1826#: ../front-end/login.php:199
    18181827msgid "Log out"
    18191828msgstr ""
     
    19241933msgstr ""
    19251934
    1926 #: ../front-end/register.php:70
     1935#: ../front-end/register.php:71
    19271936msgid "This username is already activated!"
    19281937msgstr ""
    19291938
    1930 #: ../front-end/register.php:92
     1939#: ../front-end/register.php:102
    19311940msgid "Your email was successfully confirmed."
    19321941msgstr ""
    19331942
    1934 #: ../front-end/register.php:102
     1943#: ../front-end/register.php:112
    19351944msgid "There was an error while trying to activate the user."
    19361945msgstr ""
    19371946
    1938 #: ../index.php:159
    1939 #, php-format
    1940 msgid ""
    1941 "<p style=\"position:relative;\">Halloween treat: 30&#37; OFF on all Profile "
    1942 "Builder purchases 29 - 30 -31 October over at %1$swww.cozmslabs.com%2$s Get "
    1943 "your discount code! %3$sDismiss%4$s</p>"
    1944 msgstr ""
    1945 
    1946 #: ../modules/class-mustache-templates/class-mustache-templates.php:239
     1947#: ../index.php:34
     1948msgid ""
     1949" is also activated. You need to deactivate it before activating this version "
     1950"of the plugin."
     1951msgstr ""
     1952
     1953#: ../modules/class-mustache-templates/class-mustache-templates.php:242
    19471954msgid "Save"
    19481955msgstr ""
     
    20492056
    20502057#: ../modules/email-customizer/admin-email-customizer.php:38
    2051 #: ../modules/email-customizer/user-email-customizer.php:38
    20522058msgid ""
    20532059"These settings are also replicated in the \"User Email Customizer\" settings-"
    20542060"page upon save."
     2061msgstr ""
     2062
     2063#: ../modules/email-customizer/admin-email-customizer.php:38
     2064#: ../modules/email-customizer/user-email-customizer.php:38
     2065msgid "Valid tags {{reply_to}} and {{site_name}}"
    20552066msgstr ""
    20562067
     
    20632074#: ../modules/email-customizer/user-email-customizer.php:49
    20642075msgid "From (reply-to email)"
     2076msgstr ""
     2077
     2078#: ../modules/email-customizer/admin-email-customizer.php:54
     2079#: ../modules/email-customizer/user-email-customizer.php:54
     2080msgid ""
     2081"Must be a valid email address or the tag {{reply_to}} which defaults to the "
     2082"administrator email"
    20652083msgstr ""
    20662084
     
    21452163msgstr ""
    21462164
     2165#: ../modules/email-customizer/email-customizer.php:265
     2166#: ../modules/email-customizer/email-customizer.php:272
     2167msgid "Your selected password at signup"
     2168msgstr ""
     2169
    21472170#: ../modules/email-customizer/user-email-customizer.php:11
    21482171#: ../modules/email-customizer/user-email-customizer.php:12
    21492172#: ../modules/modules.php:125
    21502173msgid "User Email Customizer"
     2174msgstr ""
     2175
     2176#: ../modules/email-customizer/user-email-customizer.php:38
     2177msgid ""
     2178"These settings are also replicated in the \"Admin Email Customizer\" "
     2179"settings-page upon save."
    21512180msgstr ""
    21522181
     
    22872316#: ../modules/multiple-forms/edit-profile-forms.php:135
    22882317#: ../modules/multiple-forms/register-forms.php:138
    2289 #: ../modules/user-listing/userlisting.php:1022
     2318#: ../modules/user-listing/userlisting.php:1029
    22902319msgid "Shortcode"
    22912320msgstr ""
     
    22932322#: ../modules/multiple-forms/edit-profile-forms.php:155
    22942323#: ../modules/multiple-forms/register-forms.php:159
    2295 #: ../modules/user-listing/userlisting.php:1043
     2324#: ../modules/user-listing/userlisting.php:1050
    22962325msgid "(no title)"
    22972326msgstr ""
     
    22992328#: ../modules/multiple-forms/edit-profile-forms.php:175
    23002329#: ../modules/multiple-forms/register-forms.php:178
    2301 #: ../modules/user-listing/userlisting.php:1063
     2330#: ../modules/user-listing/userlisting.php:1070
    23022331msgid "The shortcode will be available after you publish this form."
    23032332msgstr ""
     
    23052334#: ../modules/multiple-forms/edit-profile-forms.php:177
    23062335#: ../modules/multiple-forms/register-forms.php:180
    2307 #: ../modules/user-listing/userlisting.php:1065
     2336#: ../modules/user-listing/userlisting.php:1072
    23082337msgid "Use this shortcode on the page you want the form to be displayed:"
    23092338msgstr ""
     
    23112340#: ../modules/multiple-forms/edit-profile-forms.php:181
    23122341#: ../modules/multiple-forms/register-forms.php:184
    2313 #: ../modules/user-listing/userlisting.php:1069
     2342#: ../modules/user-listing/userlisting.php:1076
    23142343msgid ""
    23152344"<span style=\"color:red;\">Note:</span> changing the form title also changes "
     
    23192348#: ../modules/multiple-forms/edit-profile-forms.php:187
    23202349#: ../modules/multiple-forms/register-forms.php:190
    2321 #: ../modules/user-listing/userlisting.php:1083
     2350#: ../modules/user-listing/userlisting.php:1090
    23222351msgid "Form Shortcode"
    23232352msgstr ""
     
    23582387msgstr ""
    23592388
    2360 #: ../modules/multiple-forms/edit-profile-forms.php:267
    2361 msgid "<pre>Title (Type)</pre>"
     2389#: ../modules/multiple-forms/edit-profile-forms.php:272
     2390msgid "This form is empty."
    23622391msgstr ""
    23632392
    23642393#: ../modules/multiple-forms/multiple-forms.php:233
    23652394msgid "You need to specify the title of the form before creating it"
     2395msgstr ""
     2396
     2397#: ../modules/multiple-forms/multiple-forms.php:407
     2398msgid "<pre>Title (Type)</pre>"
     2399msgstr ""
     2400
     2401#: ../modules/multiple-forms/multiple-forms.php:407
     2402msgid "Delete all items"
     2403msgstr ""
     2404
     2405#: ../modules/multiple-forms/multiple-forms.php:407
     2406msgid "Delete all"
    23662407msgstr ""
    23672408
     
    24442485msgstr ""
    24452486
    2446 #: ../modules/user-listing/class-userlisting.php:454
    2447 #: ../modules/user-listing/userlisting.php:621
    2448 #: ../modules/user-listing/userlisting.php:835
    2449 #: ../modules/user-listing/userlisting.php:878
    2450 #: ../modules/user-listing/userlisting.php:1202
     2487#: ../modules/user-listing/class-userlisting.php:458
     2488#: ../modules/user-listing/userlisting.php:624
     2489#: ../modules/user-listing/userlisting.php:842
     2490#: ../modules/user-listing/userlisting.php:885
     2491#: ../modules/user-listing/userlisting.php:1209
    24512492msgid "Search Users by All Fields"
    24522493msgstr ""
     
    24892530
    24902531#: ../modules/user-listing/userlisting.php:118
    2491 #: ../modules/user-listing/userlisting.php:1111
     2532#: ../modules/user-listing/userlisting.php:1118
    24922533msgid "Registration Date"
    24932534msgstr ""
    24942535
    24952536#: ../modules/user-listing/userlisting.php:119
    2496 #: ../modules/user-listing/userlisting.php:1115
     2537#: ../modules/user-listing/userlisting.php:1122
    24972538msgid "Number of Posts"
    24982539msgstr ""
     
    25602601
    25612602#: ../modules/user-listing/userlisting.php:534
    2562 #: ../modules/user-listing/userlisting.php:1114
     2603#: ../modules/user-listing/userlisting.php:1121
    25632604msgid "Display Name"
    25642605msgstr ""
     
    25692610
    25702611#: ../modules/user-listing/userlisting.php:546
    2571 #: ../modules/user-listing/userlisting.php:1119
     2612#: ../modules/user-listing/userlisting.php:1126
    25722613msgid "Aim"
    25732614msgstr ""
    25742615
    25752616#: ../modules/user-listing/userlisting.php:549
    2576 #: ../modules/user-listing/userlisting.php:1120
     2617#: ../modules/user-listing/userlisting.php:1127
    25772618msgid "Yim"
    25782619msgstr ""
    25792620
    25802621#: ../modules/user-listing/userlisting.php:552
    2581 #: ../modules/user-listing/userlisting.php:1121
     2622#: ../modules/user-listing/userlisting.php:1128
    25822623msgid "Jabber"
    25832624msgstr ""
    25842625
    2585 #: ../modules/user-listing/userlisting.php:698
     2626#: ../modules/user-listing/userlisting.php:701
    25862627msgid "Click here to see more information about this user"
    25872628msgstr ""
    25882629
    2589 #: ../modules/user-listing/userlisting.php:698
     2630#: ../modules/user-listing/userlisting.php:701
    25902631msgid "More..."
    25912632msgstr ""
    25922633
    2593 #: ../modules/user-listing/userlisting.php:701
     2634#: ../modules/user-listing/userlisting.php:704
    25942635msgid "Click here to see more information about this user."
    25952636msgstr ""
    25962637
    2597 #: ../modules/user-listing/userlisting.php:789
    2598 #: ../modules/user-listing/userlisting.php:792
     2638#: ../modules/user-listing/userlisting.php:796
     2639#: ../modules/user-listing/userlisting.php:799
    25992640msgid "Click here to go back"
    26002641msgstr ""
    26012642
    2602 #: ../modules/user-listing/userlisting.php:789
     2643#: ../modules/user-listing/userlisting.php:796
    26032644msgid "Back"
    26042645msgstr ""
    26052646
    2606 #: ../modules/user-listing/userlisting.php:822
     2647#: ../modules/user-listing/userlisting.php:829
    26072648msgid "&laquo;&laquo; First"
    26082649msgstr ""
    26092650
    2610 #: ../modules/user-listing/userlisting.php:823
     2651#: ../modules/user-listing/userlisting.php:830
    26112652msgid "&laquo; Prev"
    26122653msgstr ""
    26132654
    2614 #: ../modules/user-listing/userlisting.php:824
     2655#: ../modules/user-listing/userlisting.php:831
    26152656msgid "Next &raquo; "
    26162657msgstr ""
    26172658
    2618 #: ../modules/user-listing/userlisting.php:825
     2659#: ../modules/user-listing/userlisting.php:832
    26192660msgid "Last &raquo;&raquo;"
    26202661msgstr ""
    26212662
    2622 #: ../modules/user-listing/userlisting.php:854
     2663#: ../modules/user-listing/userlisting.php:861
    26232664msgid "You don't have any pagination settings on this userlisting!"
    26242665msgstr ""
    26252666
    2626 #: ../modules/user-listing/userlisting.php:895
     2667#: ../modules/user-listing/userlisting.php:902
    26272668msgid "Search"
    26282669msgstr ""
    26292670
    2630 #: ../modules/user-listing/userlisting.php:896
     2671#: ../modules/user-listing/userlisting.php:903
    26312672msgid "Clear Results"
    26322673msgstr ""
    26332674
    2634 #: ../modules/user-listing/userlisting.php:1072
     2675#: ../modules/user-listing/userlisting.php:1079
    26352676msgid "Extra shortcode parameters"
    26362677msgstr ""
    26372678
    2638 #: ../modules/user-listing/userlisting.php:1074
     2679#: ../modules/user-listing/userlisting.php:1081
    26392680msgid ""
    26402681"displays users having a certain meta-value within a certain (extra) meta-"
     
    26422683msgstr ""
    26432684
    2644 #: ../modules/user-listing/userlisting.php:1075
     2685#: ../modules/user-listing/userlisting.php:1082
    26452686msgid "Example:"
    26462687msgstr ""
    26472688
    2648 #: ../modules/user-listing/userlisting.php:1077
     2689#: ../modules/user-listing/userlisting.php:1084
    26492690msgid ""
    26502691"Remember though, that the field-value combination must exist in the database."
    26512692msgstr ""
    26522693
    2653 #: ../modules/user-listing/userlisting.php:1131
     2694#: ../modules/user-listing/userlisting.php:1138
    26542695msgid "Random (very slow on large databases > 10K user)"
    26552696msgstr ""
    26562697
    2657 #: ../modules/user-listing/userlisting.php:1144
     2698#: ../modules/user-listing/userlisting.php:1151
    26582699msgid "Roles to Display"
    26592700msgstr ""
    26602701
    2661 #: ../modules/user-listing/userlisting.php:1144
     2702#: ../modules/user-listing/userlisting.php:1151
    26622703msgid ""
    26632704"Restrict the userlisting to these selected roles only<br/>If not specified, "
     
    26652706msgstr ""
    26662707
    2667 #: ../modules/user-listing/userlisting.php:1145
     2708#: ../modules/user-listing/userlisting.php:1152
    26682709msgid "Number of Users/Page"
    26692710msgstr ""
    26702711
    2671 #: ../modules/user-listing/userlisting.php:1145
     2712#: ../modules/user-listing/userlisting.php:1152
    26722713msgid ""
    26732714"Set the number of users to be displayed on every paginated part of the all-"
     
    26752716msgstr ""
    26762717
    2677 #: ../modules/user-listing/userlisting.php:1146
     2718#: ../modules/user-listing/userlisting.php:1153
    26782719msgid "Default Sorting Criteria"
    26792720msgstr ""
    26802721
    2681 #: ../modules/user-listing/userlisting.php:1146
     2722#: ../modules/user-listing/userlisting.php:1153
    26822723msgid ""
    26832724"Set the default sorting criteria<br/>This can temporarily be changed for "
     
    26852726msgstr ""
    26862727
    2687 #: ../modules/user-listing/userlisting.php:1147
     2728#: ../modules/user-listing/userlisting.php:1154
    26882729msgid "Default Sorting Order"
    26892730msgstr ""
    26902731
    2691 #: ../modules/user-listing/userlisting.php:1147
     2732#: ../modules/user-listing/userlisting.php:1154
    26922733msgid ""
    26932734"Set the default sorting order<br/>This can temporarily be changed for each "
     
    26952736msgstr ""
    26962737
    2697 #: ../modules/user-listing/userlisting.php:1148
     2738#: ../modules/user-listing/userlisting.php:1155
    26982739msgid "Avatar Size (All-userlisting)"
    26992740msgstr ""
    27002741
    2701 #: ../modules/user-listing/userlisting.php:1148
     2742#: ../modules/user-listing/userlisting.php:1155
    27022743msgid "Set the avatar size on the all-userlisting only"
    27032744msgstr ""
    27042745
    2705 #: ../modules/user-listing/userlisting.php:1149
     2746#: ../modules/user-listing/userlisting.php:1156
    27062747msgid "Avatar Size (Single-userlisting)"
    27072748msgstr ""
    27082749
    2709 #: ../modules/user-listing/userlisting.php:1149
     2750#: ../modules/user-listing/userlisting.php:1156
    27102751msgid "Set the avatar size on the single-userlisting only"
    27112752msgstr ""
    27122753
    2713 #: ../modules/user-listing/userlisting.php:1150
     2754#: ../modules/user-listing/userlisting.php:1157
    27142755msgid "Visible only to logged in users?"
    27152756msgstr ""
    27162757
    2717 #: ../modules/user-listing/userlisting.php:1150
     2758#: ../modules/user-listing/userlisting.php:1157
    27182759msgid "The userlisting will only be visible only to the logged in users"
    27192760msgstr ""
    27202761
    2721 #: ../modules/user-listing/userlisting.php:1151
     2762#: ../modules/user-listing/userlisting.php:1158
    27222763msgid "Visible to following Roles"
    27232764msgstr ""
    27242765
    2725 #: ../modules/user-listing/userlisting.php:1151
     2766#: ../modules/user-listing/userlisting.php:1158
    27262767msgid "The userlisting will only be visible to the following roles"
    27272768msgstr ""
    27282769
    2729 #: ../modules/user-listing/userlisting.php:1157
     2770#: ../modules/user-listing/userlisting.php:1164
    27302771msgid "Userlisting Settings"
    27312772msgstr ""
    27322773
    2733 #: ../modules/user-listing/userlisting.php:1178
     2774#: ../modules/user-listing/userlisting.php:1185
    27342775msgid ""
    27352776"You need to activate the Userlisting feature from within the \"Modules\" tab!"
    27362777msgstr ""
    27372778
    2738 #: ../modules/user-listing/userlisting.php:1178
     2779#: ../modules/user-listing/userlisting.php:1185
    27392780msgid "You can find it in the Profile Builder menu."
    27402781msgstr ""
    27412782
    2742 #: ../modules/user-listing/userlisting.php:1328
     2783#: ../modules/user-listing/userlisting.php:1335
    27432784msgid "No results found!"
    27442785msgstr ""
Note: See TracChangeset for help on using the changeset viewer.