WpDevArt Facebook comments - Version 2.3.9

Version Description

=

  • Added descriptions for functions.

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.3.9
Comparing to
See all releases

Code changes from version 2.3.8 to 2.3.9

facebook-comment.php CHANGED
@@ -4,7 +4,7 @@
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.3.8
8
  * Author: wpdevart
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
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.3.9
8
  * Author: wpdevart
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
includes/admin_menu.php CHANGED
@@ -39,7 +39,7 @@ class wpdevart_comment_admin_menu{
39
  }
40
  }
41
 
42
- /*############ HTML generating function ################*/
43
 
44
  public function generete_html_for_wpdevart_comment_box($post){
45
  // Add field that we can check later.
@@ -55,7 +55,7 @@ class wpdevart_comment_admin_menu{
55
  echo '<select id="wpdevart_disable_field" name="wpdevart_disable_field"><option value="enable">Enable</option><option '.(($value=='disable')?'selected="selected"':'').' value="disable">Disable</option></select>';
56
  }
57
 
58
- /*###################### Save Post function ##################*/
59
 
60
  function wpdevar_save_post( $post_id ) {
61
  if ( ! isset( $_POST['wpdevart_facebook_meta_box_nonce'] ) ) { return; }
39
  }
40
  }
41
 
42
+ /*############ Function generating HTML ################*/
43
 
44
  public function generete_html_for_wpdevart_comment_box($post){
45
  // Add field that we can check later.
55
  echo '<select id="wpdevart_disable_field" name="wpdevart_disable_field"><option value="enable">Enable</option><option '.(($value=='disable')?'selected="selected"':'').' value="disable">Disable</option></select>';
56
  }
57
 
58
+ /*###################### Function for saving the post ##################*/
59
 
