Changeset 1305360
- Timestamp:
- 12/10/2015 02:33:30 PM (10 years ago)
- Location:
- notification-push-parse
- Files:
-
- 18 added
- 2 deleted
- 4 edited
-
tags/0.3 (added)
-
tags/0.3/CurlParse.php (added)
-
tags/0.3/Licence.md (added)
-
tags/0.3/README.md (added)
-
tags/0.3/img (added)
-
tags/0.3/img/icon.png (added)
-
tags/0.3/img/logo.png (added)
-
tags/0.3/options-general.php (added)
-
tags/0.3/push_notifications.php (added)
-
tags/0.3/readme.txt (added)
-
tags/0.3/script.js (added)
-
tags/0.3/styles (added)
-
tags/0.3/styles/images (added)
-
tags/0.3/styles/images/icon-sprite.png (added)
-
tags/0.3/styles/images/icon-sprite@2x.png (added)
-
tags/0.3/styles/pn_buttons.css (added)
-
tags/0.3/styles/pn_style.css (added)
-
trunk/.gitattributes (deleted)
-
trunk/.gitignore (deleted)
-
trunk/CurlParse.php (modified) (1 diff)
-
trunk/README.md (modified) (2 diffs)
-
trunk/options-general.php (added)
-
trunk/push_notifications.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
notification-push-parse/trunk/CurlParse.php
r1305136 r1305360 2 2 3 3 /** 4 * Created by PhpStorm. 5 * User: thieg 4 * User: Kévin Gay 6 5 * Date: 10/12/2015 7 6 * Time: 01:50 -
notification-push-parse/trunk/README.md
r1305169 r1305360 5 5 Requires at least: 4.0 6 6 Tested up to: 4.0 7 Stable tag: 0. 2.17 Stable tag: 0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 This plugin allows you to send P ush Notifications directlyfrom your WordPress site to your Parse.com account.11 This plugin allows you to send Parse Push Notifications from your WordPress site to your Parse.com account. 12 12 13 13 Description 14 14 ------------ 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 15 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. 18 16 Now, go to Installation section to find out how to install and use plugin. 19 17 … … 24 22 25 23 26 1. Upload `push_notifications_parse` to the `/wp-content/plugins/` directory27 2. Activate the plugin through the 'Plugins' menu in WordPress28 3. Edit the line "ParseClient::initialize( $app_id, $rest_key, $master_key );" with your correct key from your App inParse.com29 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! 31 29 32 Troubleshooting 30 Troubleshooting 33 31 ------------ 34 WARNING : It's at your own risk to do that because it cans create security issue35 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); 39 37 40 38 Changelog 41 39 ------------ 42 40 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 43 47 = 0.2.1 = 44 - Fixed Readme Wordpress 48 - Fixed Readme Wordpress. 45 49 46 50 = 0.2 = -
notification-push-parse/trunk/push_notifications.php
r1305211 r1305360 4 4 Description: This plugin allows you to send Push Notifications directly from your WordPress site to your Parse.com account. 5 5 Author: Kevin Gay 6 Version: 0. 2.26 Version: 0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 } 46 46 47 function setting_admin(){ 48 include ('options-general.php'); 49 } 50 47 51 function push_notifications_admin_pages() { 48 wp_enqueue_media();49 52 $array = split('\\\\', dirname(__FILE__)); 50 53 $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", ""); 52 56 } 53 54 57 /*----------------------------------*/ 55 58 /*----------------------------------*/ … … 64 67 require('parse-php-sdk-master/autoload.php'); 65 68 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")); 71 70 $data = array("alert" => $message); 72 71 … … 79 78 // Push to Query 80 79 $query = ParseInstallation::query(); 81 $query->containedIn("deviceType", ["ios", "android" ]);;80 $query->containedIn("deviceType", ["ios", "android", "winrt", "winphone"]);; 82 81 83 82 ParsePush::send(array( … … 127 126 ?> 128 127 <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> 131 129 </div> 132 130 <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' /> 134 132 </div> 135 133 </form> … … 141 139 /*----------------------------------*/ 142 140 143 function push_notifications _options_page() {141 function push_notifications() { 144 142 145 143 echo"<center><div id='apns' class='apns_block' > -
notification-push-parse/trunk/readme.txt
r1305222 r1305360 4 4 -Requires at least: 4.0 5 5 -Tested up to: 4.0 6 -Stable tag: 0. 2.26 -Stable tag: 0.3 7 7 -License: GPLv2 or later 8 8 -License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 -This plugin allows you to send P ush 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. 11 11 12 12 == Description == 13 13 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.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. 16 16 17 17 == Installation == … … 22 22 -1. Upload `push_notifications_parse` to the `/wp-content/plugins/` directory 23 23 -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! 29 27 30 28 == Troubleshooting == 31 29 - 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); 36 34 37 35 == Changelog == 36 37 = 0.3 = 38 - Setting page to easily enter your keys. 38 39 39 40 = 0.2.2 = … … 55 56 56 57 https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QP6QETB77AUH2 58 59 == GITHUB == 60 61 https://github.com/GayKevin/WordPress-Plugin-Notification-Push-Parse
Note: See TracChangeset
for help on using the changeset viewer.