The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Quote:
edit: I think I got it fixed. The problem is with the process_quote_removal function. Keep in mind I am running 3.8.4pl2 I edited includes/functions_search.php and made the following changes Search for this block of code: Code:
function process_quote_removal($text, $cancelwords) { $lowertext = strtolower($text); foreach ($cancelwords AS $word) { $word = str_replace('*', '', strtolower($word)); if (strpos($lowertext, $word) !== false) { // we found a highlight word -- keep the quote return "\n" . str_replace('\"', '"', $text) . "\n"; } } return ''; } Code:
if (strpos($lowertext, $word) !== false) so I changed the function to this: Code:
function process_quote_removal($text, $cancelwords) { $lowertext = strtolower($text); foreach ($cancelwords AS $word) { $word = str_replace('*', '', strtolower($word)); if ($word !== '') { if (strpos($lowertext, $word) !== false) { // we found a highlight word -- keep the quote return "\n" . str_replace('\"', '"', $text) . "\n"; } } } return ''; } I have tested the normal search and the search term is still highlighted and I am no longer getting errors during search for more posts by this user.. YMMV. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|