WpDevArt Facebook comments - Version 2.2.4

Version Description

=

  • Corrected some typos errors.

Step by step guide

Main options

  • APP ID - Type here your Fb App ID
  • Title - Type here the title
  • Color scheme - Select the Color scheme
  • Title text color - Select the title text color
  • Title font-size - Type the title font-size(px)
  • Title font family - Select the title font family
  • Title position - Select the title position
  • Display comment on - Select where to display Fb box
  • Width - Type here the width(px)
  • Number - Type here the number of remarks to display
  • Animation effect - Select animation effect
  • Background color - Select the background color
  • Position -Select the position
  • Language - Type here the language code(en_US,de_DE...)

Adding the plugin shortcode into pages, posts and in Php code

Here is an example of using the shortcode in posts/pages: [wpdevart_facebook_comment facebook_app_id="1638418549774901" curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Title" title_text_color="#000000" title_text_font_size="22" title_text_font_famely="monospace" title_text_position="left" width="100%" bg_color="#CCCCCC" animation_effect="random" locale="en_US" count_of_comments="2" ]

Here's an example of using the shortcode in PHP code: <?php echo do_shortcode('[wpdevart_facebook_comment facebook_app_id="1638418549774901" curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Fb title" title_text_color="#000000" title_text_font_size="22" title_text_font_famely="monospace" title_text_position="left" width="100%" bg_color="#CCCCCC" animation_effect="random" locale="en_US" count_of_comments="2" ]'); ?>

Here are explanation of shortcode attributes.

curent_url - Type the URL of the page from where you need to show the content title_text - Type here the title title_text_color - Select the title color title_text_font_size - Type the title font-size title_text_font_famely - Select the title font family title_text_position - Select the title position width - Type here the width count_of_comments - Type here the number of remarks to display bg_color - Select the background color animation_effect - Choose animation effect

Download this release

Release Info

Developer wpdevart
Plugin Icon 128x128 WpDevArt Facebook comments
Version 2.2.4
Comparing to
See all releases

Code changes from version 2.2.3 to 2.2.4

Files changed (3) hide show
  1. facebook-comment.php +5 -12
  2. includes/admin_menu.php +11 -18
  3. readme.txt +5 -1
facebook-comment.php CHANGED
@@ -4,11 +4,10 @@
4
  * Plugin URI: https://wpdevart.com/wordpress-facebook-comments-plugin
5
  * Author URI: https://wpdevart.com
6
  * Description: Social (Facebook) comments plugin will help you to display Facebook Comments box on your website. You can use Facebook Comments on your pages/posts.
7
- * Version: 2.2.3
8
  * Author: wpdevart
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
-
12
 
13
  class wpdevart_comment_main{
14
  // required variables
@@ -27,11 +26,10 @@ class wpdevart_comment_main{
27
 
28
  $this->wpdevart_comment_plugin_url = trailingslashit( plugins_url('', __FILE__ ) );
29
  $this->wpdevart_comment_plugin_path = trailingslashit( plugin_dir_path( __FILE__ ) );
30
- //
31
  define("wpdevart_comment_support_url","https://wordpress.org/support/plugin/comments-from-facebook");
32
  if(!class_exists('wpdevart_comment_setting'))
33
  require_once($this->wpdevart_comment_plugin_path.'includes/library.php');
34
- $this->wpdevart_comment_version = 10.0;
35
  $this->call_base_filters();
36
  $this->install_databese();
37
  $this->create_admin_menu();
@@ -72,12 +70,11 @@ class wpdevart_comment_main{
72
 
73
  }
74
 
75
- /*############ Register Requeried Scripts function ################*/
76
 
77
  public function registr_requeried_scripts(){
78
  wp_register_script('comment-box-admin-script',$this->wpdevart_comment_plugin_url.'includes/javascript/admin-wpdevart-comment.js');
79
  wp_register_style('comment-box-admin-style',$this->wpdevart_comment_plugin_url.'includes/style/admin-style.css');
80
-
81
  }
82
 
83
  /*###################### Call base filters function ##################*/
@@ -85,12 +82,10 @@ class wpdevart_comment_main{
85
  public function call_base_filters(){
86
  add_action( 'init', array($this,'registr_requeried_scripts') );
87
  add_action( 'admin_head', array($this,'include_requeried_scripts') );
88
- //for_upgrade
89
  add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($this,'plugin_activate_sublink') );
90
-
91
  }
92
 
93
- /*############ Sublink function ################*/
94
 
95
  public function plugin_activate_sublink($links){
96
  $plugin_submenu_added_link=array();
@@ -102,14 +97,12 @@ class wpdevart_comment_main{
102
  return $plugin_submenu_added_link;
103
  }
104
 
105
- /*############ Include requeried scripts function ################*/
106
 
107
  public function include_requeried_scripts(){
108
  wp_enqueue_script('wp-color-picker');
109
  wp_enqueue_style( 'wp-color-picker' );
110
  }
111
-
112
  }
113
  $wpdevart_comment_main = new wpdevart_comment_main();
114
-
115
  ?>
4
  * Plugin URI: https://wpdevart.com/wordpress-facebook-comments-plugin
5
  * Author URI: https://wpdevart.com
6
  * Description: Social (Facebook) comments plugin will help you to display Facebook Comments box on your website. You can use Facebook Comments on your pages/posts.
7
+ * Version: 2.2.4
8
  * Author: wpdevart
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
 
11
 
12
  class wpdevart_comment_main{
13
  // required variables
26
 
27
  $this->wpdevart_comment_plugin_url = trailingslashit( plugins_url('', __FILE__ ) );
28
  $this->wpdevart_comment_plugin_path = trailingslashit( plugin_dir_path( __FILE__ ) );
 
29
  define("wpdevart_comment_support_url","https://wordpress.org/support/plugin/comments-from-facebook");
30
  if(!class_exists('wpdevart_comment_setting'))
31
  require_once($this->wpdevart_comment_plugin_path.'includes/library.php');
32
+ $this->wpdevart_comment_version = 10.0;
33
  $this->call_base_filters();
34
  $this->install_databese();
35
  $this->create_admin_menu();
70
 
71
  }
72
 
73
+ /*############ Register Required Scripts function ################*/
74
 
75
  public function registr_requeried_scripts(){
76
  wp_register_script('comment-box-admin-script',$this->wpdevart_comment_plugin_url.'includes/javascript/admin-wpdevart-comment.js');
77
  wp_register_style('comment-box-admin-style',$this->wpdevart_comment_plugin_url.'includes/style/admin-style.css');
 
78
  }
79
 
80
  /*###################### Call base filters function ##################*/
82
  public function call_base_filters(){
83
  add_action( 'init', array($this,'registr_requeried_scripts') );
84
  add_action( 'admin_head', array($this,'include_requeried_scripts') );
 
85
  add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($this,'plugin_activate_sublink') );
 
86
  }
87
 
88
+ /*############ Sub-link function ################*/
89
 
90
  public function plugin_activate_sublink($links){
91
  $plugin_submenu_added_link=array();
97
  return $plugin_submenu_added_link;
98
  }
99
 
100
+ /*############ Include required scripts function ################*/
101
 
102
  public function include_requeried_scripts(){
103
  wp_enqueue_script('wp-color-picker');
104
  wp_enqueue_style( 'wp-color-picker' );
105
  }
 
106
  }
107
  $wpdevart_comment_main = new wpdevart_comment_main();
 
108
  ?>
includes/admin_menu.php CHANGED
@@ -44,7 +44,6 @@ class wpdevart_comment_admin_menu{
44
  public function generete_html_for_wpdevart_comment_box($post){
45
  // Add field that we can check later.
46
  wp_nonce_field( 'wpdevar_save_post', 'wpdevart_facebook_meta_box_nonce' );
47
-
48
  /*
49
  * Use get_post_meta() to retrieve the existing value
50
  * From database, use the value for the form.
@@ -59,15 +58,9 @@ class wpdevart_comment_admin_menu{
59
  /*###################### Save Post function ##################*/
60
 
61
  function wpdevar_save_post( $post_id ) {
62
-
63
-
64
  if ( ! isset( $_POST['wpdevart_facebook_meta_box_nonce'] ) ) { return; }
65
-
66
  if ( ! wp_verify_nonce( $_POST['wpdevart_facebook_meta_box_nonce'], 'wpdevar_save_post' ) ) { return; }
67
-
68
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; }
69
-
70
-
71
  if ( isset( $_POST['post_type'] ) && 'page' == $_POST['post_type'] ) {
72
  if ( ! current_user_can( 'edit_page', $post_id ) ) {
73
  return;
@@ -80,10 +73,7 @@ class wpdevart_comment_admin_menu{
80
  if ( ! isset( $_POST['wpdevart_disable_field'] ) ) {
81
  return;
82
  }
83
-
84
  $my_data = sanitize_text_field( $_POST['wpdevart_disable_field'] );
85
-
86
-
87
  update_post_meta( $post_id, '_disabel_wpdevart_facebook_comment', $my_data );
88
  }
89
 
@@ -112,6 +102,7 @@ class wpdevart_comment_admin_menu{
112
  public function any_ideas(){
113
 
114
  }
 
115
  /*###################### Required scripts function ##################*/
116
 
117
  public function menu_requeried_scripts(){
@@ -120,9 +111,11 @@ class wpdevart_comment_admin_menu{
120
  wp_enqueue_script( 'comment-box-admin-script' );
121
  wp_enqueue_style('comment-box-admin-style');
122
  }
 
123
  public function menu_hire_expert_requeried_scripts(){
124
  wp_enqueue_style("wpdevart_lightbox_hire_expert",$this->plugin_url.'includes/style/hire_expert.css');
125
  }
 
126
  /*###################### Generate parameters function ##################*/
127
 
128
  private function generete_parametrs($page_name){
@@ -218,16 +211,16 @@ Also, here is another tutorial(from other source) of creating App Id, you can ch
218
  <p><strong>Here are explanation of Facebook comments shortcode attributes.</strong></p>
219
 
220
  <p><strong>Curent_url</strong> - Type the page URL where you need to display the Facebook comments box </p>
221
- <p><strong>Title_text</strong> - Type here Facebook comments box title</p>
222
- <p><strong>Order_type</strong> - Choose Facebook comments box order type. The order to use when displaying comments. Can be "social", "reverse_time", or "time". </p>
223
- <p><strong>Title_text_color</strong> - Select Facebook comments box title text color</p>
224
- <p><strong>Title_text_font_size</strong> - Type Facebook comments box title font-size(px)</p>
225
- <p><strong>Title_text_font_famely</strong> - Select Facebook comments box title font family</p>
226
- <p><strong>Title_text_position</strong> - Select Facebook comments box title position</p>
227
  <p><strong>Width</strong> - Type here the Facebook comments box width(px)</p>
228
  <p><strong>Count_of_comments</strong> - Type here the number of Facebook comments you need to display</p>
229
- <p><strong>Bg_color</strong> <span class="pro_feature"> (pro)</span> - Select Facebook comments background color</p>
230
- <p><strong>Animation_effect</strong> <span class="pro_feature"> (pro)</span> - Select the animation effect for Facebook comments box</p>
231
 
232
  </div>
233
  </td>
44
  public function generete_html_for_wpdevart_comment_box($post){
45
  // Add field that we can check later.
46
  wp_nonce_field( 'wpdevar_save_post', 'wpdevart_facebook_meta_box_nonce' );
 
47
  /*
48
  * Use get_post_meta() to retrieve the existing value
49
  * From database, use the value for the form.
58
  /*###################### Save Post function ##################*/
59
 
60
  function wpdevar_save_post( $post_id ) {
 
 
61
  if ( ! isset( $_POST['wpdevart_facebook_meta_box_nonce'] ) ) { return; }
 
62
  if ( ! wp_verify_nonce( $_POST['wpdevart_facebook_meta_box_nonce'], 'wpdevar_save_post' ) ) { return; }
 
63
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; }
 
 
64
  if ( isset( $_POST['post_type'] ) && 'page' == $_POST['post_type'] ) {
65
  if ( ! current_user_can( 'edit_page', $post_id ) ) {
66
  return;
73
  if ( ! isset( $_POST['wpdevart_disable_field'] ) ) {
74
  return;
75
  }
 
76
  $my_data = sanitize_text_field( $_POST['wpdevart_disable_field'] );
 
 
77
  update_post_meta( $post_id, '_disabel_wpdevart_facebook_comment', $my_data );
78
  }
79
 
102
  public function any_ideas(){
103
 
104
  }
105
+
106
  /*###################### Required scripts function ##################*/
107
 
108
  public function menu_requeried_scripts(){
111
  wp_enqueue_script( 'comment-box-admin-script' );
112
  wp_enqueue_style('comment-box-admin-style');
113
  }
114
+
115
  public function menu_hire_expert_requeried_scripts(){
116
  wp_enqueue_style("wpdevart_lightbox_hire_expert",$this->plugin_url.'includes/style/hire_expert.css');
117
  }
118
+
119
  /*###################### Generate parameters function ##################*/
120
 
121
  private function generete_parametrs($page_name){
211
  <p><strong>Here are explanation of Facebook comments shortcode attributes.</strong></p>
212
 
213
  <p><strong>Curent_url</strong> - Type the page URL where you need to display the Facebook comments box </p>
214
+ <p><strong>Title_text</strong> - Type here the Facebook comments box title</p>
215
+ <p><strong>Order_type</strong> - Choose the Facebook comments box order type. The order to use when displaying comments. Can be "social", "reverse_time", or "time". </p>
216
+ <p><strong>Title_text_color</strong> - Select the Facebook comments box title text color</p>
217
+ <p><strong>Title_text_font_size</strong> - Type the Facebook comments box title font-size(px)</p>
218
+ <p><strong>Title_text_font_famely</strong> - Select the Facebook comments box title font family</p>
219
+ <p><strong>Title_text_position</strong> - Select the Facebook comments box title position</p>
220
  <p><strong>Width</strong> - Type here the Facebook comments box width(px)</p>
221
  <p><strong>Count_of_comments</strong> - Type here the number of Facebook comments you need to display</p>
222
+ <p><strong>Bg_color</strong> <span class="pro_feature"> (pro)</span> - Select theFacebook comments box background color</p>
223
+ <p><strong>Animation_effect</strong> <span class="pro_feature"> (pro)</span> - Select the animation effect for the Facebook comments box</p>
224
 
225
  </div>
226
  </td>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wpdevart
3
  Tags: Facebook, facebook comments, social comments, comments, wordpress comments
4
  Requires at least: 2.9
5
  Tested up to: 5.7.2
6
- Stable tag: 2.2.3
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -524,6 +524,10 @@ Yes, If you are logged in(Fb account) then you will see the moderate options for
524
 
525
  * Changed some default parameters values.
526
 
 
 
 
 
527
  ==Step by step guide==
528
 
529
  ### Main options
3
  Tags: Facebook, facebook comments, social comments, comments, wordpress comments
4
  Requires at least: 2.9
5
  Tested up to: 5.7.2
6
+ Stable tag: 2.2.4
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
524
 
525
  * Changed some default parameters values.
526
 
527
+ = 2.2.4 ==
528
+
529
+ * Corrected some typos errors.
530
+
531
  ==Step by step guide==
532
 
533
  ### Main options