PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Submissions

Reply
 
Thread Tools
Old 12-03-2004, 03:10 AM   #1
blueyed
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.
Attached Files
File Type: txt search_function.php.txt (29.2 KB, 42 views)
blueyed is offline   Reply With Quote
Old 12-13-2004, 04:02 AM   #2
blueyed
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/%' );
}
and call phpdigSearch then.

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.
Attached Files
File Type: txt search_function.php.txt (29.8 KB, 33 views)

Last edited by blueyed; 12-13-2004 at 04:13 AM.
blueyed is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 01:52 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.