Bold Search Terms
Great search script!!!
How can I get the search terms that the user entered to appear as bold words in the search results? Right now, all of the text comes up normal so it is hard to determine how their search terms relate to the context of the results. Thanks Ben |
In config.php, find the following code:
Code:
define('HIGHLIGHT_BACKGROUND','#FFBB00'); //Highlighting background color |
hmmm... doesn't seem to be working.. or maybe I'm not using classic mode... what is classic mode?
Thanks Ben |
First of all, read section 10 of the phpdig documentation. (You should read all of the documentation anyway. RTFM* applies here ;)). Classic mode is all the premade templates that you can view in the phpdig demo.
* Someone is bound to ask. RTFM = read the manual. There are variations on the "F" - some of which are vulgar. No need to elaborate on that. |
RTFM.. I like that. Sorry I didn't read it thoroughly... thanks for your reply though!!
So, for my situation, I can't use the Classic mode, I need to be able to modify the display. Got any hacks up your sleeve to get the text highlighting capabilities to work with a template? Thanks in advance. Ben |
That is governed by the stylesheet for your search page. For example, here is how it's defined in the template bluegrey.html:
Code:
.phpdigHighlight { Hope this helps. :) |
beautiful.. I see the phpdigHighlight span class in the results. Thanks!!!
|
All times are GMT -8. The time now is 05:35 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.