![]() |
I just added the above code to my board and I get an error on this line every time I do a search for a specific word now.
Code:
$post['message']=preg_replace("/(^| |\n|\r|\t|]|>|\")(".$val.")(([.,]+[ $\n\r\t])|$|\"|<|[| |\n|\r|\t)/si", "\1$highl1\2$highl2\3", $post['message']); Code:
Warning: Compilation failed: missing terminating ] for character class at offset 57 in /home/virtual/site3/fst/var/www/html/forum/admin/functions.php on line 358 |
Well i am sorry but i am sorta lost at the replacements part. What do i exactly do. I have a code to find insert. Lol. I am new with replacements because i havent used them that much. Thanks for the quick reply though.
|
bad_madman,
Any ideas yet why I am getting the error I wrote about a couple of posts back? |
|
Ok, that fixed the error I was getting, but now if I search for a word that is not in any messages, it just redraws the screen instead of giving me the GO BACK box. And the highlighted word is in italics too. I like it like that but it might be a good idea to make that an option. :)
|
Quote:
I plan another one couple of additional search options. - Show only posts in which the search string was found. - Show a message (with go back ;)), if the search string wasn't found. |
You are the man! I will be anxiously waiting and wanting this one! :):):)
Quote:
|
Same here ;)
|
me too
|
Quote:
|
All times are GMT. The time now is 06:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|