PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Submissions

Reply
 
Thread Tools
Old 11-26-2003, 07:28 PM   #1
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Small Highlight Patch

Hi. When doing a search on keyword, if keyword is followed immediately by a period, and if keyword is not in any other snippet, PhpDig will return the resulting page but won't highlight the keyword. To fix this, do the following.

In search_function.php find:
PHP Code:
$stop_regs "[][(){}[:blank:]=&?!&#%\$£*@+%:;,'\"]"
and replace with the following:
PHP Code:
$stop_regs "[][(){}[:blank:]=&?!&#%\$£*@+%:;,\\.'\"]"
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove PHP short tags (patch) blueyed Mod Submissions 0 11-22-2006 06:29 AM
Highlight password-protected content with padlock? mr_ruskin How-to Forum 1 12-15-2004 04:59 AM
Highlight for all templates manfred Bug Tracker 0 06-08-2004 02:06 AM
Version 1.6.3 Highlight Bug & Fix Charter Bug Tracker 2 11-17-2003 01:16 AM
highlight search results on page? rediray How-to Forum 2 10-03-2003 04:40 AM


All times are GMT -8. The time now is 07:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.