![]() |
Permenant search links?
Hey all. To avoid splitting up my media forum by subject too much, I decided to install 'subforum' links which ran searches for e.g. 'Star Trek' and 'Buffy' etc.
I saved the search ID of the relevent search and made them subforum links. It worked at first, but now they return no results, obviously the system has 'forgotton' the searchs I did or something... I'm sure this has been done before, can anyone help? :D |
Search results are only kept for a limited timeframe, i think it is 7 days, but not sure.
|
^ ^
It likely varies depending on how many searches are performed. Suffice to say, my preset search links only worked for a few hours. :( Is there a way of programming the search function without referencing an ID for permenent searches like I'm trying to do? E.g at vb there's: Code:
https://vborg.vbsupport.ru/search.php?do=getdaily&days=1000&f=33 |
The reason your searches disappear is down to the Scheduled Task that runs Cleanup.php. In our case we run it every hour.
There is a section in there that specifically deletes the contents of the Search table, for all searches with a timestamp at least 1 hour old. Thus if you have specific searches that you wish to keep, you will need to exclude them from the SQL statement. |
^ ^
cool, how do I do that? Do I exclude some selected search ids? (can do) Or do I do something else? And how do I do this? :/ |
You would need to amend the WHERE section of the statement, along the lines of
WHERE ... {existing stuff} AND NOT searchid = nnn or nnn or nnn but you would need to get a decent SQL coder to give you an efficient statement {It would take me quite a long while to figure it out}. |
Need help! :D
So close yet so far... :( |
You can also use a list of search terms after the ? Like:
PHP Code:
Code:
'query' |
^ ^
that's cool, I can use query to put together the search I want, e.g. Code:
http://www.wordforge.net/forum/search.php?query=star%20trek&forumchoice=14 |
Quote:
Code:
http://www.mobileread.com/forums/search.php?query=librie&do=process |
All times are GMT. The time now is 03:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|