Changeset 1180153
- Timestamp:
- 06/13/2015 10:38:40 AM (11 years ago)
- Location:
- fb-comments-importer
- Files:
-
- 5 added
- 4 edited
- 16 copied
-
nbproject/project.properties (modified) (1 diff)
-
tags/1.8.0 (added)
-
tags/1.8.0/FBComments.class.inc (copied) (copied from fb-comments-importer/trunk/FBComments.class.inc) (3 diffs)
-
tags/1.8.0/advert.png (copied) (copied from fb-comments-importer/trunk/advert.png)
-
tags/1.8.0/advert_3.png (copied) (copied from fb-comments-importer/trunk/advert_3.png)
-
tags/1.8.0/css (added)
-
tags/1.8.0/css/css.css (copied) (copied from fb-comments-importer/trunk/css/css.css)
-
tags/1.8.0/index.php (copied) (copied from fb-comments-importer/trunk/index.php) (1 diff)
-
tags/1.8.0/js (added)
-
tags/1.8.0/js/script.js (copied) (copied from fb-comments-importer/trunk/js/script.js)
-
tags/1.8.0/manual_import.php (copied) (copied from fb-comments-importer/trunk/manual_import.php)
-
tags/1.8.0/paypal.png (copied) (copied from fb-comments-importer/trunk/paypal.png)
-
tags/1.8.0/readme.txt (copied) (copied from fb-comments-importer/trunk/readme.txt) (2 diffs)
-
tags/1.8.0/templates (added)
-
tags/1.8.0/templates/about_pro.php (copied) (copied from fb-comments-importer/trunk/templates/about_pro.php)
-
tags/1.8.0/templates/home.php (copied) (copied from fb-comments-importer/trunk/templates/home.php)
-
tags/1.8.0/templates/img (added)
-
tags/1.8.0/templates/img/screen1.png (copied) (copied from fb-comments-importer/trunk/templates/img/screen1.png)
-
tags/1.8.0/templates/img/screen2.png (copied) (copied from fb-comments-importer/trunk/templates/img/screen2.png)
-
tags/1.8.0/templates/img/screen3.png (copied) (copied from fb-comments-importer/trunk/templates/img/screen3.png)
-
tags/1.8.0/templates/import_done_tpl.php (copied) (copied from fb-comments-importer/trunk/templates/import_done_tpl.php)
-
tags/1.8.0/update_form.php (copied) (copied from fb-comments-importer/trunk/update_form.php)
-
trunk/FBComments.class.inc (modified) (3 diffs)
-
trunk/index.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fb-comments-importer/nbproject/project.properties
r1108744 r1180153 1 1 include.path=${php.global.include.path} 2 php.version=PHP_5 42 php.version=PHP_55 3 3 source.encoding=UTF-8 4 4 src.dir=. -
fb-comments-importer/tags/1.8.0/FBComments.class.inc
r1180151 r1180153 410 410 $id = trim($id); 411 411 $token = $this->GenerateAccessToken(); 412 $file = $this->GetHTTPSData('https://graph.facebook.com/v2.3/'.$id.'/comments?'.$token.'&limit=10000&fields=id,from,message,created_time,attachment,comments.limit(10000){id,from,message,created_time }');412 $file = $this->GetHTTPSData('https://graph.facebook.com/v2.3/'.$id.'/comments?'.$token.'&limit=10000&fields=id,from,message,created_time,attachment,comments.limit(10000){id,from,message,created_time,attachment}'); 413 413 $FBobject = json_decode($file); 414 414 … … 475 475 $data['wp_date'] = $this->GenerateTimeFromString($SingleCommentData->created_time); 476 476 $data['profile_link'] = 'http://www.facebook.com/'.$SingleCommentData->from->id; 477 if(isset($SingleCommentData->attachment->media->image->src) && isset($SingleCommentData->attachment->url)){ 478 $data['image'] = serialize(array("image"=>$SingleCommentData->attachment->media->image->src,"url"=>$SingleCommentData->attachment->url)); 479 } 477 480 $data['double_comment_check'] = $this->IsDoubleComment($post_id, 'facebook-comment-importer-plugin__'.$SingleCommentData->id,$SingleCommentData->message,$all_comments_for_post); 481 478 482 $Comments[] = $data; 479 483 unset($SingleCommentData); … … 565 569 'comment_approved' => $comments_status_value, 566 570 ); 567 wp_insert_comment($data); 571 $reply_id = wp_insert_comment($data); 572 573 // add comment meta for images 574 if(isset($replay['image'])){ 575 add_comment_meta( $reply_id, 'fb_comments_importer_comment_image', $replay['image'] ); 576 } 568 577 $i++; 569 578 -
fb-comments-importer/tags/1.8.0/index.php
r1180151 r1180153 4 4 Plugin URI: http://wp-resources.com/ 5 5 Description: Imports Facebook comments to your Wordpress site and gives it a SEO boost. 6 Version: 1. 7.96 Version: 1.8.0 7 7 Author: Ivan M 8 8 */ -
fb-comments-importer/tags/1.8.0/readme.txt
r1180151 r1180153 5 5 Requires at least: 3.0 6 6 Tested up to: 4.2 7 Stable tag: 1. 7.97 Stable tag: 1.8.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 58 58 59 59 == Changelog == 60 61 = 1.8.0 2015-06-13 = 62 * Fixed bug related with import images inside replies 60 63 61 64 = 1.7.9 2015-06-08 = -
fb-comments-importer/trunk/FBComments.class.inc
r1170988 r1180153 410 410 $id = trim($id); 411 411 $token = $this->GenerateAccessToken(); 412 $file = $this->GetHTTPSData('https://graph.facebook.com/v2.3/'.$id.'/comments?'.$token.'&limit=10000&fields=id,from,message,created_time,attachment,comments.limit(10000){id,from,message,created_time }');412 $file = $this->GetHTTPSData('https://graph.facebook.com/v2.3/'.$id.'/comments?'.$token.'&limit=10000&fields=id,from,message,created_time,attachment,comments.limit(10000){id,from,message,created_time,attachment}'); 413 413 $FBobject = json_decode($file); 414 414 … … 475 475 $data['wp_date'] = $this->GenerateTimeFromString($SingleCommentData->created_time); 476 476 $data['profile_link'] = 'http://www.facebook.com/'.$SingleCommentData->from->id; 477 if(isset($SingleCommentData->attachment->media->image->src) && isset($SingleCommentData->attachment->url)){ 478 $data['image'] = serialize(array("image"=>$SingleCommentData->attachment->media->image->src,"url"=>$SingleCommentData->attachment->url)); 479 } 477 480 $data['double_comment_check'] = $this->IsDoubleComment($post_id, 'facebook-comment-importer-plugin__'.$SingleCommentData->id,$SingleCommentData->message,$all_comments_for_post); 481 478 482 $Comments[] = $data; 479 483 unset($SingleCommentData); … … 565 569 'comment_approved' => $comments_status_value, 566 570 ); 567 wp_insert_comment($data); 571 $reply_id = wp_insert_comment($data); 572 573 // add comment meta for images 574 if(isset($replay['image'])){ 575 add_comment_meta( $reply_id, 'fb_comments_importer_comment_image', $replay['image'] ); 576 } 568 577 $i++; 569 578 -
fb-comments-importer/trunk/index.php
r1176493 r1180153 4 4 Plugin URI: http://wp-resources.com/ 5 5 Description: Imports Facebook comments to your Wordpress site and gives it a SEO boost. 6 Version: 1. 7.96 Version: 1.8.0 7 7 Author: Ivan M 8 8 */ -
fb-comments-importer/trunk/readme.txt
r1176493 r1180153 5 5 Requires at least: 3.0 6 6 Tested up to: 4.2 7 Stable tag: 1. 7.97 Stable tag: 1.8.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 58 58 59 59 == Changelog == 60 61 = 1.8.0 2015-06-13 = 62 * Fixed bug related with import images inside replies 60 63 61 64 = 1.7.9 2015-06-08 =
Note: See TracChangeset
for help on using the changeset viewer.