|
12-03-2004, 03:10 AM | #1 |
Green Mole
Join Date: Sep 2004
Posts: 19
|
libs/search_function.php extended and beautified
I've enhanced the phpdigSearch() function to allow $path_exclude!
Apart from that $path (and the new $path_exclude) might be arrays. I needed this for the site where we're using phpdig and while doing this I reformatted/beautified the whole file. I hope this is useful and suggest using BeyondCompare (or some other comparing program as powerful) to merge this file. The original file was based on 1.8.3 and I hope the changes make it into the next release. Thank you. |
12-13-2004, 04:02 AM | #2 |
Green Mole
Join Date: Sep 2004
Posts: 19
|
updated to 1.8.5
Merged the file with version 1.8.5
I have not thoroughly tested the new functionality of path and excludepath. It would be nice if this makes it into the next release. Probably the search.php (and form functions) need adjustments (to serialize the array in hidden fields etc). We use it here from our customized search.php file like this: Code:
$path_exclude = array(); if( X ) { $path = 'XXX/%'; } elseif( Y ) { $path = 'YYY/%'; } else { $path_exclude = array( 'XXX/%', 'YYY/%' ); } This way we exclude certain paths when we are not in that subpage and only use the special path for this subpages when we are in them. Last edited by blueyed; 12-13-2004 at 04:13 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
$site variable is not propagated to search_function.php | RonHoef | How-to Forum | 0 | 03-04-2006 10:03 PM |
categories and then edit search_function.ph | clueless | How-to Forum | 6 | 02-04-2005 04:35 PM |
search_function.php: allow to exclude path(s) [based on 1.8.7] | blueyed | Mod Submissions | 0 | 01-27-2005 03:13 AM |
Extended Search? | marid | How-to Forum | 2 | 04-10-2004 01:14 PM |