Plugin Directory

Changeset 209903


Ignore:
Timestamp:
02/24/2010 09:04:01 PM (16 years ago)
Author:
vincenzodb
Message:
 
Location:
meemi-in-wordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • meemi-in-wordpress/trunk/inc/meemi_comment.php

    r208464 r209903  
    248248}   
    249249
    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 
    264250## PARSE STRING OF MEMI COMMENT FOR CHAN AND USERS
    265251function parse_meemi_comment($stringa, $nome) {
  • meemi-in-wordpress/trunk/meemi_in_wordpress_3.php

    r208629 r209903  
    607607    }elseif ( $posted->post_date != $posted->post_modified and $posted->post_status == "publish" and $_POST['reinvia_meemi_post'] == "true" ) {
    608608            if($meemi_content == "part") {
    609                 $content_to_send = clean_caption($content_to_send);
     609                #$content_to_send = clean_caption($content_to_send);
    610610                $content_to_send = substr(strip_tags($posted->post_content),0,400);
    611611            }else {
     
    638638               
    639639                global $wpdb;
     640                /*
    640641                $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";
    642643                $wpdb->query($insert_meme);
    643                
     644                */
    644645                $xml_parser = xml_parser_create();
    645646                $meemi_parser = new MeemiUpdateMeme();
     
    663664           
    664665            if($meemi_content == "part") {
    665                 $content_to_send = clean_caption($content_to_send);
     666                #$content_to_send = clean_caption($content_to_send);
    666667                $content_to_send = substr(strip_tags($posted->post_content),0,400);
    667668            }else {
     
    703704               
    704705                if($meemi_content == "part") {
    705                     $content_to_send = clean_caption($content_to_send);
     706                    #$content_to_send = clean_caption($content_to_send);
    706707                    $content_to_send = substr(strip_tags($posted->post_content),0,400);
    707708                }else {
Note: See TracChangeset for help on using the changeset viewer.