View Full Version : Permenant search links?
Borgs8472
05-09-2005, 10:45 PM
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
Marco van Herwaarden
05-10-2005, 07:11 AM
Search results are only kept for a limited timeframe, i think it is 7 days, but not sure.
Borgs8472
05-10-2005, 04:03 PM
^ ^
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:
https://vborg.vbsupport.ru/search.php?do=getdaily&days=1000&f=33
Are there parameters I can call with the search function do find search for keywords in a forum?
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.
Borgs8472
05-10-2005, 04:49 PM
^ ^
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}.
Borgs8472
05-10-2005, 07:26 PM
Need help! :D
So close yet so far... :(
Marco van Herwaarden
05-10-2005, 07:44 PM
You can also use a list of search terms after the ? Like:
search.php?query=SEARCHWORD
You can also use the following keywords:
'query'
'searchuser'
'exactname'
'starteronly'
'forumchoice',
'childforums'
'titleonly'
'showposts'
'searchdate'
'beforeafter'
'sortby'
'sortorder'
'replyless'
'replylimit'
'searchthread'
'searchthreadid'
Borgs8472
05-10-2005, 08:53 PM
^ ^
that's cool, I can use query to put together the search I want, e.g.
http://www.wordforge.net/forum/search.php?query=star%20trek&forumchoice=14
But I don't want to go to the search screen, straight to the results!
AlexanderT
05-10-2005, 09:01 PM
^ ^
that's cool, I can use query to put together the search I want, e.g.
http://www.wordforge.net/forum/search.php?query=star%20trek&forumchoice=14
But I don't want to go to the search screen, straight to the results!
NP at all ;) Add do=process to it, e.g.
http://www.mobileread.com/forums/search.php?query=librie&do=process
Alex
Borgs8472
05-10-2005, 09:30 PM
Horray! :D
Want $10? Just give me your paypal address if you have one :)
Oh well, since we're on the subject of the search function and people have already been very helpful, I don't suppose there's a way to search or multiple keywords without use of 'and'?
e.g. Buffy or Angel
In one search term ?
Oh also, I wanted to have a search for 'dr who', alas the word 'who' is ommited from my searches!
Is there a way around this? :)
Borgs8472
08-13-2005, 10:09 PM
These links are great! I release a hack for this, even thought there's no hacking.
But I need help, terms in thread titles are not being picked up. I need the thread titles to be searched as well, what parameters do I have to add? :?
Borgs8472
08-21-2005, 09:46 PM
/me will have to examine the manual on searches some more....
Borgs8472
08-30-2005, 11:15 PM
hmmm, I think my titles are not being searched in, anyone know how to include titles for searching?
Borgs8472
09-11-2005, 06:53 PM
Hmmm, this isn't working perfectly, I've got threads there, they're being searched for but won't turn up :(
Anyone got any ideas? I would love to perfect this for everyone :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.