Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2003, 08:45 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Search by Date + Range

Is there a hack out there that allows you to specify a date range to search for threads / posts?
Reply With Quote
  #2  
Old 03-31-2003, 09:54 AM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody ?
Reply With Quote
  #3  
Old 06-15-2003, 04:23 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't have much knowledge of PHP or SQL, but can anybody shed any light on this? From each forum its possible to view the last posts by xxx days, so all I'm after is something that just searches all forums.

I'd really appreciate any help with this and I'm sure others would fine it useful.
Reply With Quote
  #4  
Old 02-07-2007, 02:53 PM
jksgvb jksgvb is offline
 
Join Date: Jan 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm very interested in this feature also. Member why-not posted this excellent hack for vB 3.0 here:

https://vborg.vbsupport.ru/showthread.php?t=74830

I tried to apply it to vB 3.6, but there are too many code changes in search.php for a non-web developer to implement. Anybody have this hack running on vB 3.6?

Thanks.
Reply With Quote
  #5  
Old 02-07-2007, 04:51 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can submit a search to vBulletin with a URL, just like you can with the search form. http://www.yourforums/search.php?do=process&query=searchword , where searchword is the word for which you are searching.

Here is a list of the extra search parameters you can add to the URL. When you add a search parameter to the URL you need to add this to the end of the URL:
&variable_name=value
Search field: Search by Key Word

Variable name: titleonly
Values:
  • 0 = Search Entire Posts
  • 1 = Search Titles Only
Search field: Search by User Name

Variable name: searchuser
Values: Enter a username

Variable name: starteronly
Values:
  • 0 = Find Posts by User
  • 1 = Find Threads Started by User
Variable name: exactname
Values:
  • 0 = Partial name
  • 1 = Exact name
Search field: Find Threads with

Variable name: replyless
Values:
  • 0 = At Least
  • 1 = At Most
Variable name: replylimit
Values: Any integer values

Search field: Find Posts from

Variable name: searchdate
Values:
  • 0 = Any Date
  • lastvisit = Your Last Visit
  • 1 = Yesterday
  • 7 = A Week Ago
  • 14 = 2 Weeks Ago
  • 30 = A Month Ago
  • 90 = 3 Months Ago
  • 180 = 6 Months Ago
  • 365 = A Year Ago
Variable name: beforeafter
Values:
  • after = and Newer
  • before = and Older
Search field: Sort Results by

Variable name: sortby
Values:
  • rank = Relevancy
  • title = Title
  • replycount = Number of Replies
  • views = Number of Views
  • threadstart = Thread Start Date
  • lastpost = Last Posting Date
  • postusername = User Name
  • forum = Forum
Variable name: order
Values:
  • descending = in Descending Order
  • ascending = in Ascending Order
Search field: Show Results as

Variable name: showposts
Values:
  • 0 = Show Results as Threads
  • 1 = Show Results as Posts
Search field: Search in Forum(s)

Variable name: forumchoice[]





Values: Do not include this variable in the URL to search all forums. If you want to search specific forums then you need to add an instance for each forumid. For example:
&forumchoice[]=X&forumchoice[]=Y&forumchoice[]=Z
Where X, Y, and Z are the forumids of the forums in which you want to search.

Variable name: childforums
Values:
  • 0 = Do not search in child forums
  • 1 = Also search in child forums
Reply With Quote
  #6  
Old 02-08-2007, 05:18 AM
jksgvb jksgvb is offline
 
Join Date: Jan 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the url search terms, geartripper. My requirement is that I print all posts over a 1 week period in selected forums, and the searchword always trips me up. That url command requires a searchword doesn't it? (My advanced search function is hacked so that it will allow searches without a searchword or user name.)

Maybe getdaily&days would work, but I don't know all the options of that command. Will getdaily&days display posts, not threads?
Reply With Quote
  #7  
Old 03-30-2007, 10:28 AM
jahshaka jahshaka is offline
 
Join Date: Jan 2006
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a similar problem here - on a certain date there were over 200 new threads in my forum - compared to the average of 20-30 and i want to pull all those threads and see what they were... is there a way to do this with the search options? i dont see any way to put in a date range...

i tried building a query

http://www.vfxtalk.com/forum/search....by=threadstart

but it wont let me do a search without a query - which i need to d osince i dont know whats in those threads, ie the following wont work...

http://www.vfxtalk.com/forum/search....by=threadstart

any help would be really cool!
Reply With Quote
  #8  
Old 03-30-2007, 08:20 PM
HydraulicJack HydraulicJack is offline
 
Join Date: Feb 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I gotta say I'm *astounded* that this basic search capability of getting ALL posts within a given date range is not built in to vBulletin. WTF???

This has been around in other Forum software since 1995 (e.g. then-O'Reilly WebBoard).

Requiring some keyword to be part of any date-range search automatically reduces the results so you don't get all.

Will SOMEBODY please post a hack for this in vBulletin???

Thanks from this shocked newbie.
HJ

PS: If the hack is a url call, please include an example URL for us non-techies.

Thanks!
Reply With Quote
  #9  
Old 02-15-2008, 12:14 PM
TMS_Hon TMS_Hon is offline
 
Join Date: Apr 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i too need a hack to hav the search by date option ...
has anybdy been able to do it for the 3.5.x versions.
plz reply if nybdy has found out the solution to it..
Reply With Quote
  #10  
Old 03-24-2008, 10:50 AM
TMS_Hon TMS_Hon is offline
 
Join Date: Apr 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey guys.....i have derived the solution for searching threads/posts by date range..
it requires some changes...the code is under test and will be uploaded in a few days.

:up:
Reply With Quote
Reply

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


All times are GMT. The time now is 08:57 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
  • Page Generation 0.03946 seconds
  • Memory Usage 2,260KB
  • Queries Executed 14 (?)
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
  • (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_postinfo_query
  • fetch_postinfo
  • 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