vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add Search/Sort/Order in thread view (https://vborg.vbsupport.ru/showthread.php?t=39947)

Boofo 06-21-2002 05:42 PM

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']);
The error I get is:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Any ideas how I can fix this, please? :)

BigJohnson 06-21-2002 06:58 PM

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.

Boofo 06-22-2002 12:53 AM

bad_madman,

Any ideas yet why I am getting the error I wrote about a couple of posts back?

bad_madman 06-22-2002 01:07 AM

Quote:

Originally posted by Boofo
bad_madman,

Any ideas yet why I am getting the error I wrote about a couple of posts back?

Ouh sorry.
The code from my post was wrong.
Having been missing a couple of things there.
Replace the code in the file admin/functions.php with the new code in this post.

Boofo 06-22-2002 01:23 AM

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:

Originally posted by bad_madman
Ouh sorry.
The code from my post was wrong.
Having been missing a couple of things there.
Replace the code in the file admin/functions.php with the new code in this post.


bad_madman 06-22-2002 02:35 AM

Quote:

Originally posted by Boofo
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. :)
Ok. You have persuaded me... *fgg
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.

Boofo 06-22-2002 02:39 AM

You are the man! I will be anxiously waiting and wanting this one! :):):)

Quote:

Originally posted by bad_madman

Ok. You have persuaded me... *fgg
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.


Velocd 06-22-2002 02:59 AM

Same here ;)

Smoothie 06-22-2002 04:26 AM

me too

BigJohnson 06-22-2002 08:01 AM

Quote:

Originally posted by BigJohnson
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.
Can you please help me with this.


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
  • Page Generation 0.01806 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete