Plugin Directory

Changeset 3056023


Ignore:
Timestamp:
03/21/2024 10:43:15 AM (2 years ago)
Author:
eberwp
Message:

update new version 3.8

Location:
eber/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • eber/trunk/index.php

    r3039822 r3056023  
    55Description: Eber is a smart member system comes with comprehensive loyalty & rewards system, marketing and analytic tool.
    66Author: Eber
    7 Version: 3.7
     7Version: 3.8
    88Author URI: https://eber.co
    99License: GPLv2 or later
  • eber/trunk/init/frontend.php

    r3039822 r3056023  
    203203                {
    204204                    $birthday = $user_meta[$custom_field['birthday']][0];
    205                     $post_data['birth_year'] = substr($birthday,0,4);
    206                     $post_data['birth_month'] = substr($birthday,4,2);
    207                     $post_data['birth_day'] = substr($birthday,6,2);
     205                    if(strtotime($birthday))
     206                    {
     207                        $post_data['birth_year'] = date('Y',strtotime($birthday));
     208                        $post_data['birth_month'] = intval(date('m',strtotime($birthday)));
     209                        $post_data['birth_day'] = intval(date('d',strtotime($birthday)));
     210                    }
     211                    else
     212                    {
     213                        $post_data['birth_year'] = substr($birthday,0,4);
     214                        $post_data['birth_month'] = substr($birthday,4,2);
     215                        $post_data['birth_day'] = substr($birthday,6,2);
     216                    }
     217                   
    208218                }
    209219                   
     
    281291                {
    282292                    $birthday = $user_meta[$custom_field['birthday']][0];
    283                     $post_data['birth_year'] = substr($birthday,0,4);
    284                     $post_data['birth_month'] = substr($birthday,4,2);
    285                     $post_data['birth_day'] = substr($birthday,6,2);
     293                    if(strtotime($birthday))
     294                    {
     295                        $post_data['birth_year'] = date('Y',strtotime($birthday));
     296                        $post_data['birth_month'] = intval(date('m',strtotime($birthday)));
     297                        $post_data['birth_day'] = intval(date('d',strtotime($birthday)));
     298                    }
     299                    else
     300                    {
     301                        $post_data['birth_year'] = substr($birthday,0,4);
     302                        $post_data['birth_month'] = substr($birthday,4,2);
     303                        $post_data['birth_day'] = substr($birthday,6,2);
     304                    }
    286305                }
    287306                   
  • eber/trunk/readme.txt

    r3039822 r3056023  
    102102= 3.7 =
    103103support Meta Data for sync from Eber to WP
     104= 3.8 =
     105support Multi data type of birthday
    104106
    105107
Note: See TracChangeset for help on using the changeset viewer.