Double quotes inserted automatically around search phrases

Home Forums Scripts Other Scripts Double quotes inserted automatically around search phrases

Tagged: ,

This topic contains 2 replies, has 3 voices, and was last updated by  Jem 1 year ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14042

    Anonymous

    Hello!

    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!

    #15137

    endrohat
    Participant

    dunno 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;

    #15138

    Jem
    Keymaster

    Have you tried asking this question on the kscripts forum?

    http://www.kscripts.com/forum/index.php

    They may be better placed to advise :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.