Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2005, 10:45 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 05-10-2005, 07:11 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Search results are only kept for a limited timeframe, i think it is 7 days, but not sure.
Reply With Quote
  #3  
Old 05-10-2005, 04:03 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ ^
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
Are there parameters I can call with the search function do find search for keywords in a forum?
Reply With Quote
  #4  
Old 05-10-2005, 04:41 PM
smju smju is offline
 
Join Date: Nov 2004
Location: Kent, U.K.
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-10-2005, 04:49 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ ^
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? :/
Reply With Quote
  #6  
Old 05-10-2005, 05:38 PM
smju smju is offline
 
Join Date: Nov 2004
Location: Kent, U.K.
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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}.
Reply With Quote
  #7  
Old 05-10-2005, 07:26 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Need help!

So close yet so far...
Reply With Quote
  #8  
Old 05-10-2005, 07:44 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can also use a list of search terms after the ? Like:
PHP Code:
search.php?query=SEARCHWORD 
You can also use the following keywords:
Code:
	'query' 
	'searchuser' 
	'exactname' 
	'starteronly' 
	'forumchoice',
	'childforums' 
	'titleonly' 
	'showposts' 
	'searchdate'
	'beforeafter'
	'sortby' 
	'sortorder'
	'replyless'
	'replylimit'
	'searchthread' 
	'searchthreadid'
Reply With Quote
  #9  
Old 05-10-2005, 08:53 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ ^
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
But I don't want to go to the search screen, straight to the results!
Reply With Quote
  #10  
Old 05-10-2005, 09:01 PM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Borgs8472
^ ^
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
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.

Code:
http://www.mobileread.com/forums/search.php?query=librie&do=process
Alex
Reply With Quote
Reply


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


All times are GMT. The time now is 05:49 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04261 seconds
  • Memory Usage 2,246KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete