vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > vBa Links Directory v1.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-05-2004, 08:18 PM
ataraxia ataraxia is offline
Junior Member
 
Join Date: Oct 2004
Posts: 21
Default Simple URL for search??

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]
it would translate into something equivalent to this:

Code:
<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!

Last edited by ataraxia; 10-06-2004 at 11:21 AM.
Reply With Quote
  #2  
Old 10-06-2004, 12:27 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Simple URL for search??

http://yoursite.com/links/search.php?do=searchresults&catid=0&quicksearch=1&string={option}
Reply With Quote
  #3  
Old 10-06-2004, 12:42 PM
ataraxia ataraxia is offline
Junior Member
 
Join Date: Oct 2004
Posts: 21
Default Re: Simple URL for search??

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!)
Reply With Quote
  #4  
Old 10-06-2004, 12:55 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Simple URL for search??

Add &amp;orderby=name&amp;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
Reply With Quote
  #5  
Old 10-06-2004, 01:21 PM
ataraxia ataraxia is offline
Junior Member
 
Join Date: Oct 2004
Posts: 21
Default Re: Simple URL for search??

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!!!!)
Reply With Quote
  #6  
Old 10-06-2004, 01:40 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Simple URL for search??

Currently, no.
Reply With Quote
  #7  
Old 06-26-2005, 04:06 PM
absolutepunknet absolutepunknet is offline
Banned
 
Join Date: Mar 2004
Posts: 61
Default Re: Simple URL for search??

tried this and got:
vBulletin Message
Could not find phrase 'llery_error_no_search_fields'.

advise please!
Reply With Quote
  #8  
Old 06-26-2005, 04:26 PM
absolutepunknet absolutepunknet is offline
Banned
 
Join Date: Mar 2004
Posts: 61
Default Re: Simple URL for search??

http://www.absolutepunk.net/artists/...&string=cartel

This doesn't work on my page .. can anyone help?
Reply With Quote
  #9  
Old 06-26-2005, 10:02 PM
Rue Rue is offline
Junior Member
 
Join Date: Jun 2005
Posts: 4
Default Re: Simple URL for search??

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'.
Look at code...
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

Last edited by Rue; 06-27-2005 at 01:09 AM.
Reply With Quote
  #10  
Old 06-27-2005, 12:29 AM
absolutepunknet absolutepunknet is offline
Banned
 
Join Date: Mar 2004
Posts: 61
Default Re: Simple URL for search??

fixed!
Reply With Quote
  #11  
Old 06-27-2005, 12:36 AM
absolutepunknet absolutepunknet is offline
Banned
 
Join Date: Mar 2004
Posts: 61
Default Re: Simple URL for search??

Now, if only I could get it to (when using quick search) to just pull up and the go to the first site found..
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 04:54 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.