WpDevArt Facebook comments - Version 1.0.5

Version Description

  • Fixed some mistakes.

Facebook comments WordPress step by step guide

Facebook Comments plugin main options

  • APP ID - Type here your Facebook App ID
  • Title - Type here Facebook comments box title
  • Color scheme - Select Facebook comments box Color scheme
  • Title text color - Select Facebook comments box title text color
  • Title font-size - Type Facebook comments box title font-size
  • Title font family - Select Facebook comments box title font family
  • Title position - Select Facebook comments box title position
  • Display comment on - Select where to display Facebook comments
  • Comment box width - Type here the Facebook comments box width
  • Number of comments show - Type here the comments of Facebook comments to display
  • Animation effect - Select the animation effect for Facebook comments box
  • Background color - Select Facebook comments background color
  • Facebook comments position -Select Facebook comments box position(before or after WordPress standard comments)
  • Facebook comments language - Type here Facebook comments language code(en_US,de_DE...)

Adding Facebook Comments plugin shortcode to 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="Facebook Comment" 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="Facebook Comment" 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 Facebook comments shoetcode attributes.

curent_url - Type the URL of a page from where you need to show Facebook comments title_text - Type here Facebook comments box title title_text_color - Select Facebook comments box title color title_text_font_size - Type Facebook comments box title font-size title_text_font_famely - Select Facebook comments box title font family title_text_position - Select Facebook comments box title position width - Type here the Facebook comments box width count_of_comments - Type here the comments of Facebook comments to display bg_color - Select Facebook comments background color animation_effect - Select the animation effect for Facebook comments box

Dear users, we also recommend you to take a look for this useful plugins - WordPress Coming Soon, WordPress Poll plugin, WordPress Countdown plugin, WordPress YouTube, WordPress Facebook like box .

Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

facebook-comment.php CHANGED
@@ -3,14 +3,14 @@
3
  * Plugin Name: Wpdevart Facebook comments
4
  * Plugin URI: http://wpdevart.com/wordpress-facebook-comments-plugin/
5
  * Description: Our WordPress Facebook comments plugin will help you to display Facebook Comments box on your website. You can use Facebook Comments box on your pages/posts.
6
- * Version: 1.0.4
7
  * Author: wpdevart
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
10
 
11
 
