Home › Forums › Scripts › Other Scripts › Double quotes inserted automatically around search phrases
This topic contains 2 replies, has 3 voices, and was last updated by Jem 1 year ago.
-
AuthorPosts
-
May 21, 2012 at 11:32 am #14042
AnonymousHello!
I have installed a search script from KSearch and wanted to adjust search form to have double quotes inserted automatically around search phrases.
Here is the HTML of my search form page:
[HTML] <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>OM Radio » Song Requests » Search</title>
<link rel=”stylesheet” href=”ks_images/style.css” type=”text/css” />
</head>
<body bgcolor=”#8fc4f0″>
<div class=”content”>
<div class=”search_table”>
<form action=”ksearch.cgi” method=”get”>
<div class=”fieldset_1″>
<fieldset>
<input type=”text” size=”65″ name=”terms” id=”tips” value=”" onfocus=”select(this);” />
<input type=”submit” value=” Search ” /><input type=”hidden” name=”showm” value=”5″ />
</fieldset>
</div>
<div class=”fieldset_2″>
<fieldset>
<table border=”0″ cellpadding=”10″ cellspacing=”0″>
<tr><td>
<p align=”center”>
Results: <select name=”display”>
<option>5</option>
<option selected=”selected”>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
<option>500</option>
<option>1000</option>
</select>
</p>
</td>
</tr>
</table>
</fieldset>
</div>
</form>
</div>
</body>
</html>[/HTML]
And here is the search page URL: http://om.md/radio/search/search_form.html
Any possibility to give and advice?
Thanks!
May 21, 2012 at 12:09 pm #15137dunno perl. but i assume u need to modify around these lines of ksearch.cgi
$desc =~ s/nt/<b style=”background:$BOLD_TERMS_BG_COLOR”>/gs;
$title =~ s/nt/<b style=”background:$BOLD_TERMS_BG_COLOR”>/gs;
$display_url =~ s/nt/<b style=”background:$BOLD_TERMS_BG_COLOR”>/gs;
$desc =~ s/n t/</b>/gs;
$desc =~ s/n t/<br />/gs;
$title =~ s/n t/</b>/gs;
$display_url =~ s/n t/</b>/gs;
May 29, 2012 at 8:30 am #15138Have you tried asking this question on the kscripts forum?
http://www.kscripts.com/forum/index.php
They may be better placed to advise
-
AuthorPosts
You must be logged in to reply to this topic.




Recent Comments