Plugin Directory

Changeset 1516401


Ignore:
Timestamp:
10/17/2016 09:34:14 AM (9 years ago)
Author:
indoonaopenplatform
Message:

bug fixes; version up to 0.9.1

Location:
indoona-schools-forms/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • indoona-schools-forms/trunk/function/callback_endpoint.php

    r1504331 r1516401  
    5050        } else if ( $parameters[0] == '/pin' ) {
    5151            if ( !$parameters[1] || !$parameters[2] ) {
    52                 indoona_tp_message_send( $user_id, $user_id, __( 'Pin error', 'indoona-schools-forms').PHP_EOL.__( 'Use the format /pin newpin newpin', 'indoona-schools-forms'), true, false, 101 );
     52                indoona_tp_message_send( $user_id, $user_id, __( 'Pin error', 'indoona-schools-forms').PHP_EOL.__( 'Use the format: /pin newpin newpin', 'indoona-schools-forms'), true, false, 101 );
    5353            } else if ( $parameters[1] == $parameters[2] ) {
    5454              if ( strlen($parameters[1]) == 4 && is_numeric($parameters[1]) ) {
     
    6767              }
    6868            } else {
    69                 indoona_tp_message_send( $user_id, $user_id, __( 'New pin doesn\'t match', 'indoona-schools-forms').PHP_EOL.__( 'Use the format /pin newpin newpin', 'indoona-schools-forms'), true, false, 101 );
     69                indoona_tp_message_send( $user_id, $user_id, __( 'New pin doesn\'t match', 'indoona-schools-forms').PHP_EOL.__( 'Use the format: /pin newpin newpin', 'indoona-schools-forms'), true, false, 101 );
    7070            }
    7171        } else {
     
    100100
    101101                indoona_tp_message_send( $user_id, $user_id, $message, true, false, 101 );
    102                 indoona_tp_message_send( $user_id, $user_id, __('Type the number of the form you want to submit', 'indoona-schools-forms'), false, false, 101 );
     102                indoona_tp_message_send( $user_id, $user_id, __('Type the form number you want to submit', 'indoona-schools-forms'), false, false, 101 );
    103103
    104104                $form_id = indoona_msc_create_form( $user_id );
     
    145145                        } else {
    146146                            indoona_tp_message_send( $user_id, $user_id,
    147                                                     __('The date must be future!', 'indoona-schools-forms'), false, false, 101 );
     147                                                    __('The date must be in the future!', 'indoona-schools-forms'), false, false, 101 );
    148148                        }
    149149                    } else if ( $input != __('new', 'indoona-schools-forms') ) {
  • indoona-schools-forms/trunk/function/subscribers_bulk_actions.php

    r1504331 r1516401  
    1313            foreach( $_GET['subscriber'] as $subscriber ) {
    1414                indoona_msc_personale_remove( $subscriber );
    15                 indoona_tp_message_send( $subscriber, $subscriber, __( 'You have been disabled to this service', 'indoona-schools-forms'), true, false, 101 );
     15                indoona_tp_message_send( $subscriber, $subscriber, __( 'You have been disabled from using this service', 'indoona-schools-forms'), true, false, 101 );
    1616            }
    1717        }
     
    3838    }
    3939
    40     function indoona_msc_personale_contact_add( $id ) {
     40    function indoona_msc_personale_contact_add( $id,  $retry = false ) {
     41   
    4142        $sdk = new Indoona\OpenSDK();
    4243        $apiProvider = $sdk->getApiProvider();
     
    6364            if ( $code == 401 && !$retry ) {
    6465                indoona_tp_token( true ); //Refresh the app-token
    65                     $apiProvider->invokeContactAddApiWithAppAccessToken(
    66                     $appToken,
    67                     $id,
    68                     $contact
    69                 );
     66                indoona_msc_personale_contact_add( $id, true );
    7067            }
    7168        }
  • indoona-schools-forms/trunk/indoona-schools-forms.php

    r1504378 r1516401  
    33Plugin Name:  indoona schools forms
    44Plugin URI:  https://wordpress.org/plugins/indoona-schools-forms
    5 Description: indoona plugin for send and manage school forms
    6 Version:      0.9.0
     5Description: indoona plugin for sending and managing school forms
     6Version:      0.9.1
    77Author:       Tiscali Italia S.p.A.
    88Author URI:  http://www.tiscali.it/
  • indoona-schools-forms/trunk/menu/personale.php

    r1504331 r1516401  
    1313
    1414        indoona_msc_personale_remove( $_GET['remove'] );
    15         indoona_tp_message_send( $_GET['remove'], $_GET['remove'], __( 'You have been disabled to this service', 'indoona-schools-forms'), true, false, 101 );
     15        indoona_tp_message_send( $_GET['remove'], $_GET['remove'], __( 'You have been disabled from using this service', 'indoona-schools-forms'), true, false, 101 );
    1616
    1717    } else if ( isset($_GET['restore']) ) {
  • indoona-schools-forms/trunk/menu/settings.php

    r1504331 r1516401  
    6161                    <?php indoona_msc_forms_array_set_default(); ?>
    6262                    <textarea id="forms" rows="4" columns="55" class="widefat" name="wp_indoona_msc[forms]"><?php echo indoona_msc_option('forms'); ?></textarea>
    63                     <br><small><?php _e( 'List of form subjects (one per line) which your school allows to create via chat', 'indoona-schools-forms'); ?><br><?php _e( 'Every form follows the same chat pattern (subject + start day + days number + details)', 'indoona-schools-forms'); ?></small>
     63                    <br><small><?php _e( 'List of form subjects (one per line) that your school allows to create via chat', 'indoona-schools-forms'); ?><br><?php _e( 'Every form follows the same chat pattern (subject + start day + number of days + details)', 'indoona-schools-forms'); ?></small>
    6464                </td>
    6565            </tr>
  • indoona-schools-forms/trunk/readme.txt

    r1508071 r1516401  
    11=== indoona schools ===
    22Contributors: indoonaopenplatform
    3 Version: 0.9.0
     3Version: 0.9.1
    44Stable tag: trunk
    55Tags: indoona, tiscali, chat, smartphone, school, form
     
    3131
    3232== Changelog ==
     33
     34= 0.9.1 17/10/2016 =
     35* bugfixes
     36
Note: See TracChangeset for help on using the changeset viewer.