Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi, sorry but in my wp-o-matic version 1.0RC4-6 there isn’t wp-content/plugins/wpematico/app/wpematico_dojob.php but there is /wp-content/plugins/wp-o-matic/wpomatic.php.

    There are some differences in code:

    $content = str_ireplace($vars, $replace, ($this->job['campaign_template']) ? stripslashes($this->job['campaign_template']) : '{content}');

    is

    $content = str_ireplace($vars, $replace, ($campaign->template) ? $campaign->template : '{content}');

    and if I insert

    $substrcontent = '';//initialise variable
            $replacewith = '';//initialise variable
           if($this->job['campaign_template'] && stripos('@'.$this->job['campaign_template'],'substrcontent')){
    
                    preg_match_all("/\{substrcontent|\d+\}/", $this->job['campaign_template'], $theNum);
                    $theNum = str_replace('}','',$theNum[0][1]);
                        if(strlen($content) >= $theNum){
                            $substrcontent = '{substrcontent|'.$theNum.'}';
                            $replacewith = snippetgreedy($content,$theNum,'(...)');
                        }
                }

    not work. Why?

    Thanks

Viewing 1 replies (of 1 total)