Fork me on GitHub

search box UpDownload result  Bottom

  • Hi can somebody help me.
    If have the following problem
    And I hope it’s in the right section!

    I made a search box in the header of my PNtheme with the following code:












    <font class="pn-normal"> 
      



    When I search it works but it’s not showing the result for the UpDownload module
    Do I have to integrate it in the above code?
    And if so, how do I do that?

    Can anybody help with this.

    Thanks in advance

    Michiel

    Sorry for my poor english, but he i'm Dutch
  • Hi there,

    You are missing some input types, have a look at the form for the search module:

    Code

    <form method="post" action="modules.php">
      <input type="hidden" name="op" value="modload">
      <input type="hidden" name="name" value="Search">
      <input type="hidden" name="file" value="index">
      <input type="hidden" name="action" value="search">
      <input type="hidden" name="overview" value="1">
      <input type="text" name="q" id="q" size="20" maxlength="255" value="">
      <input type="submit" value="Search">
      <select name="bool" size="1">
        <option value="AND" selected>All words [AND]</option>
        <option value="OR">Any words [OR]</option>
      </select>
      <input type="checkbox" name="active_downloads" id="active_downloads" value="1" checked>
      <input type="checkbox" name="active_faqs" id="active_faqs" value="1" checked>
      <input type="checkbox" name="active_weblinks" id="active_weblinks" value="1" checked>
      <input type="checkbox" name="active_reviews" id="active_reviews" value="1" checked>
      <input type="checkbox" name="active_stories" id="active_stories" value="1" checked>
      <select name="stories_topics[]" id="stories_topics[]" multiple>
        <option value="" selected>All</option>
        <option value="5">Envolution</option>
        <option value="1">MaxDev</option>
        <option value="2">MD-Pro</option>
        <option value="3">MD-Pro</option>
        <option value="4">News</option>
        <option value="6">Postnuke</option>
      </select>
      <select name="stories_cat[]" id="stories_cat[]" multiple>
        <option value="" selected>All Categories</option>
        <option value="1">Announcements</option>
        <option value="2">MD-Pro</option>
      </select>
      <input type="text" name="stories_author" id="stories_author" size="20" maxlength="255">
      <input type="checkbox" name="active_subjects" id="active_subjects" value="1" checked>
      <select size="5" name="subjects_srch[]" id="subjects_srch[]" multiple>
        <option value="" selected>All</option>
        <option value="pagetitle">Title</option>
        <option value="pageauthor">Author</option>
        <option value="pagetext">Description</option>
        <option value="pagecontent">Content</option>
        <option value="username">User</option>
      </select>
    </form>


    See how there are other things included? When you want modules to be searchable I think they have to include a special file to be search active...

    REgards

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Good catch Lobos!
  • Hey thanks, but not really that good of a catch hehe, but it had me stumped for a long time (when I was a noob) - I used to want a search box that would search everything, but it would only search articles and categories. The main thing to do is emulate the the search form - you can do this with anything really.

    Regards

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment

This list is based on users active over the last 60 minutes.