WD Facebook Feed – Custom Facebook Feed Plugin - Version 1.0.9

Version Description

  • Fixed: Maximum Post message(description) Length option bug
  • Fixed: Minor bug
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 WD Facebook Feed – Custom Facebook Feed Plugin
Version 1.0.9
Comparing to
See all releases

Code changes from version 1.0.8 to 1.0.9

facebook-feed-wd.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Facebook Feed WD
5
  * Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
6
  * Description:Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
7
- * Version: 1.0.8
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -658,7 +658,7 @@ add_action('init', 'ffwd_language_load');
658
  function ffwd_version()
659
  {
660
 
661
- $version = '1.0.8';
662
 
663
  if (get_option('ffwd_version') === false) {
664
  add_option('ffwd_version', $version);
4
  * Plugin Name: Facebook Feed WD
5
  * Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
6
  * Description:Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
7
+ * Version: 1.0.9
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
658
  function ffwd_version()
659
  {
660
 
661
+ $version = '1.0.9';
662
 
663
  if (get_option('ffwd_version') === false) {
664
  add_option('ffwd_version', $version);
framework/WDFacebookFeed.php CHANGED
@@ -430,7 +430,7 @@ $ffwd_info_options[$ffwd_option_db] =((isset($_POST[$ffwd_option_db])) ? esc_htm
430
  if((self::$update_mode == 'remove_old') && ($insert_count + $exist_count) > self::$limit) {
431
  $del_count = ($insert_count + $exist_count) - self::$limit;
432
  $ids = array();
433
- $results = $wpdb->get_results($wpdb->prepare('SELECT `id` FROM `wp_wd_fb_data` WHERE `fb_id` = "%d" ORDER BY `created_time_number` ASC LIMIT ' . $del_count, self::$fb_id));
434
  foreach($results as $row) {
435
  array_push($ids, $row->id);
436
  }
430
  if((self::$update_mode == 'remove_old') && ($insert_count + $exist_count) > self::$limit) {
431
  $del_count = ($insert_count + $exist_count) - self::$limit;
432
  $ids = array();
433
+ $results = $wpdb->get_results($wpdb->prepare('SELECT `id` FROM `' . $wpdb->prefix . 'wd_fb_data` WHERE `fb_id` = "%d" ORDER BY `created_time_number` ASC LIMIT ' . $del_count, self::$fb_id));
434
  foreach($results as $row) {
435
  array_push($ids, $row->id);
436
  }
frontend/models/FFWDModelBlog_style.php CHANGED
@@ -181,15 +181,17 @@ class FFWDModelBlog_style extends FFWDModelMain {
181
  }
182
  return $share_url;
183
  }
184
- public function see_less_more($string, $type, $row_type) {
185
  $string = strip_tags($string);
186
  $new_string = $string;
187
  $hide_text_paragraph = '';
188
  $length = strlen($string);
 
189
  if($row_type == 'events')
190
- $text_length = isset($this->options->event_desp_length) ? $this->options->event_desp_length : 200;
191
  else
192
- $text_length = isset($this->options->post_text_length) ? $this->options->post_text_length : 200;
 
193
  if ($length > $text_length) {
194
  // Truncate string
195
  $stringCut = substr($string, 0, $text_length);
181
  }
182
  return $share_url;
183
  }
184
+ public function see_less_more($string, $type, $row_type,$post_text_length=200,$event_desp_length=200) {
185
  $string = strip_tags($string);
186
  $new_string = $string;
187
  $hide_text_paragraph = '';
188
  $length = strlen($string);
189
+
190
  if($row_type == 'events')
191
+ $text_length = $event_desp_length;
192
  else
193
+ $text_length = $post_text_length;
194
+
195
  if ($length > $text_length) {
196
  // Truncate string
197
  $stringCut = substr($string, 0, $text_length);
frontend/views/FFWDViewBlog_style.php CHANGED
@@ -978,7 +978,7 @@ class FFWDViewBlog_style {
978
  ?>
979
  <p class="ffwd_blog_style_object_messages_<?php echo $ffwd; ?>">
980
  <?php
981
- $message = $this->model->see_less_more($ffwd_data_row->message, 'message', $ffwd_data_row->type);
982
  $message = $this->model->fill_hashtags($message, $ffwd);
983
  $message = $this->model->fill_tags($message, $ffwd_data_row->message_tags, $ffwd);
984
  echo nl2br($message);
@@ -986,7 +986,7 @@ class FFWDViewBlog_style {
986
  </p>
987
  <p class="bwg_blog_style_object_description_<?php echo $ffwd; ?>">
988
  <?php
989
- $description = $this->model->see_less_more($ffwd_data_row->description, 'description', $ffwd_data_row->type);
990
  $description = $this->model->fill_hashtags($description, $ffwd);
991
  echo nl2br($description);
992
  ?>
978
  ?>
979
  <p class="ffwd_blog_style_object_messages_<?php echo $ffwd; ?>">
980
  <?php
981
+ $message = $this->model->see_less_more($ffwd_data_row->message, 'message', $ffwd_data_row->type,$ffwd_info['post_text_length'],$ffwd_info['event_desp_length']);
982
  $message = $this->model->fill_hashtags($message, $ffwd);
983
  $message = $this->model->fill_tags($message, $ffwd_data_row->message_tags, $ffwd);
984
  echo nl2br($message);
986
  </p>
987
  <p class="bwg_blog_style_object_description_<?php echo $ffwd; ?>">
988
  <?php
989
+ $description = $this->model->see_less_more($ffwd_data_row->description, 'description', $ffwd_data_row->type,$ffwd_info['post_text_length'],$ffwd_info['event_desp_length']);
990
  $description = $this->model->fill_hashtags($description, $ffwd);
991
  echo nl2br($description);
992
  ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
4
  Tags: customizable, facebook, facebook events, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, likebox
5
  Requires at least: 3.4
6
  Tested up to: 4.6
7
- Stable tag: 1.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -66,6 +66,10 @@ Upgrade to [Facebook Feed Pro](https://web-dorado.com/products/wordpress-faceboo
66
 
67
  == Changelog ==
68
 
 
 
 
 
69
  = 1.0.8 =
70
  * Fixed: Minor bug
71
 
4
  Tags: customizable, facebook, facebook events, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, likebox
5
  Requires at least: 3.4
6
  Tested up to: 4.6
7
+ Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
66
 
67
  == Changelog ==
68
 
69
+ = 1.0.9 =
70
+ * Fixed: Maximum Post message(description) Length option bug
71
+ * Fixed: Minor bug
72
+
73
  = 1.0.8 =
74
  * Fixed: Minor bug
75