Menu

Fix for problem with QuickSearch -TitleSearch

Help
2002-07-23
2012-10-11
  • Wade Johnson

    Wade Johnson - 2002-07-23

    Hello All,

    I have made a change to the navbar.tmpl template to fix the problem with the quicksearch input field.  My change can be seen between the comments:
    <!-- wtj beg hack -->
    and
    <!-- wtj end hack -->

    Here it is:

    <?php // -*-html-*- ?>
    <!-- $Id: navbar.tmpl,v 1.9 2002/02/12 07:13:34 carstenklapp Exp $ -->
    <?php

    $s = $Theme->getButtonSeparator();

    ?>
    <!-- The top navigation/search bar -->
    <form action="<?= WikiURL(_("TitleSearch"))?>"
          method="get" accept-charset="<?=CHARSET?>">
      <div id="navbuttons">
       <?= WikiLink(_("RecentChanges"), "button") ?>
       <?=$s?><?= WikiLink(_("FindPage"), "button") ?>
       <?=$s?><input type="hidden" name="auto_redirect" value="1" />
    <!-- wtj beg hack -->
              <input type="hidden" name="pagename" value="TitleSearch" />
    <!-- wtj end hack -->         
          <input type="text"  name="s" size="12" maxlength="256"
                 title='<?=_("Quick Search")?>'
                 onmouseover="window.status='<?=_("Quick Search")?>'; return true;"
                 onmouseout="window.status=''; return true;" />
        <?php if (!empty($revision)) { ?>
         <?=$s?><?= Button(_("LikePages")) ?>
         <?=$s?><?= Button(_("BackLinks")) ?>
        <?php } ?>
        <?php if (!empty($user) && $user->isAdmin()) { ?>
         <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button") ?>
        <?php } ?>
      </div>
    </form>

    Regards,

    Wade Johnson
    wade@wadejohnson.de

     
    • nate parsons

      nate parsons - 2002-08-26

      thanks Wade!  Your fix did the trick for me.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.