Ombra
01-02-2010, 08:00 AM
I'd like to strip all the quotes in the posts. How do I do this? I know that search.php strips the quotes in the search results, but I don't know how to translate this into physically removing the quotes. I don't have a preference whether this is done directly through the database or a php script.
I'm not sure if the method would be similar, but this is what I found in search.php that seems to strip the quotes from search results:
$post['original_pagetext'] = $post['pagetext'];
$strip_quotes = true;
$post['pagetext'] = preg_replace('#\[quote(=("|"|\'|)??.*\\2)?\](((?>[^\[]*?|(?R)|.))*)\[/quote\]#siUe', "process_quote_removal('\\3', \$display['highlight'])", $post['pagetext']);
I'm not sure if the method would be similar, but this is what I found in search.php that seems to strip the quotes from search results:
$post['original_pagetext'] = $post['pagetext'];
$strip_quotes = true;
$post['pagetext'] = preg_replace('#\[quote(=("|"|\'|)??.*\\2)?\](((?>[^\[]*?|(?R)|.))*)\[/quote\]#siUe', "process_quote_removal('\\3', \$display['highlight'])", $post['pagetext']);