![]() |
|
#1
|
|||
|
|||
|
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: Code:
[linksearch=basketball] Search For Basketball Links[/linksearch] Code:
<a href="http://www.mydomain.com/links/whatever.php?word={option}"> Search For Basketball Links</a>
Thanks! Last edited by ataraxia; 10-06-2004 at 11:21 AM. |
|
#2
|
||||
|
||||
|
http://yoursite.com/links/search.php?do=searchresults&catid=0&quicksearch=1&string={option}
|
|
#3
|
|||
|
|||
|
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!) |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
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!!!!) |
|
#6
|
||||
|
||||
|
Currently, no.
|
|
#7
|
|||
|
|||
|
tried this and got:
vBulletin Message Could not find phrase 'llery_error_no_search_fields'. advise please! |
|
#8
|
|||
|
|||
|
http://www.absolutepunk.net/artists/...&string=cartel
This doesn't work on my page .. can anyone help? |
|
#9
|
|||
|
|||
|
Try...
Code:
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'. 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
}
}
- 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 Last edited by Rue; 06-27-2005 at 01:09 AM. |
|
#10
|
|||
|
|||
|
fixed!
|
|
#11
|
|||
|
|||
|
Now, if only I could get it to (when using quick search) to just pull up and the go to the first site found..
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple problem with including php. | chris_ | Troubleshooting / "How do I..." Questions | 6 | 10-07-2004 09:55 AM |
| Simple Collapse Bug | socals | Troubleshooting & Problems | 0 | 09-06-2004 05:17 PM |
| Simple Random Image Script | lee wilde | Add-On Modules & Modifications | 0 | 06-21-2004 12:13 AM |