PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 08-13-2004, 07:27 PM   #1
WebDiva 2.0
Former Member
 
Join Date: Aug 2004
Posts: 18
Question 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.
WebDiva 2.0 is offline   Reply With Quote
Old 08-13-2004, 09:23 PM   #2
vinyl-junkie
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);
Make sure both these values are set to false.

Let us know if that fixes it for you.
vinyl-junkie is offline   Reply With Quote
Old 08-18-2004, 11:55 PM   #3
WebDiva 2.0
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?
WebDiva 2.0 is offline   Reply With Quote
Old 08-19-2004, 01:58 PM   #4
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Reply


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
Search box opening a new window? llawrence Troubleshooting 0 05-23-2007 05:39 AM
move search code to just a box melinda How-to Forum 1 07-15-2006 01:05 PM
Search box on every page? chrisdgreen How-to Forum 3 07-29-2005 10:27 AM
Adding search box to every page Psycho1 How-to Forum 7 04-25-2004 09:04 AM
Search box on html page rafarspd How-to Forum 4 12-04-2003 07:37 AM


All times are GMT -8. The time now is 03:57 PM.


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