[]Myke said:
I'm running 6.5.
After installing this fix, did anyone notice the "show all user's posts" when viewing a profile no longer works anymore? The following error message is displayed:
Warning: Compilation failed: nothing to repeat at offset 2 in /path/to/ubb.t/dosearch.php on line 459
I also get the same message if I just try a username search via the search page, except that results are actually shown as well.
Anyone else experience this and have a fix? [/]
Just wanted to share the fix for a problem I reported. BTW, I was getting the same error with the Active Topics and View Recent Messages links.
Anyway, the error seemed to be due to the fact that those specific searches have no search words, yet the fix for this mod assumes there are and starts doing it's string replaces. To fix this, just enclose the fix in an if statement to check for the presence of words before proceeding:
// FIX Search code ===START===
[:"red"]if ($Words != "") {[/]
...
[:"red"]}[/]
// FIX Search code ===END===