Jump to content

attila2452

Members
  • Posts

    220
  • Joined

  • Last visited

About attila2452

  • Birthday 12/25/1991

Previous Fields

  • Languages
    HTML5, CSS3, jQuery (a bit), {soon PHP and SQL}

Contact Methods

  • MSN
    attilahajzer@live.com
  • Website URL
    http://attilahajzer.host-ed.net/
  • ICQ
    0

Profile Information

  • Location
    Niagara Falls, Ontario

attila2452's Achievements

Member

Member (2/7)

4

Reputation

  1. I’m getting that warning on this site :http://lottoholic.com/soccer/ I’ve gone into the ftp and cheched the file and nothing seems to be out of order, i even compaired the file to another CBPress installment on another website, it’s the same file, same syntax, no error on the other site either. i’m thinking about copying and pasting the code from the one site to the next. but i don’t want to really mess things up. can someone give some advice? here’s the code block. $new = array(); $chunks = $d; $chunks = str_replace(' and', '. and', $chunks); $chunks = str_replace(',', '.', $chunks); $chunks = str_replace('!', '.', $chunks); $chunks = explode('.',$chunks); $words = $this->get_word_filter_array(); foreach($chunks as $sentence) { $stop = 0; foreach($words as $word) { $pos = strpos(strtolower($sentence), strtolower($word)); if ($pos !== false) { $stop = 1; } } if(! $stop){ $new[] = $sentence; } } $new = implode('.',$new); $d = $new; if(trim($d) == '' || strlen(trim($d)) < 3){ $d = $this->title; } } so that’s the code. Line 1385 is the line above “foreach($word as $word) {” .. yeah thats right.. the blank one. class.prod.txt
×
×
  • Create New...