Blog2Social: Social Media Auto Post & Scheduler - Version 4.2.2

Version Description

Bugfix: image upload

Download this release

Release Info

Developer Blog2Social
Plugin Icon 128x128 Blog2Social: Social Media Auto Post & Scheduler
Version 4.2.2
Comparing to
See all releases

Code changes from version 4.2.1 to 4.2.2

assets/js/b2s/general.js CHANGED
@@ -3,7 +3,7 @@ jQuery(window).on("load", function () {
3
  jQuery('.b2s-heartbeat-fail').show();
4
  } else {
5
  jQuery('.b2s-heartbeat-fail').hide();
6
- }
7
  });
8
 
9
  jQuery(document).on('click', '.b2s-show-feedback-modal', function () {
@@ -137,6 +137,8 @@ jQuery(document).on('click', '.b2s-trail-btn-start', function () {
137
  if (data.result == true) {
138
  jQuery('#b2s-trial-modal').modal('hide');
139
  jQuery('.b2s-key-area-success').show();
 
 
140
  jQuery('.b2s-key-area-key-name').html(data.lizenzName);
141
  jQuery('.b2s-key-name').html(data.lizenzName);
142
  jQuery('.b2s-trail-premium-info-area').hide();
3
  jQuery('.b2s-heartbeat-fail').show();
4
  } else {
5
  jQuery('.b2s-heartbeat-fail').hide();
6
+ }
7
  });
8
 
9
  jQuery(document).on('click', '.b2s-show-feedback-modal', function () {
137
  if (data.result == true) {
138
  jQuery('#b2s-trial-modal').modal('hide');
139
  jQuery('.b2s-key-area-success').show();
140
+ jQuery('.b2s-trail-tracking').show();
141
+ jQuery('#b2s-trail-tracking-src').attr('src','https://www.googleadservices.com/pagead/conversion/1072559458/?label=HB4lCM27oHMQ4uq3_wM&guid=ON&script=0');
142
  jQuery('.b2s-key-area-key-name').html(data.lizenzName);
143
  jQuery('.b2s-key-name').html(data.lizenzName);
144
  jQuery('.b2s-trail-premium-info-area').hide();
includes/B2S/Ship/Image.php CHANGED
@@ -47,16 +47,18 @@ class B2S_Ship_Image {
47
  } else {
48
  $content .= '<div class="col-xs-12 del-padding-left del-padding-right b2s-choose-image-no-image-info-text"><br><div class="alert alert-info">' . __('No images are included in your post.', 'blog2social') . '</div></div>';
49
  }
 
50
  $content .= '</div>';
51
  $content .= '<input type="hidden" class="b2s-choose-image-count" value="' . $tempCountImage . '">';
 
52
 
53
- $content .= '<div class="col-xs-12 del-padding-left del-padding-right b2s-image-change-btn-area" ' . (!$isImage ? 'style="display:none"' : '') . '>';
54
- $content .= ' <button class="btn btn-primary b2s-image-change-all-network" >' . __('Apply image for all networks', 'blog2social') . '</button>';
55
  if (B2S_PLUGIN_USER_VERSION > 0) {
56
- $content .= '<button class="btn btn-primary b2s-image-change-this-network" data-network-auth-id="" >' . __('Apply image for this network', 'blog2social') . '</button>';
57
  } else {
58
- $content .= '<button class="btn btn-primary b2s-btn-disabled b2s-upload-image-free-version" >' . __('Apply image for this network', 'blog2social') . ' <span class="label label-success">' . __('PREMIUM', 'blog2social') . ' </span></button>';
59
  }
 
60
  if (current_user_can('upload_files')) {
61
  if (B2S_PLUGIN_USER_VERSION > 1) {
62
  $content .= '<button class="btn btn-primary b2s-upload-image">' . __('Image upload / Mediathek', 'blog2social') . '</button>';
47
  } else {
48
  $content .= '<div class="col-xs-12 del-padding-left del-padding-right b2s-choose-image-no-image-info-text"><br><div class="alert alert-info">' . __('No images are included in your post.', 'blog2social') . '</div></div>';
49
  }
50
+
51
  $content .= '</div>';
52
  $content .= '<input type="hidden" class="b2s-choose-image-count" value="' . $tempCountImage . '">';
53
+ $content .= '<div class="col-xs-12 del-padding-left del-padding-right">';
54
 
55
+ $content .= ' <button class="btn btn-primary b2s-image-change-all-network b2s-image-change-btn-area" ' . (!$isImage ? 'style="display:none"' : '') . '>' . __('Apply image for all networks', 'blog2social') . '</button>';
 
56
  if (B2S_PLUGIN_USER_VERSION > 0) {
57
+ $content .= '<button class="btn btn-primary b2s-image-change-this-network b2s-image-change-btn-area" ' . (!$isImage ? 'style="display:none"' : '') . ' data-network-auth-id="" >' . __('Apply image for this network', 'blog2social') . '</button>';
58
  } else {
59
+ $content .= '<button class="btn btn-primary b2s-btn-disabled b2s-upload-image-free-version b2s-image-change-btn-area" ' . (!$isImage ? 'style="display:none"' : '') . '>' . __('Apply image for this network', 'blog2social') . ' <span class="label label-success">' . __('PREMIUM', 'blog2social') . ' </span></button>';
60
  }
61
+
62
  if (current_user_can('upload_files')) {
63
  if (B2S_PLUGIN_USER_VERSION > 1) {
64
  $content .= '<button class="btn btn-primary b2s-upload-image">' . __('Image upload / Mediathek', 'blog2social') . '</button>';
includes/Init.php CHANGED
@@ -248,7 +248,9 @@ class B2S_Init {
248
  add_filter('redirect_post_location', array($this, 'b2s_add_param_auto_share_error_data_meta_box'));
249
  }
250
  } else {
251
- add_filter('redirect_post_location', array($this, 'b2s_add_param_auto_share_error_meta_box'));
 
 
252
  }
253
  }
254
  }
248
  add_filter('redirect_post_location', array($this, 'b2s_add_param_auto_share_error_data_meta_box'));
249
  }
250
  } else {
251
+ if(strtolower($_POST['post_status']) == "publish" || strtolower($_POST['post_status']) == "future"){
252
+ add_filter('redirect_post_location', array($this, 'b2s_add_param_auto_share_error_meta_box'));
253
+ }
254
  }
255
  }
256
  }
index.php CHANGED
@@ -7,12 +7,12 @@
7
  * Author: Blog2Social, Adenion
8
  * Text Domain: blog2social
9
  * Domain Path: /languages
10
- * Version: 4.2.1
11
  * Author URI: https://www.blog2social.com
12
  * License: GPL2+
13
  */
14
  //B2SDefine
15
- define('B2S_PLUGIN_VERSION', '421');
16
  define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
17
  define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
18
  define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
7
  * Author: Blog2Social, Adenion
8
  * Text Domain: blog2social
9
  * Domain Path: /languages
10
+ * Version: 4.2.2
11
  * Author URI: https://www.blog2social.com
12
  * License: GPL2+
13
  */
14
  //B2SDefine
15
+ define('B2S_PLUGIN_VERSION', '422');
16
  define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
17
  define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
18
  define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Blog2Social, Adenion
3
  Tags: auto-post, social media share, auto-publish, scheduling, social media post, social url share, social network share, share tweet, share links, share this, sharethis, social tools, admin, api, auto share to, autopost, auto-Posting, auto-schedule, auto-schedule social media posts, automatic social sharing plugin, blog marketing, blog2social, blogger, buffer, crossposting, cross-promotion, cross-promoting, delicious, delicious auto post, facebook, facebook auto post, facebook pages, google auto post, google plus, google plus pages, instagram, instagram auto post, jetpack, jetpack sharing, linkedin, linkedin auto post, medium, medium auto post, multiposting, path, pinterest, re-post, scheduling, scheduling plugin, social media, social media auto publish, social media automation, social media button, social media manager, social media plugin, social media publishing, social media scheduling, social media scheduling tool, social media sharing, social media tool, social network auto publish, social network icon, social network widget, socialmedia, timing, torial, torial auto post, tumblr, twitter, twitter auto post, xing, xing auto post, xing groups, xing gruppen, xing personal profiles, xing company profiles, xing business pages, xing pages, xing seiten, auto post scheduler, repost, social media management, facebook fan page auto post, facebook profile auto post, social auto post, social autoposting, flickr, flickr auto posting, linkedin, linkedin auto posting, linkedin profile, facebook group, facebook gruppen, reddit, reddit auto posting, reddit auto post
4
  Donate link: http://www.blog2social.com
5
  Requires at least: 4.2.2
6
- Tested up to: 4.8.0
7
- Stable tag: 4.2.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -279,6 +279,8 @@ We use the official authentification oAUTH methods to third-party applications p
279
  9. Adjust the best times to schedule in the best time scheduler.
280
 
281
  == Changelog ==
 
 
282
  = 4.2.1 =
283
  General Usabilitiy and Performance Optimization.
284
  = 4.2.0 =
@@ -319,6 +321,8 @@ Bug Fix: update method
319
  Re-engineered Post dashboard, new one-page preview features: WYSIWYG editors, simplified network selection, new scheduler features: best-times-scheduler, my-times-scheduler, recurring scheduling, multiple accounts per profile (applies to FREE and PREMIUM)
320
 
321
  == Upgrade Notice ==
 
 
322
  = 4.2.1 =
323
  General Usabilitiy and Performance Optimization.
324
  = 4.2.0 =
3
  Tags: auto-post, social media share, auto-publish, scheduling, social media post, social url share, social network share, share tweet, share links, share this, sharethis, social tools, admin, api, auto share to, autopost, auto-Posting, auto-schedule, auto-schedule social media posts, automatic social sharing plugin, blog marketing, blog2social, blogger, buffer, crossposting, cross-promotion, cross-promoting, delicious, delicious auto post, facebook, facebook auto post, facebook pages, google auto post, google plus, google plus pages, instagram, instagram auto post, jetpack, jetpack sharing, linkedin, linkedin auto post, medium, medium auto post, multiposting, path, pinterest, re-post, scheduling, scheduling plugin, social media, social media auto publish, social media automation, social media button, social media manager, social media plugin, social media publishing, social media scheduling, social media scheduling tool, social media sharing, social media tool, social network auto publish, social network icon, social network widget, socialmedia, timing, torial, torial auto post, tumblr, twitter, twitter auto post, xing, xing auto post, xing groups, xing gruppen, xing personal profiles, xing company profiles, xing business pages, xing pages, xing seiten, auto post scheduler, repost, social media management, facebook fan page auto post, facebook profile auto post, social auto post, social autoposting, flickr, flickr auto posting, linkedin, linkedin auto posting, linkedin profile, facebook group, facebook gruppen, reddit, reddit auto posting, reddit auto post
4
  Donate link: http://www.blog2social.com
5
  Requires at least: 4.2.2
6
+ Tested up to: 4.8.1
7
+ Stable tag: 4.2.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
279
  9. Adjust the best times to schedule in the best time scheduler.
280
 
281
  == Changelog ==
282
+ = 4.2.2 =
283
+ Bugfix: image upload
284
  = 4.2.1 =
285
  General Usabilitiy and Performance Optimization.
286
  = 4.2.0 =
321
  Re-engineered Post dashboard, new one-page preview features: WYSIWYG editors, simplified network selection, new scheduler features: best-times-scheduler, my-times-scheduler, recurring scheduling, multiple accounts per profile (applies to FREE and PREMIUM)
322
 
323
  == Upgrade Notice ==
324
+ = 4.2.2 =
325
+ Bugfix: image upload
326
  = 4.2.1 =
327
  General Usabilitiy and Performance Optimization.
328
  = 4.2.0 =
views/b2s/html/header.phtml CHANGED
@@ -5,14 +5,14 @@
5
  <div class="col-md-9 del-padding-left">
6
  <!--Info System-->
7
  <?php if (version_compare(phpversion(), '5.5.3', '<')) { ?>
8
- <div class="panel panel-group">
9
- <div class="panel-body">
10
- <span class="glyphicon glyphicon-remove glyphicon-danger"></span> <?php _e("To use all features of Blog2Social, PHP version 5.5.3 or higher is required. Our support assists you as of PHP version 5.5.3. See also:", "blog2social"); ?>
11
- <a target="_blank" href="<?php echo ((substr(B2S_LANGUAGE, 0, 2) == 'de' || (isset($_GET['lang']) && $_GET['lang'] == 'de')) ? 'https://www.blog2social.com/de/faq/content/1/63/de/systemvoraussetzungen-fuer-die-installation-von-blog2social.html' : 'https://www.blog2social.com/en/faq/content/1/58/en/system-requirements-for-installing-blog2social.html'); ?>"><?php _e('Technical requirements for Blog2Social', 'blog2social'); ?></a>
 
12
  </div>
13
- </div>
14
  <?php } ?>
15
-
16
  <div class="panel panel-group b2s-network-auth-info b2s-mail-update-success" style="display:none;">
17
  <div class="panel-body">
18
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php _e('Thank you. You\'ll now receive the blog updates from Blog2Social.', 'blog2social'); ?>
@@ -56,6 +56,9 @@
56
  </div>
57
  <?php } ?>
