Changeset 359554
- Timestamp:
- 03/13/2011 07:11:42 PM (15 years ago)
- Location:
- reflect/trunk
- Files:
-
- 3 edited
-
php/controllers/bullets_api.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
reflect.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
reflect/trunk/php/controllers/bullets_api.php
r344643 r359554 181 181 'comment_id' => (int)$comment_id, 182 182 'bullet_id' => (int)$bullet_id, 183 ); 184 185 $wpdb->insert( $wpdb->prefix . 'reflect_bullet_current', $params ); 186 } 187 183 ); 184 185 $wpdb->insert( $wpdb->prefix . 'reflect_bullet_current', $params ); 186 187 $comment = $wpdb->get_row("SELECT * FROM " . $wpdb->prefix . "comments WHERE comment_id = $comment_id"); 188 $post = $wpdb->get_row("SELECT * FROM " . $wpdb->prefix . "posts WHERE id = $comment->comment_post_ID"); 189 $post_title = $post->post_title; 190 $link = $post->guid; 191 $comment_author = $comment->comment_author; 192 193 try { 194 $subject = "$user summarized a comment you wrote in \"$post_title\""; 195 $message = "Hi $comment_author,\n\n$user believes that you made the following point:\n\n\"$bullet_text\"\n\nTo verify whether this is accurate or not, please visit $link and login.\n\nThanks!"; 196 mail($comment->comment_author_email, $subject, $message); 197 } catch (Exception $e) {} 198 } 188 199 return json_encode(array("insert_id"=>$bullet_id, "u"=>$user, "rev_id" => $bullet_rev)); 189 200 } … … 239 250 //anons can't delete, unless its their own 240 251 //no-one can post summaries of their own comments 241 242 /*if($current_user->user_level>=8) {243 // administrator244 } else if($current_user->user_level>=3) {245 // editor246 } else if($current_user->user_level==2) {247 // author248 } else if($current_user->user_level==1) {249 // contributor250 } else if($current_user->user_level==0) {251 // subscriber252 }*/253 252 254 253 /* -
reflect/trunk/readme.txt
r356226 r359554 64 64 * Very minor tweaking to make sentence parsing better and proper rendering of escaped text. 65 65 66 = 0.1.6 = 67 * Added email notifications that are sent to a commenter when someone summarizes their comment. 68 66 69 == Upgrade Notice == 67 70 … … 74 77 = 0.1.5 = 75 78 * Very minor tweaking to make sentence parsing better and proper rendering of escaped text. 79 80 = 0.1.6 = 81 * Added email notifications that are sent to a commenter when someone summarizes their comment. -
reflect/trunk/reflect.php
r356219 r359554 4 4 Plugin URI: http://wordpress.org/extend/plugins/reflect/ 5 5 Description: Crowdsourced comment summarization. Helps people listen. Helps everyone find the useful points. 6 Version: 0.1. 56 Version: 0.1.6 7 7 Author: Travis Kriplean 8 8 Author URI: http://www.cs.washington.edu/homes/travis/
Note: See TracChangeset
for help on using the changeset viewer.