Version Description
=
- Added an SDK option.
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
Release Info
Developer | wpdevart |
Plugin | WpDevArt Facebook comments |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.9 to 2.1.0
- facebook-comment.php +1 -1
- includes/admin_menu.php +17 -3
- includes/front_end.php +3 -0
- includes/install_database.php +2 -1
- readme.txt +5 -1
@@ -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.0
|
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.1.0
|
8 |
* Author: wpdevart
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
@@ -19,9 +19,12 @@ class wpdevart_comment_admin_menu{
|
|
19 |
$this->plugin_url=$params['plugin_url'];
|
20 |
else
|
21 |
$this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
/*###################### Meta Box function ##################*/
|
@@ -389,6 +392,17 @@ Also, here is another tutorial(from other source) of creating App Id, you can ch
|
|
389 |
<input type="text" name="wpdevart_comments_box_locale" id="wpdevart_comments_box_locale" value="<?php echo $page_parametrs['wpdevart_comments_box_locale'] ?>">(en_US,de_DE...)
|
390 |
</td>
|
391 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
392 |
|
393 |
</tbody>
|
394 |
<tfoot>
|
19 |
$this->plugin_url=$params['plugin_url'];
|
20 |
else
|
21 |
$this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
|
22 |
+
add_action( 'wp_ajax_wpdevart_comment_page_save', array($this,'save_in_databese') );
|
23 |
+
add_action( 'add_meta_boxes', array($this,'wpdevart_comment_add_meta_box') );
|
24 |
+
add_action( 'save_post', array($this,'wpdevar_save_post') );
|
25 |
+
$this->text_parametrs['parametrs_sucsses_saved'] = "Saved";
|
26 |
+
$this->text_parametrs['error_in_saving'] = "Error saving";
|
27 |
+
$this->text_parametrs['authorize_problem'] = "Authorize problem";
|
28 |
}
|
29 |
|
30 |
/*###################### Meta Box function ##################*/
|
392 |
<input type="text" name="wpdevart_comments_box_locale" id="wpdevart_comments_box_locale" value="<?php echo $page_parametrs['wpdevart_comments_box_locale'] ?>">(en_US,de_DE...)
|
393 |
</td>
|
394 |
</tr>
|
395 |
+
<tr>
|
396 |
+
<td>
|
397 |
+
Include SDK code <span style="color:red" title="Important - if you don't use any other FB plugin, then choose to include the SDK code, otherwise the plugin will not work. If you choose to not include the SDK code, then our plugin will remove that code." class="desription_class">?</span>
|
398 |
+
</td>
|
399 |
+
<td>
|
400 |
+
<select id="wpdevart_comments_box_include_sdk">
|
401 |
+
<option <?php echo selected( $page_parametrs['wpdevart_comments_box_include_sdk'], 'yes' ) ?> value="yes">Yes</option>
|
402 |
+
<option <?php echo selected( $page_parametrs['wpdevart_comments_box_include_sdk'], 'no' ) ?> value="no">No</option>
|
403 |
+
</select>
|
404 |
+
</td>
|
405 |
+
</tr>
|
406 |
|
407 |
</tbody>
|
408 |
<tfoot>
|
@@ -109,6 +109,9 @@ class wpdevart_comment_front_end{
|
|
109 |
/*############ Generate Facebook_Js_SDK function ################*/
|
110 |
|
111 |
public function generete_facbook_js_sdk(){
|
|
|
|
|
|
|
112 |
?>
|
113 |
<div id="fb-root"></div>
|
114 |
<script async defer crossorigin="anonymous">(function(d, s, id) {
|
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'){
|
113 |
+
return false;
|
114 |
+
}
|
115 |
?>
|
116 |
<div id="fb-root"></div>
|
117 |
<script async defer crossorigin="anonymous">(function(d, s, id) {
|
@@ -28,7 +28,8 @@ class wpdevart_comment_install_database{
|
|
28 |
"wpdevart_comments_box_show_in" => '{"home":true,"post":true,"page":true}',
|
29 |
"wpdevart_comments_box_width" => '100%',
|
30 |
"wpdevart_comments_box_count_of_comments" => '8',
|
31 |
-
"wpdevart_comments_box_locale" => 'en_US',
|
|
|
32 |
)
|
33 |
);
|
34 |
|
28 |
"wpdevart_comments_box_show_in" => '{"home":true,"post":true,"page":true}',
|
29 |
"wpdevart_comments_box_width" => '100%',
|
30 |
"wpdevart_comments_box_count_of_comments" => '8',
|
31 |
+
"wpdevart_comments_box_locale" => 'en_US',
|
32 |
+
"wpdevart_comments_box_include_sdk" => 'yes',
|
33 |
)
|
34 |
);
|
35 |
|
@@ -3,7 +3,7 @@ Contributors: wpdevart
|
|
3 |
Tags: Facebook, facebook comments, facebook comment plugin, comments, wordpress comments
|
4 |
Requires at least: 2.9
|
5 |
Tested up to: 5.7
|
6 |
-
Stable tag: 2.0
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -468,6 +468,10 @@ Yes, If you are logged in(Fb account) then you will see the moderate options for
|
|
468 |
|
469 |
* Updated SDK version.
|
470 |
|
|
|
|
|
|
|
|
|
471 |
==Step by step guide==
|
472 |
|
473 |
### Main options
|
3 |
Tags: Facebook, facebook comments, facebook comment plugin, comments, wordpress comments
|
4 |
Requires at least: 2.9
|
5 |
Tested up to: 5.7
|
6 |
+
Stable tag: 2.1.0
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
468 |
|
469 |
* Updated SDK version.
|
470 |
|
471 |
+
= 2.1.0 ==
|
472 |
+
|
473 |
+
* Added an SDK option.
|
474 |
+
|
475 |
==Step by step guide==
|
476 |
|
477 |
### Main options
|