PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Remove refine and dropdown menu (http://www.phpdig.net/forum/showthread.php?t=1059)

DawnMTeo 07-10-2004 10:22 PM

Remove refine and dropdown menu
 
I don't want users to see the dropdown menu asking them which site to search. I want it to automatically search the website that they're on based on a hidden variable or what-not.

I also do not want to give users the option to refine their search based on directories. We have a lot of newbie computer users on our site, and it confuses them.

How can I remove these two features and JUST have a search-text-field and a search-button?

...I tried just removing the line in the template for the dropdown, but then the script didn't know which site to search and came up with 0 results on searches.

vinyl-junkie 07-11-2004 06:05 AM

Welcome to the forum, DawnMTeo. :D

To get rid of the drop-down menu, find this code in includes/config.php:
PHP Code:

define('DISPLAY_DROPDOWN',true); 

and change it to:
PHP Code:

define('DISPLAY_DROPDOWN',false); 

As for a search based on directories, read this thread.

Hope this helps. :)


All times are GMT -8. The time now is 10:40 PM.

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