Changeset 209903
- Timestamp:
- 02/24/2010 09:04:01 PM (16 years ago)
- Location:
- meemi-in-wordpress/trunk
- Files:
-
- 2 edited
-
inc/meemi_comment.php (modified) (1 diff)
-
meemi_in_wordpress_3.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
meemi-in-wordpress/trunk/inc/meemi_comment.php
r208464 r209903 248 248 } 249 249 250 251 function clean_caption($string){252 $stringa = "";253 preg_match_all('/[caption ([a-z A-Z \" - _ =])/', $string, $matches);254 foreach ($matches as $text) {255 // Provides: <body text='black'>256 $stringa = str_replace($text, " ", $stringa);257 }258 259 return $stringa;260 }261 262 263 264 250 ## PARSE STRING OF MEMI COMMENT FOR CHAN AND USERS 265 251 function parse_meemi_comment($stringa, $nome) { -
meemi-in-wordpress/trunk/meemi_in_wordpress_3.php
r208629 r209903 607 607 }elseif ( $posted->post_date != $posted->post_modified and $posted->post_status == "publish" and $_POST['reinvia_meemi_post'] == "true" ) { 608 608 if($meemi_content == "part") { 609 $content_to_send = clean_caption($content_to_send);609 #$content_to_send = clean_caption($content_to_send); 610 610 $content_to_send = substr(strip_tags($posted->post_content),0,400); 611 611 }else { … … 638 638 639 639 global $wpdb; 640 /* 640 641 $table_name = $wpdb->prefix . "tb_meemi_comment"; 641 $insert_meme = "UPDATE ".$table_name." (id_post, id_meme) VALUES ('$post_ID', '00')";642 $insert_meme = "UPDATE ".$table_name." SET id_post= '$post_ID' WHERE id_post = '$post_ID' LIMIT 1"; 642 643 $wpdb->query($insert_meme); 643 644 */ 644 645 $xml_parser = xml_parser_create(); 645 646 $meemi_parser = new MeemiUpdateMeme(); … … 663 664 664 665 if($meemi_content == "part") { 665 $content_to_send = clean_caption($content_to_send);666 #$content_to_send = clean_caption($content_to_send); 666 667 $content_to_send = substr(strip_tags($posted->post_content),0,400); 667 668 }else { … … 703 704 704 705 if($meemi_content == "part") { 705 $content_to_send = clean_caption($content_to_send);706 #$content_to_send = clean_caption($content_to_send); 706 707 $content_to_send = substr(strip_tags($posted->post_content),0,400); 707 708 }else {
Note: See TracChangeset
for help on using the changeset viewer.