60
  function wpdevar_save_post( $post_id ) {
61
  if ( ! isset( $_POST['wpdevart_facebook_meta_box_nonce'] ) ) { return; }
includes/front_end.php CHANGED
@@ -36,7 +36,7 @@ class wpdevart_comment_front_end{
36
 
37
  }
38
 
39
- /*###################### Database function ##################*/
40
 
41
  private function generete_params(){
42
 
@@ -49,7 +49,7 @@ class wpdevart_comment_front_end{
49
 
50
  }
51
 
52
- /*###################### Insert comments in content function ##################*/
53
 
54
  public function insert_facebook_comment_in_content($content){
55
  $jsone_comment_show_in= json_decode(stripslashes($this->params['wpdevart_comments_box_show_in']), true);
@@ -78,7 +78,7 @@ class wpdevart_comment_front_end{
78
 
79
  }
80
 
81
- /*###################### Scripts and Styles function ##################*/
82
 
83
  public function generete_front_javascript(){
84
  wp_enqueue_script('thickbox');
@@ -87,7 +87,7 @@ class wpdevart_comment_front_end{
87
 
88
  }
89
 
90
- /*###################### Shortcode function ##################*/
91
 
92
  public function wpdevart_comment_shortcode($atts){
93
  $atts = shortcode_atts( array(
@@ -106,7 +106,7 @@ class wpdevart_comment_front_end{
106
  return wpdevart_comment_setting::generete_iframe_by_array($atts);
107
  }
108
 
109
- /*############ Generate Facebook_Js_SDK function ################*/
110
 
111
  public function generete_facbook_js_sdk(){
112
  if(isset($this->params['wpdevart_comments_box_include_sdk']) && $this->params['wpdevart_comments_box_include_sdk'] === 'no'){
36
 
37
  }
38
 
39
+ /*###################### The database function ##################*/
40
 
41
  private function generete_params(){
42
 
49
 
50
  }
51
 
52
+ /*###################### Function for inserting comments into content ##################*/
53
 
54
  public function insert_facebook_comment_in_content($content){
55
  $jsone_comment_show_in= json_decode(stripslashes($this->params['wpdevart_comments_box_show_in']), true);
78
 
79
  }
80
 
81
+ /*###################### Function for Scripts and Styles ##################*/
82
 
83
  public function generete_front_javascript(){
84
  wp_enqueue_script('thickbox');
87
 
88
  }
89
 
90
+ /*###################### The shortcode function ##################*/
91
 
92
  public function wpdevart_comment_shortcode($atts){
93
  $atts = shortcode_atts( array(
106
  return wpdevart_comment_setting::generete_iframe_by_array($atts);
107
  }
108
 
109
+ /*############ Function for generating Facebook_Js_SDK ################*/
110
 
111
  public function generete_facbook_js_sdk(){
112
  if(isset($this->params['wpdevart_comments_box_include_sdk']) && $this->params['wpdevart_comments_box_include_sdk'] === 'no'){
includes/install_database.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- /// Class for installing plugin database
4
 
5
  class wpdevart_comment_install_database{
6
 
@@ -36,7 +36,7 @@ class wpdevart_comment_install_database{
36
 
37
  }
38
 
39
- /*###################### Install database function ##################*/
40
 
41
  public function install_databese(){
42
  foreach( $this->installed_options as $key => $option ){
1
  <?php
2
 
3
+ /// Class for installing the plugin database
4
 
5
  class wpdevart_comment_install_database{
6
 
36
 
37
  }
38
 
39
+ /*###################### Function for installing the database ##################*/
40
 
41
  public function install_databese(){
42
  foreach( $this->installed_options as $key => $option ){
includes/library.php CHANGED
@@ -4,7 +4,8 @@ class wpdevart_comment_setting{
4
  public static $list_of_animations=array('bounce','flash','pulse','rubberBand','shake','swing','tada','wobble','bounceIn','bounceInDown','bounceInLeft','bounceInRight','bounceInUp','fadeIn','fadeInDown','fadeInDownBig','fadeInLeft','fadeInLeftBig','fadeInRight','fadeInRightBig','fadeInUp','fadeInUpBig','flip','flipInX','flipInY','lightSpeedIn','rotateIn','rotateInDownLeft','rotateInDownRight','rotateInUpLeft','rotateInUpRight','rollIn','zoomIn','zoomInDown','zoomInLeft','zoomInRight','zoomInUp');
5
  public static $id_for_iframe=0;
6
 
7
- // Function for Animations
 
8
  public static function get_animations_type_array($animation=''){
9
  if($animation=='' || $animation=='none')
10
  return '';
4
  public static $list_of_animations=array('bounce','flash','pulse','rubberBand','shake','swing','tada','wobble','bounceIn','bounceInDown','bounceInLeft','bounceInRight','bounceInUp','fadeIn','fadeInDown','fadeInDownBig','fadeInLeft','fadeInLeftBig','fadeInRight','fadeInRightBig','fadeInUp','fadeInUpBig','flip','flipInX','flipInY','lightSpeedIn','rotateIn','rotateInDownLeft','rotateInDownRight','rotateInUpLeft','rotateInUpRight','rollIn','zoomIn','zoomInDown','zoomInLeft','zoomInRight','zoomInUp');
5
  public static $id_for_iframe=0;
6
 
7
+ /*############ Function for the animation type ################*/
8
+
9
  public static function get_animations_type_array($animation=''){
10
  if($animation=='' || $animation=='none')
11
  return '';
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: wpdevart
3
  Tags: Facebook, facebook comments, social comments, comments, wordpress comments
4
  Requires at least: 2.9
5
- Tested up to: 5.8.1
6
- Stable tag: 2.3.8
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -584,6 +584,10 @@ Yes, If you are logged in(Fb account) then you will see the moderate options for
584
 
585
  * Changed a default parameter.
586
 
 
 
 
 
587
  ==Step by step guide==
588
 
589
  ### Main options
2
  Contributors: wpdevart
3
  Tags: Facebook, facebook comments, social comments, comments, wordpress comments
4
  Requires at least: 2.9
5
+ Tested up to: 5.8.2
6
+ Stable tag: 2.3.9
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
584
 
585
  * Changed a default parameter.
586
 
587
+ = 2.3.9 ==
588
+
589
+ * Added descriptions for functions.
590
+
591
  ==Step by step guide==
592
 
593
  ### Main options