58
 
 
 
 
59
  <!--Info-Key-->
60
  <div class="panel panel-group b2s-key-area-success" style="display: none;">
61
  <div class="panel-body">
5
  <div class="col-md-9 del-padding-left">
6
  <!--Info System-->
7
  <?php if (version_compare(phpversion(), '5.5.3', '<')) { ?>
8
+ <div class="panel panel-group">
9
+ <div class="panel-body">
10
+ <span class="glyphicon glyphicon-remove glyphicon-danger"></span> <?php _e("To use all features of Blog2Social, PHP version 5.5.3 or higher is required. Our support assists you as of PHP version 5.5.3. See also:", "blog2social"); ?>
11
+ <a target="_blank" href="<?php echo ((substr(B2S_LANGUAGE, 0, 2) == 'de' || (isset($_GET['lang']) && $_GET['lang'] == 'de')) ? 'https://www.blog2social.com/de/faq/content/1/63/de/systemvoraussetzungen-fuer-die-installation-von-blog2social.html' : 'https://www.blog2social.com/en/faq/content/1/58/en/system-requirements-for-installing-blog2social.html'); ?>"><?php _e('Technical requirements for Blog2Social', 'blog2social'); ?></a>
12
+ </div>
13
  </div>
 
14
  <?php } ?>
15
+
16
  <div class="panel panel-group b2s-network-auth-info b2s-mail-update-success" style="display:none;">
17
  <div class="panel-body">
18
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php _e('Thank you. You\'ll now receive the blog updates from Blog2Social.', 'blog2social'); ?>
56
  </div>
57
  <?php } ?>
58
 
59
+ <div class="b2s-trail-tracking" style="display: none;">
60
+ <img height="1" width="1" style="border-style:none;" id="b2s-trail-tracking-src" alt="b2s-trail-tracking"/>
61
+ </div>
62
  <!--Info-Key-->
63
  <div class="panel panel-group b2s-key-area-success" style="display: none;">
64
  <div class="panel-body">