Plugin Directory

Changeset 1305360


Ignore:
Timestamp:
12/10/2015 02:33:30 PM (10 years ago)
Author:
kevin.gay
Message:

0.3

  • Setting page to easily enter your keys.
Location:
notification-push-parse
Files:
18 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • notification-push-parse/trunk/CurlParse.php

    r1305136 r1305360  
    22
    33/**
    4  * Created by PhpStorm.
    5  * User: thieg
     4 * User: Kévin Gay
    65 * Date: 10/12/2015
    76 * Time: 01:50
  • notification-push-parse/trunk/README.md

    r1305169 r1305360  
    55Requires at least: 4.0
    66Tested up to: 4.0
    7 Stable tag: 0.2.1
     7Stable tag: 0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 This plugin allows you to send Push Notifications directly from your WordPress site to your Parse.com account.
     11This plugin allows you to send Parse Push Notifications from your WordPress site to your Parse.com account.
    1212
    1313Description
    1414------------
    15 This plugin allows you to send notifications directly from your WordPress site to your Parse.com account to all devices
    16 that i've been registered in it.
    17 
     15This plugin allows you to send notifications directly from your WordPress site to your Parse.com account to all devices that i've been registered in it.
    1816Now, go to Installation section to find out how to install and use plugin.
    1917
     
    2422
    2523
    26 1. Upload `push_notifications_parse` to the `/wp-content/plugins/` directory
    27 2. Activate the plugin through the 'Plugins' menu in WordPress
    28 3. Edit the line "ParseClient::initialize( $app_id, $rest_key, $master_key );" with your correct key from your App in Parse.com
    29 4. Write
    30 5. Enjoy!
     24-1. Upload `push_notifications_parse` to the `/wp-content/plugins/` directory
     25-2. Activate the plugin through the 'Plugins' menu in WordPress
     26-3. Go to the Settings section and enter your correct keys of your App of Parse.com
     27-5. Write you text and click on Send Push!
     28-4. Enjoy!
    3129
    32 Troubleshooting
     30Troubleshooting 
    3331------------
    34 WARNING : It's at your own risk to do that because it cans create security issue
    35 Fatal error: Uncaught exception 'Parse\ParseException' with message 'SSL certificate problem: unable to get local issuer certificate'
    36 You will have to add a line at the parse-php-sdk-master\src\Parse\ParseClient.php file.
    37 Under this : $rest = curl_init(); }
    38 Add : curl_setopt($rest, CURLOPT_SSL_VERIFYPEER, false);
     32- WARNING : It's at your own risk to do that because it cans create security issue
     33- Fatal error: Uncaught exception 'Parse\ParseException' with message 'SSL certificate problem: unable to get local issuer certificate'
     34- You will have to add a line at the parse-php-sdk-master\src\Parse\ParseClient.php file.
     35- Under this : $rest = curl_init(); }
     36- Add : curl_setopt($rest, CURLOPT_SSL_VERIFYPEER, false);
    3937
    4038Changelog       
    4139------------
    4240
     41= 0.3 =
     42- Setting page to easily enter your keys.
     43
     44= 0.2.2 =
     45- Fixed "The plugin does not have a valid header"       
     46
    4347= 0.2.1 =
    44 - Fixed Readme Wordpress
     48- Fixed Readme Wordpress.
    4549
    4650= 0.2 =
  • notification-push-parse/trunk/push_notifications.php

    r1305211 r1305360  
    44Description: This plugin allows you to send Push Notifications directly from your WordPress site to your Parse.com account.
    55Author:  Kevin Gay
    6 Version: 0.2.2
     6Version: 0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545}
    4646
     47function setting_admin(){
     48    include ('options-general.php');
     49}
     50
    4751function push_notifications_admin_pages() {
    48     wp_enqueue_media();
    4952    $array = split('\\\\', dirname(__FILE__));
    5053    $folder = $array[count($array) - 1];
    51     add_menu_page( 'Push Notifications Parse', 'Parse Push Notifications', 'manage_options', 'push_notifications', 'push_notifications_options_page', plugins_url($folder . '/img/icon.png' ), 40 );
     54    add_menu_page( 'Send Push', 'Parse Push Notifications', 'manage_options', 'push_notifications', 'push_notifications', plugins_url($folder . '/img/icon.png' ), 40 );
     55    add_submenu_page( 'push_notifications', 'Settings', 'Settings', 'manage_options', $folder."/options-general.php", "");
    5256}
    53 
    5457/*----------------------------------*/
    5558/*----------------------------------*/
     
    6467    require('parse-php-sdk-master/autoload.php');
    6568
    66     $app_id     = "";
    67     $rest_key   = "";
    68     $master_key = "";
    69 
    70     ParseClient::initialize( $app_id, $rest_key, $master_key );
     69    ParseClient::initialize( get_option("AppRest"), get_option("RestKey"), get_option("MasterKey"));
    7170    $data = array("alert" => $message);
    7271
     
    7978    // Push to Query
    8079    $query = ParseInstallation::query();
    81     $query->containedIn("deviceType", ["ios", "android"]);;
     80    $query->containedIn("deviceType", ["ios", "android", "winrt", "winphone"]);;
    8281
    8382    ParsePush::send(array(
     
    127126        ?>
    128127                        <div>
    129                             <label><input class='pn_radio' type='radio' checked name='pn_push_type' value='default'><span class='overlay'></span></label>
    130                             <p><input type='text' name='pn_text'   placeholder='Text' /></p>
     128                            <p><input type='text' name='pn_text' placeholder='Notification Push Text' /></p>
    131129                        </div>
    132130                        <div>
    133                             <input type='submit' id="push_button" class='pn blue push_button' name='push_notifications_push_btn' value='Send' />
     131                            <input type='submit' id="push_button" class='pn blue push_button' name='push_notifications_push_btn' value='Send Push' />
    134132                        </div>
    135133            </form>
     
    141139/*----------------------------------*/
    142140
    143 function push_notifications_options_page() {
     141function push_notifications() {
    144142
    145143    echo"<center><div id='apns' class='apns_block' >
  • notification-push-parse/trunk/readme.txt

    r1305222 r1305360  
    44-Requires at least: 4.0     
    55-Tested up to: 4.0     
    6 -Stable tag: 0.2.2
     6-Stable tag: 0.3   
    77-License: GPLv2 or later       
    88-License URI: http://www.gnu.org/licenses/gpl-2.0.html     
    99       
    10 -This plugin allows you to send Push Notifications directly from your WordPress site to your Parse.com account.     
     10-This plugin allows you to send Parse Push Notifications from your WordPress site to your Parse.com account.
    1111   
    1212== Description ==       
    1313       
    14 - This plugin allows you to send notifications directly from your WordPress site to your Parse.com account to all devices that i've been registered in it.     
    15 - Now, go to Installation section to find out how to install and use plugin.       
     14This plugin allows you to send notifications directly from your WordPress site to your Parse.com account to all devices that i've been registered in it.       
     15Now, go to Installation section to find out how to install and use plugin.     
    1616       
    1717== Installation ==     
     
    2222-1. Upload `push_notifications_parse` to the `/wp-content/plugins/` directory       
    2323-2. Activate the plugin through the 'Plugins' menu in WordPress     
    24 -3. Add in your repository the Parse SDK from : https://github.com/parseplatform/parse-php-sdk     
    25 -4. Edit the 'require' in the function 'push_notifications_send($message)' to add the path of the autoload.php of the Parse.com SDK     
    26 -5. Edit the line "ParseClient::initialize( $app_id, $rest_key, $master_key );" with your correct key from your App in Parse.com       
    27 -6. Write       
    28 -7. Enjoy!     
     24-3. Go to the Settings section and enter your correct keys of your App of Parse.com
     25-5. In the main section enter your text and click on Send Push!
     26-4. Enjoy!     
    2927
    3028== Troubleshooting ==       
    3129- WARNING : It's at your own risk to do that because it cans create security issue
    32  Fatal error: Uncaught exception 'Parse\ParseException' with message 'SSL certificate problem: unable to get local issuer certificate'
    33  You will have to add a line at the parse-php-sdk-master\src\Parse\ParseClient.php file.
    34  Under this : $rest = curl_init(); }
    35  Add : curl_setopt($rest, CURLOPT_SSL_VERIFYPEER, false);
     30- Fatal error: Uncaught exception 'Parse\ParseException' with message 'SSL certificate problem: unable to get local issuer certificate'
     31- You will have to add a line at the parse-php-sdk-master\src\Parse\ParseClient.php file.
     32- Under this : $rest = curl_init(); }
     33- Add : curl_setopt($rest, CURLOPT_SSL_VERIFYPEER, false);
    3634
    3735== Changelog ==
     36
     37= 0.3 =
     38- Setting page to easily enter your keys.
    3839
    3940= 0.2.2 =
     
    5556
    5657https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QP6QETB77AUH2
     58
     59== GITHUB ==
     60
     61https://github.com/GayKevin/WordPress-Plugin-Notification-Push-Parse
Note: See TracChangeset for help on using the changeset viewer.