PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Bug Tracker

Reply
 
Thread Tools
Old 03-04-2004, 02:19 PM   #1
stsopswen4
Green Mole
 
Join Date: Mar 2004
Posts: 4
Question SEARCH_DEFAULT_MODE Ignored

I'm new to PhpDig so forgive me if I just don't understand.

I've modified my config and set the SEARCH_DEFAULT_MODE to any but it does not seem to work. Looking at the code, function phpdigMakeForm, it really doesn't matter what you specify because it's the default is 'start' because of the default value in the method. Since that is the case it's always defined and never grabs the value from SEARCH_DEFAULT_MODE.

Can someone show me the way? Thanks.
stsopswen4 is offline   Reply With Quote
Old 03-05-2004, 01:13 AM   #2
manfred
Orange Mole
 
Join Date: Nov 2003
Posts: 42
Hi

I noticed this also and corrected that in my admin panel mod. You can download it from mod submission forum. Only required file is search.php but by using the hole mod you can control several things directly from admin page.

-m-
manfred is offline   Reply With Quote
Old 03-05-2004, 11:12 AM   #3
stsopswen4
Green Mole
 
Join Date: Mar 2004
Posts: 4
For now I just passed 'any' for $option and that seems to work for now. I'll see if I can log this as a bug.

Actually, can we confirm this is a bug and i'm not going too crazy? And if so can the moderator move this thread over the to bug tracker forum?

Thanks.

Last edited by stsopswen4; 03-05-2004 at 11:15 AM.
stsopswen4 is offline   Reply With Quote
Old 03-05-2004, 12:19 PM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. In search_function.php replace:
PHP Code:
if (($option != "start") && ($option != "any") && ($option != "exact")) { $option "start"; } 
with the following:
PHP Code:
if (($option != "start") && ($option != "any") && ($option != "exact")) { $option SEARCH_DEFAULT_MODE; } 
Remember to remove any "word" wrapping in the above code.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 03-11-2004, 04:08 PM   #5
stsopswen4
Green Mole
 
Join Date: Mar 2004
Posts: 4
Will this make it into the next revision?
stsopswen4 is offline   Reply With Quote
Old 03-11-2004, 04:39 PM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
>> Will this make it into the next revision?

Hi. Sure, if I remember to stick it in. Humor aside, it's on the list so I should remember.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 03-12-2004, 08:33 AM   #7
stsopswen4
Green Mole
 
Join Date: Mar 2004
Posts: 4
Thanks.
stsopswen4 is offline   Reply With Quote
Old 06-05-2004, 06:17 AM   #8
manfred
Orange Mole
 
Join Date: Nov 2003
Posts: 42
Also search default limit must be changed. How about code a little bit later, obsolete or not? What I understand it never get parsed.

PHP Code:
if (($option != "start") && ($option != "any") && ($option != "exact")) { $option SEARCH_DEFAULT_MODE; }
if ((
$limite != 10) && ($limite != 30) && ($limite != 100)) { $limite SEARCH_DEFAULT_LIMIT; }

//if (!$option) {
//     $option = SEARCH_DEFAULT_MODE;
//}

//if ($limite) {
//     settype ($limite,"integer");
//}
//else {
//    $limite = SEARCH_DEFAULT_LIMIT;
//} 
manfred 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


All times are GMT -8. The time now is 07:55 AM.


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