PnSimpleSearch Version 1 Released
Articles / Computer Programs and Scripts
Posted by elliot on Nov 05, 2003 - 09:30 PM
Craig R. Saunders responded to my post at http://postnuke.com for a simple directory text search plug-in to Postnuke. After a few emails back and forth, I'm proud to announce that we now offer pnSimpleSearch.zip under Postnuke Downloads at this site (Alpha Version 1).|
PnSimpleSearch! Version 1. Written by Craig R. Saunders and Elliot Zimmerman, 11.5.3. For Postnuke only! Tested on Postnuke 714 - 726.
What is PnSimpleSearch?
PnSimpleSearch provides the Postnuke search engine with the ability to search a directory of files for a search criteria entered by the user in the Postnuke search box. The results are a dynamic list of hyperlinks to the files containing the search term. This list appears at the bottom of the PnSearch result screen under "PnSimpleSearch." If the search box is left empty, PnSimpleSearch returns a dynamic list of hyperlinks to all files in the directory!
To install, make the following changes to this file (text.php) and place in your Postnuke includes/search directory:
Change line 92 of this text.php file to reflect the server path to your document directory and which files to search (i.e. *.htm).Add the following to your /language/eng/global.php file at the very end:
Change line 106 of this text.php file to reflect the URL to your document directory.
define('_SEARCH_TEXTFILES','Search Documents: Search is case sensitive & for a single term only! If no search term is entered, all documents are listed.');That's it!
define('_SEARCH_TEXTFILES','Documents: The following documents matched your search.');
define('_SEARCH_NO_TEXTFILES', 'Documents: No documents matched your search.');
1) The search is case sensitive.
2) The search does not handle multiple search criteria.
3) The search displays all results on the first page.
The file is available at http://cyberlaw.info  under Postnuke Downloads. It is called pnSimpleSearch.zip. You can try it by selecting "Search" at http://cyberlaw.info . Leave the search box empty and all files will be displayed.
This version's search results "pop-up" in a new window when selected.
This article is from CyberLaw.Info™ :: Intellectual Property Law, CyberLaw, Entertainment Law and Litigation
The URL for this story is:
Links in this article