Changeset 939310
- Timestamp:
- 06/26/2014 08:46:36 PM (12 years ago)
- Location:
- pwebonedrive/trunk
- Files:
-
- 1 added
- 7 edited
-
admin-buttons.php (modified) (2 diffs)
-
admin.php (modified) (3 diffs)
-
callback.php (added)
-
js/onedrive.js (modified) (3 diffs)
-
languages/pwebonedrive-en_GB.pot (modified) (5 diffs)
-
liveconnect.php (modified) (3 diffs)
-
pwebonedrive.php (modified) (1 diff)
-
readme.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pwebonedrive/trunk/admin-buttons.php
r866880 r939310 1 1 <?php 2 2 /** 3 * @version 1. 0.03 * @version 1.1.0 4 4 * @package OneDrive 5 5 * @copyright © 2014 Perfect Web sp. z o.o., All rights reserved. http://www.perfect-web.co … … 56 56 'client_id:"'.get_option('pweb_onedrive_client_id').'"', 57 57 'task_url:"'.admin_url( 'admin-ajax.php?action=pweb_onedrive_' ).'"', 58 'redirect_url:"'.plugins_url( 'callback.php', __FILE__ ).'"', 58 59 'spinner_url:"'.includes_url().'images/wpspin-2x.gif"' 59 60 ); -
pwebonedrive/trunk/admin.php
r886240 r939310 1 1 <?php 2 2 /** 3 * @version 1. 0.23 * @version 1.1.0 4 4 * @package OneDrive 5 5 * @copyright © 2014 Perfect Web sp. z o.o., All rights reserved. http://www.perfect-web.co … … 113 113 <?php _e('Register your site in', 'pwebonedrive'); ?> 114 114 <a target="_blank" href="https://account.live.com/developers/applications/index"><?php _e('Windows Live application management', 'pwebonedrive'); ?></a>.<br> 115 <?php _e('Remember to set', 'pwebonedrive'); ?> <strong><?php _e('Redirect domain', 'pwebonedrive'); ?></strong>:116 < script>document.write('<a href="'+document.location.protocol+'//'+document.location.host+'" target="_blank">'+document.location.protocol+'//'+document.location.host+'<'+'/a>')</script>117 <?php _e('and', 'pwebonedrive'); ?> <strong><?php _e('Mobile client app: No', 'pwebonedrive'); ?></strong> ,118 < strong><?php _e('Enhanced redirection security: Disabled', 'pwebonedrive'); ?></strong>.<br>115 <?php _e('Remember to set', 'pwebonedrive'); ?> <strong><?php _e('Redirect URL', 'pwebonedrive'); ?></strong>: 116 <a href="<?php echo plugins_url( 'callback.php', __FILE__ ); ?>" target="_blank"><?php echo plugins_url( 'callback.php', __FILE__ ); ?></a><br> 117 <?php _e('and', 'pwebonedrive'); ?> <strong><?php _e('Mobile client app: No', 'pwebonedrive'); ?></strong><br> 118 <?php _e('and if available', 'pwebonedrive'); ?> <strong><?php _e('Enhanced redirection security: Enabled', 'pwebonedrive'); ?></strong> <?php _e('(for applications created before June 2014)', 'pwebonedrive'); ?><br> 119 119 <?php _e('Read how to', 'pwebonedrive'); ?> <a target="_blank" href="http://msdn.microsoft.com/library/cc287659.aspx"><?php _e('get your Client ID', 'pwebonedrive'); ?></a>. 120 120 </p> … … 164 164 165 165 166 add_action('wp_ajax_pweb_onedrive_callback', 'pweb_onedrive_ajax_callback');167 add_action('wp_ajax_nopriv_pweb_onedrive_callback', 'pweb_onedrive_ajax_callback');168 169 function pweb_onedrive_ajax_callback()170 {171 $client = LiveConnectClient::getInstance();172 $client->log(__FUNCTION__);173 174 echo $client->handlePageRequest();175 176 $client->log(__FUNCTION__.'. Die');177 178 die();179 }180 181 166 function pweb_onedrive_get_version() { 182 167 -
pwebonedrive/trunk/js/onedrive.js
r888832 r939310 1 1 /** 2 * @version 1. 0.32 * @version 1.1.0 3 3 * @package OneDrive 4 4 * @copyright © 2014 Perfect Web sp. z o.o., All rights reserved. http://www.perfect-web.co … … 13 13 client_id: null, 14 14 task_url: null, 15 redirect_url: null, 15 16 spinner_url: null, 16 17 token: false, … … 50 51 WL.init({ 51 52 client_id: this.options.client_id, 52 redirect_uri: this.options. task_url + "callback",53 redirect_uri: this.options.redirect_url, 53 54 response_type: "code", 54 55 logging: this.options.debug > 0 -
pwebonedrive/trunk/languages/pwebonedrive-en_GB.pot
r900202 r939310 2 2 msgstr "" 3 3 "Project-Id-Version: Perfect OneDrive\n" 4 "POT-Creation-Date: 2014-0 4-15 15:52+0100\n"5 "PO-Revision-Date: 2014-0 4-15 15:55+0100\n"4 "POT-Creation-Date: 2014-06-26 22:37+0100\n" 5 "PO-Revision-Date: 2014-06-26 22:38+0100\n" 6 6 "Last-Translator: Piotr Moćko <[email protected]>\n" 7 7 "Language-Team: Perfect-Web.co <[email protected]>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 1.6. 4\n"12 "X-Generator: Poedit 1.6.5\n" 13 13 "X-Poedit-Basepath: ../\n" 14 14 "Plural-Forms: nplurals=2; plural=(n != 1);\n" … … 37 37 msgstr "" 38 38 39 #: admin-buttons.php:10 539 #: admin-buttons.php:106 40 40 msgid "Error while saving selected resource. Try again." 41 41 msgstr "" 42 42 43 #: admin-buttons.php:10 743 #: admin-buttons.php:108 44 44 msgid "" 45 45 "Access token for current OneDrive session was not saved. Logout from " … … 118 118 119 119 #: admin.php:115 120 msgid "Redirect domain"120 msgid "Redirect URL" 121 121 msgstr "" 122 122 … … 130 130 131 131 #: admin.php:118 132 msgid "Enhanced redirection security: Disabled" 132 msgid "and if available" 133 msgstr "" 134 135 #: admin.php:118 136 msgid "Enhanced redirection security: Enabled" 137 msgstr "" 138 139 #: admin.php:118 140 msgid "(for applications created before June 2014)" 133 141 msgstr "" 134 142 -
pwebonedrive/trunk/liveconnect.php
r930391 r939310 1 1 <?php 2 2 /** 3 * @version 1. 0.53 * @version 1.1.0 4 4 * @package OneDrive 5 5 * @copyright © 2014 Perfect Web sp. z o.o., All rights reserved. http://www.perfect-web.co … … 33 33 'authurl' => 'https://login.live.com/oauth20_token.srf', 34 34 'tokenurl' => 'https://login.live.com/oauth20_token.srf', 35 'redirecturi' => admin_url( 'admin-ajax.php?action=pweb_onedrive_callback'),35 'redirecturi' => plugins_url( 'callback.php', __FILE__ ), 36 36 'userefresh' => true, 37 37 'storetoken' => true, … … 48 48 } 49 49 50 public static function getInstance( )50 public static function getInstance($options = null) 51 51 { 52 52 // Automatically instantiate the singleton object if not already done. 53 53 if (empty(self::$instance)) 54 54 { 55 self::setInstance(new LiveConnectClient );55 self::setInstance(new LiveConnectClient($options)); 56 56 } 57 57 return self::$instance; -
pwebonedrive/trunk/pwebonedrive.php
r930391 r939310 4 4 * Plugin URI: http://www.perfect-web.co/wordpress/microsoft-onedrive-gallery-file 5 5 * Description: Share easily your photos and files stored on Microsoft OneDrive. You can display a gallery with your photos or a link to a file for download. 6 * Version: 1. 0.56 * Version: 1.1.0 7 7 * Author: Piotr Moćko 8 8 * Author URI: http://www.perfect-web.co -
pwebonedrive/trunk/readme.txt
r938396 r939310 5 5 Requires at least: 2.8.0 6 6 Tested up to: 3.9.1 7 Stable tag: 1. 0.57 Stable tag: 1.1.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 12 12 13 13 == Description == 14 15 **Warning! OneDrvie plugin is not working with Windwos Live Applications created after 1st of June 2014. We are waiting for update of Microsoft OneDrive API documentation to make necessary changes in our software.**16 17 14 18 15  … … 60 57 1. Create **Windows Live ID** account for [OneDrive](https://onedrive.live.com/) if you do not have already 61 58 1. **Register your site** in [Windows Live application management](https://account.live.com/developers/applications/index) that WordPress could connect to your OneDrive. 62 Remember to set your site URL as **Redirect domain** and **Mobile client app: No**, **Enhanced redirection security: Disabled**. 59 Remember to set **Redirect URL** *http://yourdomain.com/wp-content/plugins/pwebonedrive/callback.php* 60 and **Mobile client app: No** 61 and if available **Enhanced redirection security: Enabled** (for applications created before June 2014). 63 62 [Read how to get your Client ID](http://msdn.microsoft.com/library/cc287659.aspx). 64 63 1. Go to **plugin configuration** panel and set all details from **Windows Live application management**. … … 70 69 71 70 [Visit full documentation page](http://www.perfect-web.co/wordpress/microsoft-onedrive-gallery-file/documentation) 72 73 74 **Warning! OneDrvie plugin is not working with Windwos Live Applications created after 1st of June 2014. We are waiting for update of Microsoft OneDrive API documentation to make necessary changes in our software.**75 76 71 77 72 = First use of OneDrive buttons = … … 89 84 = Error in Microsoft popup = 90 85 86 Since plugin version 1.1.0 there is a new Redirect URL. Make sure you have updated it! You can also enable **Enhanced redirection security** in old Windows Live applications - created before June 2014. 87 91 88 If you got message: *Microsoft account is experiencing technical problems* in popup window then check **error_description** of URL in address bar. 92 89 93 90 If you have following error description: 94 91 *The provided value for the input parameter 'redirect_uri' is not valid. The expected value is 'https://login.live.com/oauth20_desktop.srf' or a URL which matches the redirect URI registered for this client application* 95 then go to Windows Live application management and set in your application **Enhanced redirection security: Disabled**. 92 then make sure that you have plugin version 1.1.0 or newer 93 and you have set the same **Redirect URL** in Windows Live application management as in plugin configuration. 94 95 Make sure that if you have set in Windows Live application management **redirect URL with www** then you access back-end and front-end site also with www otherwise it would not work. 96 If it is possible to access your site with and without www then you should correct it in .htaccess file and allow only one way. 96 97 97 98 If you have other error description then send it to our support. … … 123 124 == Changelog == 124 125 126 = 1.1.0 / 26-06-2014 = 127 * Fixed redirect URL for new Windows Live applications 128 125 129 = 1.0.5 / 11-06-2014 = 126 130 * Fixed hook where wp_register_style is used … … 144 148 == Upgrade Notice == 145 149 146 N/A 150 = 1.1.0 = 151 New redirect URL for Windows Live applications! See configuration of plugin after upgrade.
Note: See TracChangeset
for help on using the changeset viewer.