12
  class wpdevart_comment_main{
13
- // required variables
14
 
15
  private $wpdevart_comment_plugin_url;
16
 
3
  * Plugin Name: Wpdevart Facebook comments
4
  * Plugin URI: http://wpdevart.com/wordpress-facebook-comments-plugin/
5
  * Description: Our WordPress Facebook comments plugin will help you to display Facebook Comments box on your website. You can use Facebook Comments box on your pages/posts.
6
+ * Version: 1.0.5
7
  * Author: wpdevart
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
10
 
11
 
12
  class wpdevart_comment_main{
13
+ // required variables
14
 
15
  private $wpdevart_comment_plugin_url;
16
 
includes/admin_menu.php CHANGED
@@ -167,16 +167,17 @@ Also, here is another tutorial of creating App Id, you can check it - <a style="
167
  <p>Also, you can insert the Facebook Comments box manually in any page, post or even in Php code by using the shortcode.</p>
168
 
169
  <p><strong>Here's an example of using the shortcode in posts, pages:</strong></p>
170
- <p><code>[wpdevart_facebook_comment curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Facebook Comment" 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" count_of_comments="2" ]</code></p>
171
 
172
  <p><strong>Here's an example of using the shortcode in PHP code:</strong></p>
173
- <p><code>&lt;?php echo do_shortcode('[wpdevart_facebook_comment curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Facebook Comment" 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" count_of_comments="2" ]'); ?&gt;</code></p>
174
 
175
  <p><strong>Here are explanation of Facebook comments shortcode attributes.</strong></p>
176
 
177
  <p><strong>curent_url</strong> - Type the URL of a page from where you need to show Facebook comments </p>
178
  <p><strong>title_text</strong> - Type here Facebook comments box title</p>
179
  <p><strong>colorscheme</strong> <span class="pro_feature"> (pro)</span> - Select Facebook comments box color scheme.Can be "light" or "dark".</p>
 
180
  <p><strong>title_text_color</strong> - Select Facebook comments box title text color</p>
181
  <p><strong>title_text_font_size</strong> - Type Facebook comments box title font-size</p>
182
  <p><strong>title_text_font_famely</strong> - Select Facebook comments box title font family</p>
@@ -241,6 +242,18 @@ Also, here is another tutorial of creating App Id, you can check it - <a style="
241
  <option value="dark">Dark</option>
242
  </select>
243
  </td>
 
 
 
 
 
 
 
 
 
 
 
 
244
  </tr>
245
  <tr >
246
  <td>
167
  <p>Also, you can insert the Facebook Comments box manually in any page, post or even in Php code by using the shortcode.</p>
168
 
169
  <p><strong>Here's an example of using the shortcode in posts, pages:</strong></p>
170
+ <p><code>[wpdevart_facebook_comment curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Facebook Comment" order_type="social" 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" count_of_comments="2" ]</code></p>
171
 
172
  <p><strong>Here's an example of using the shortcode in PHP code:</strong></p>
173
+ <p><code>&lt;?php echo do_shortcode('[wpdevart_facebook_comment curent_url="http://developers.facebook.com/docs/plugins/comments/" order_type="social" title_text="Facebook Comment" 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" count_of_comments="2" ]'); ?&gt;</code></p>
174
 
175
  <p><strong>Here are explanation of Facebook comments shortcode attributes.</strong></p>
176
 
177
  <p><strong>curent_url</strong> - Type the URL of a page from where you need to show Facebook comments </p>
178
  <p><strong>title_text</strong> - Type here Facebook comments box title</p>
179
  <p><strong>colorscheme</strong> <span class="pro_feature"> (pro)</span> - Select Facebook comments box color scheme.Can be "light" or "dark".</p>
180
+ <p><strong>order_type</strong> - Select Facebook comments box order type.The order to use when displaying comments. Can be "social", "reverse_time", or "time". </p>
181
  <p><strong>title_text_color</strong> - Select Facebook comments box title text color</p>
182
  <p><strong>title_text_font_size</strong> - Type Facebook comments box title font-size</p>
183
  <p><strong>title_text_font_famely</strong> - Select Facebook comments box title font family</p>
242
  <option value="dark">Dark</option>
243
  </select>
244
  </td>
245
+ </tr>
246
+ <tr >
247
+ <td>
248
+ Order Type <span title="Select Facebook comments box order type." class="desription_class">?</span>
249
+ </td>
250
+ <td>
251
+ <select id="wpdevart_comments_box_order_type">
252
+ <option <?php selected($page_parametrs['wpdevart_comments_box_order_type'],'light') ?> value="social" >Social</option>
253
+ <option <?php selected($page_parametrs['wpdevart_comments_box_order_type'],'reverse_time') ?> value="reverse_time">Newest</option>
254
+ <option <?php selected($page_parametrs['wpdevart_comments_box_order_type'],'time') ?> value="time">Oldest</option>
255
+ </select>
256
+ </td>
257
  </tr>
258
  <tr >
259
  <td>
includes/front_end.php CHANGED
@@ -50,7 +50,8 @@ class wpdevart_comment_front_end{
50
 
51
  $params=array(
52
  "facebook_app_id" => $this->params['wpdevart_comment_facebook_app_id'],
53
- "curent_url" => get_permalink(),
 
54
  "title_text" => $this->params['wpdevart_comment_title_text'],
55
  "title_text_color" => $this->params['wpdevart_comment_title_text_color'],
56
  "title_text_font_size" => $this->params['wpdevart_comment_title_text_font_size'],
@@ -77,7 +78,8 @@ class wpdevart_comment_front_end{
77
  public function wpdevart_comment_shortcode($atts){
78
  $atts = shortcode_atts( array(
79
  "facebook_app_id" => $this->params['wpdevart_comment_facebook_app_id'],
80
- "curent_url" => get_permalink(),
 
81
  "title_text" => $this->params['wpdevart_comment_title_text'],
82
  "title_text_color" => $this->params['wpdevart_comment_title_text_color'],
83
  "title_text_font_size" => $this->params['wpdevart_comment_title_text_font_size'],
50
 
51
  $params=array(
52
  "facebook_app_id" => $this->params['wpdevart_comment_facebook_app_id'],
53
+ "curent_url" => get_permalink(),
54
+ "order_type" => $this->params['wpdevart_comments_box_order_type'],
55
  "title_text" => $this->params['wpdevart_comment_title_text'],
56
  "title_text_color" => $this->params['wpdevart_comment_title_text_color'],
57
  "title_text_font_size" => $this->params['wpdevart_comment_title_text_font_size'],
78
  public function wpdevart_comment_shortcode($atts){
79
  $atts = shortcode_atts( array(
80
  "facebook_app_id" => $this->params['wpdevart_comment_facebook_app_id'],
81
+ "curent_url" => get_permalink(),
82
+ "order_type" => $this->params['wpdevart_comments_box_order_type'],
83
  "title_text" => $this->params['wpdevart_comment_title_text'],
84
  "title_text_color" => $this->params['wpdevart_comment_title_text_color'],
85
  "title_text_font_size" => $this->params['wpdevart_comment_title_text_font_size'],
includes/install_database.php CHANGED
@@ -19,6 +19,7 @@ class wpdevart_comment_install_database{
19
  "wpdevart_comments_box"=>array(
20
 
21
  "wpdevart_comment_facebook_app_id" => '',
 
22
  "wpdevart_comment_title_text" => 'Facebook Comments',
23
  "wpdevart_comment_title_text_color" => '#000000',
24
  "wpdevart_comment_title_text_font_size" => '22',
19
  "wpdevart_comments_box"=>array(
20
 
21
  "wpdevart_comment_facebook_app_id" => '',
22
+ "wpdevart_comments_box_order_type" => 'social',
23
  "wpdevart_comment_title_text" => 'Facebook Comments',
24
  "wpdevart_comment_title_text_color" => '#000000',
25
  "wpdevart_comment_title_text_font_size" => '22',
includes/library.php CHANGED
@@ -22,6 +22,7 @@ class wpdevart_comment_setting{
22
 
23
  "iframe_id" => 'wpdevar_comment_'.self::$id_for_iframe,
24
  "facebook_app_id" => '',
 
25
  "curent_url" => get_permalink(),
26
  "title_text" => 'Comments',
27
  "title_text_color" => '#000000',
@@ -46,7 +47,7 @@ class wpdevart_comment_setting{
46
 
47
  $output_code.='<div id="'.$params['iframe_id'].'" style="width:'.( (strpos($params['width'],'%')===false)?$params['width'].'px':$params['width']).';text-align:'.$params['title_text_position'].';">
48
  <span style="padding: 10px;font-size:'.$params['title_text_font_size'].'px;font-family:'.$params['title_text_font_famely'].';color:'.$params['title_text_color'].';">'.$params['title_text'].'</span>
49
- <div class="fb-comments" data-href="'.$params['curent_url'].'" data-numposts="'.$params['count_of_comments'].'" data-width="'.$params['width'].'" style="display:block;"></div></div>';
50
  return $output_code;
51
  }
52
  public static function generete_animation_select($select_id='',$curent_effect='none'){
22
 
23
  "iframe_id" => 'wpdevar_comment_'.self::$id_for_iframe,
24
  "facebook_app_id" => '',
25
+ "order_type" => 'social',
26
  "curent_url" => get_permalink(),
27
  "title_text" => 'Comments',
28
  "title_text_color" => '#000000',
47
 
48
  $output_code.='<div id="'.$params['iframe_id'].'" style="width:'.( (strpos($params['width'],'%')===false)?$params['width'].'px':$params['width']).';text-align:'.$params['title_text_position'].';">
49
  <span style="padding: 10px;font-size:'.$params['title_text_font_size'].'px;font-family:'.$params['title_text_font_famely'].';color:'.$params['title_text_color'].';">'.$params['title_text'].'</span>
50
+ <div class="fb-comments" data-href="'.$params['curent_url'].'" data-order-by="'.$params['order_type'].'" data-numposts="'.$params['count_of_comments'].'" data-width="'.$params['width'].'" style="display:block;"></div></div>';
51
  return $output_code;
52
  }
53
  public static function generete_animation_select($select_id='',$curent_effect='none'){
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Facebook comments WordPress ===
2
  Contributors: wpdevart
3
- Tags: facebook comments, facebook comment, facebook comment notification, seo facebook comments, facebook comments import, facebook comment system, comments, comment, wordpress comment, wordpress comments, Facebook, facebook badge, facebook connect, facebook group, facebook integration, Facebook like widget, facebook meta, facebook meta tag, Facebook Open Graph, Facebook Page, facebook platform, facebook plugin, post to facebook, Facebook feed, facebook wall for wordpress, Facebook Stream, Facebook Widget
4
  Requires at least: 2.9
5
  Tested up to: 4.3.1
6
- Stable tag: 1.0.4
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -31,6 +31,7 @@ You can disable Facebook Comments on any page/post you need. There are some usef
31
  * **Ability to select Comments box Title position.**
32
  * **Ability to select where to display Facebook Comments box.**
33
  * **Ability to set Facebook Comments box width.**
 
34
  * **Ability to set number of comments of Facebook Comments box.**
35
  * **Ability to set Facebook Comments box language.**
36
 
@@ -75,7 +76,7 @@ Here is an example of using the shortcode in posts, pages:
75
 
76
  `[wpdevart_facebook_comment facebook_app_id="1638418549774901" curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Facebook Comment" 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" ]`
77
 
78
- Here's an example of using the shortcode in PHP code:
79
 
80
  `<?php echo do_shortcode('[wpdevart_facebook_comment curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Facebook Comment" 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" count_of_comments="2" ]'); ?>`
81
 
@@ -106,6 +107,14 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
106
 
107
  * Fixed issues.
108
 
 
 
 
 
 
 
 
 
109
  ==Facebook comments WordPress step by step guide==
110
 
111
  ### Facebook Comments plugin main options
@@ -127,7 +136,7 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
127
 
128
  ### Adding Facebook Comments plugin shortcode to pages, posts and in Php code
129
 
130
- Here's an example of using the shortcode in posts, pages:
131
  `[wpdevart_facebook_comment facebook_app_id="1638418549774901" curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Facebook Comment" 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" ]`
132
 
133
  Here's an example of using the shortcode in PHP code:
1
  === Facebook comments WordPress ===
2
  Contributors: wpdevart
3
+ Tags: facebook comments, facebook comment, facebook comment notification, seo facebook comments, facebook comments import, facebook comment system, comments, comment, wordpress comment, wordpress comments, Facebook, facebook badge, facebook connect, facebook group, facebook integration, Facebook like widget, facebook meta, facebook meta tag, Facebook Open Graph, Facebook Page, facebook platform, facebook plugin, post to facebook, Facebook feed, facebook wall for wordpress, Facebook Stream, social, responsive
4
  Requires at least: 2.9
5
  Tested up to: 4.3.1
6
+ Stable tag: 1.0.5
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
31
  * **Ability to select Comments box Title position.**
32
  * **Ability to select where to display Facebook Comments box.**
33
  * **Ability to set Facebook Comments box width.**
34
+ * **Ability to set Facebook Comments ordering.**
35
  * **Ability to set number of comments of Facebook Comments box.**
36
  * **Ability to set Facebook Comments box language.**
37
 
76
 
77
  `[wpdevart_facebook_comment facebook_app_id="1638418549774901" curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Facebook Comment" 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" ]`
78
 
79
+ Here is an example of using the shortcode in PHP code:
80
 
81
  `<?php echo do_shortcode('[wpdevart_facebook_comment curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Facebook Comment" 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" count_of_comments="2" ]'); ?>`
82
 
107
 
108
  * Fixed issues.
109
 
110
+ = 1.0.4 =
111
+
112
+ * Fixed notices.
113
+
114
+ = 1.0.5 =
115
+
116
+ * Fixed some mistakes.
117
+
118
  ==Facebook comments WordPress step by step guide==
119
 
120
  ### Facebook Comments plugin main options
136
 
137
  ### Adding Facebook Comments plugin shortcode to pages, posts and in Php code
138
 
139
+ Here is an example of using the shortcode in posts, pages:
140
  `[wpdevart_facebook_comment facebook_app_id="1638418549774901" curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Facebook Comment" 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" ]`
141
 
142
  Here's an example of using the shortcode in PHP code: