Fork me on GitHub

Search  Bottom

  • Is there any documentation on how to get the Post Nuke seach engine to search data on a custom module? If so, please post a link. If not, how can this be done?
  • Have a look into the /includes/search/ directory. Open any of the files in a text editor and you can see first-hand how it's done. There is no guide that I know of.
  • I've made a custom file and put it in the search dir. but when I preform a search it doesn't show anything different on the results page.

    Do I have to modify another file as well?
  • No idea...
  • Has anyone ever done this before?
  • Try putting your file into the ../includes/search/.. directory...
  • yes, thats where I have it.. :(
  • I was looking at the file "Xanthia/plugins/function.search.php" and noticed it had this piece of code...

    Code

    if (!isset($active)) {
            $active = 'comments, downloads, faqs, reviews, sections, stories, users, weblinks';
        }


    I tried adding the name of the module I wanted to add to the search, but it didn't seem to make a difference.
  • ok, I got it figured out... turns out I had an SQL error in my search file.. icon_redface
  • Does anyone know how to change the order in which modules are displayed on the Search results page?
  • No clue, but my guess would be the same bit of code you posted a few back. Maybe?
  • I have come to the conclusion that the order in which the results appear is based on the order in which they are uploaded to the file system.
  • BTW, I provided a how-to on adding searches in a post to these forums a year or two ago...

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