PDA


View Full Version : Searching with a URL: summary of findings


JamesCybert
01-09-2008, 10:24 AM
In case anyone else wants to provide links on their pages that permit users to simply click to perform a search within vBA Links, here is what I found works.

1.
To search within only one custom field, use a URL such as the following (which limits to field #15):
http://MYDOMAIN.com/links/search.php?s=&do=searchresults&string=STRING&username=&cfields%5B%5D=field15&dateline=0&new_old=newer&leastmost=least&replycount=0&orderby=name&direction=ASC&catids%5B%5D=0&subcats=1&dosearch=Search+Now

2.
To search within multiple custom fields, one has to list each one in the URL as a cfields[]=field# expression.

If you specify an invalid custom field number in the above URL, a database error will occur, which does not appear to reveal anything that would make it a security risk, but it's caused by an invalid SQL expression.

3.
To search within all fields & ONE custom field, the following appears to work. Notice that field #15 is specified. It's the only custom field that will be searched in addition to the title, keywords, & description.
http://MYDOMAIN.com/links/search.php?do=searchresults&catid=0&string=STRING&quicksearch=1&cfields[]=field15

4.
To search such that everything in one category is displayed, use a URL such as this, which limits to category #8:
http://MYDOMAIN.com/links/browselinks.php?c=8