View Full Version : Simple URL for search??
ataraxia
10-05-2004, 09:18 PM
How would I construct a simple URL to search on a keyword in vBa Links?
I'm looking for a URL that I could build vBB code tags for use in my Forums such as this:
Search For Basketball Links
it would translate into something equivalent to this:
<a href="http://www.mydomain.com/links/whatever.php?word={option}"> Search For Basketball Links</a>
What should I replace the "whatever.php" part with???
Thanks!
Brian
10-06-2004, 01:27 PM
http://yoursite.com/links/search.php?do=searchresults&catid=0&quicksearch=1&string={option}
ataraxia
10-06-2004, 01:42 PM
This works really well! Thanks!
Is there a parameter to set it so that the results are sorted by title in ascending order?
What are some other parameters that could be used to sort on other fields and/or in descending order? Looking for some general guidance here. (Something to put in the Docs, eventually!)
Brian
10-06-2004, 01:55 PM
Add &orderby=name&direction=ASC at the end of the link ;)
Other sorting options...
posts => Number of Replies
views => Number of Views
dateline => Date Added
lastpostdateline => Last Posting Date
username => User Name
directory => Directory
ataraxia
10-06-2004, 02:21 PM
How about some way to sort by the highest number of occurences of the keyword in each listing? Is that possible?
Thanks again! (vB Adv Links is a GREAT script!!!!)
Brian
10-06-2004, 02:40 PM
Currently, no.
absolutepunknet
06-26-2005, 05:06 PM
tried this and got:
vBulletin Message
Could not find phrase 'llery_error_no_search_fields'.
advise please!
absolutepunknet
06-26-2005, 05:26 PM
http://www.absolutepunk.net/artists/search.php?do=searchresults&string=cartel
This doesn't work on my page .. can anyone help?
Try...
http://www.vbadvanced.com/links/search.php?do=searchresults&catids=0&quicksearch=1&string=hosting
vBulletin Message => Could not find phrase 'error_no_search_terms'.
Look at code...
if ($_REQUEST['do'] == 'searchresults')
{
// blah
if ($searchid) // from $_REQUEST
{
// blah
}
else
{
globalize($_POST, array('some','var','names')); // from $_POST
// blah
if (!$string AND !$username)
{
eval(print_standard_error('links_error_no_search_terms'));
}
if (empty($fields) AND empty($cfields))
{
eval(print_standard_error('adv_gallery_error_no_search_fields'));
}
// blah
}
}
So it seems...
- error_no_search_terms is a typo of a missing phrase
- links_error_no_search_terms is a missing phrase (add adv_)
- llery_error_no_search_fields is a typo of a missing phrase
- adv_gallery_error_no_search_fields is a missing phrase
And you won't get past what is marked in bold with a GET query. ;)
EDIT: Phrase fix posted at http://www.vbadvanced.com/forum/showthread.php?t=8989
absolutepunknet
06-27-2005, 01:29 AM
fixed!
absolutepunknet
06-27-2005, 01:36 AM
Now, if only I could get it to (when using quick search) to just pull up and the go to the first site found..
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.