| View previous topic :: View next topic |
| Author |
Message |
myPBC
Joined: 01 Apr 2003 Posts: 37 Location: West Palm Beach, Florida
|
Posted: Sun Jun 08, 2003 7:37 am Post subject: Keeping most popular at top of Search results??? |
|
|
I've noticed somthing about the search?
When I use the search box and search for say "Education".
All works well, I get a result set that contains the the words like "education".
I then choose, the first, or the second listing or the fifth listing and link to it. Opens new window and I can see the site. (all works as expected)
The Problem!
Say I go back to the home page again or try another search for "Education" using the search box.
That listing I linked to on my last search now goes all the way to the end of the results set. even if its had the most hits??
Is there anyway to keep the most popular sites (by hits) at the top of the search results like it does in the defined categorys???
Ian... |
|
| Back to top |
|
 |
PHPWebScripts Richard - Admin
Joined: 13 Jan 2003 Posts: 5693
|
Posted: Sun Jun 08, 2003 8:10 am Post subject: |
|
|
So if I understand you would like to sort the links by popularity. If so, just add the following hidden field tag to the simple search form:
<input type="hidden" value="m_out desc" name="sort"> |
|
| Back to top |
|
 |
myPBC
Joined: 01 Apr 2003 Posts: 37 Location: West Palm Beach, Florida
|
Posted: Wed Jun 11, 2003 6:58 pm Post subject: |
|
|
That did it, you make it very hard not to like this script.
Thanks again for the help.
Ian.... |
|
| Back to top |
|
 |
|