|
08-13-2004, 06:27 PM | #1 |
Former Member
Join Date: Aug 2004
Posts: 18
|
search box?
Hi.
On the front page of these forums, there's a search box that doesn't utilize the drop select menu to force the user to select a URI from the drop menu. I'd like to set my search box up the same way. How would one go about excluding the drop select menu in the search box, thereby allowing the entire db to be searched as a whole (much like Google) Vs restricting it to a one URI selection (as is done with the drop select menu)? I'm fairly comfortable with PHP and hacking code. I just installed phpDig this afternoon and have been playing around with it a bit and it's very nicely done, I must say. |
08-13-2004, 08:23 PM | #2 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Welcome to the forum, WebDiva.
I'm just guessing on what you need to do, but find this in config.php: Code:
define('DISPLAY_DROPDOWN',false); define('DROPDOWN_URLS',false); Let us know if that fixes it for you. |
08-18-2004, 10:55 PM | #3 |
Former Member
Join Date: Aug 2004
Posts: 18
|
Hi Yes, this did do the trick. I'm sorry, I'd just missed that in the config.php file as all the text was so "compact" together.
Put a few spaces in between lines of code, and ah, there it was staring me right in the eyes this whole time. I have one other question, but didn't want to start another new thread just for that. In the robot files, where the user-agent identifies itself, would this be appropriate (and proper protocol) to change the web URL identity to that of the domain actually running the spider query and also to change the name of the robot to something appropriate for the site running it? Example: Site owner of some-domain.com decides he wants to run the phpDig script. The bot says to the site being queried, I am coming from phpdig.net my name is phpdig 1.8.3 When the truth is the bot is coming from some-domain.com If the site owner wants to block his site from query and sets robots.txt Disallow: phpDig/ 1.8.3 these actions would cause all user of phpDig not to index the site whereas maybe just only one of the phpDig user sites are over indexing when others are not. Better responsibility to robots.txt protocol suggests that the bots be easily identified by the source domain. Therefore, some-domain.com would have bot called some-domain 1.8.3 with URI being some-domain.com If wishing to be complaint with protocol, this needs be changed. Is doing this in some violation of phpDig user license? If I am allowed to change these identifiers to be compliant with robots.txt protocol as outlined by the WC3 standards, where in the script would the changes need to be applied? Would changing these affect any of the variables needed for running the script through cron or shell command via SSH? If so, where would changes also need to be made to accommodate these areas? |
08-19-2004, 12:58 PM | #4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
On the other hand, maybe when a person blocks PhpDig, s/he means to block all PhpDigs out there...
http://www.phpdig.net/showthread.php?threadid=224
__________________
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. |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Search box opening a new window? | llawrence | Troubleshooting | 0 | 05-23-2007 04:39 AM |
move search code to just a box | melinda | How-to Forum | 1 | 07-15-2006 12:05 PM |
Search box on every page? | chrisdgreen | How-to Forum | 3 | 07-29-2005 09:27 AM |
Adding search box to every page | Psycho1 | How-to Forum | 7 | 04-25-2004 08:04 AM |
Search box on html page | rafarspd | How-to Forum | 4 | 12-04-2003 06:37 AM |