vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Search All Posts From Date (Day Search) (https://vborg.vbsupport.ru/showthread.php?t=64172)

Zachery 04-21-2004 05:56 PM

Quote:

Originally Posted by jschefdog
That's a nice hack, and much more handy and obvious. This is the kind of feature I had hoped would be part of vB 3. To save people the trouble of hunting it down, here is the link.

http://www.vbulletin.com/forum/showthread.php?p=657712

The only real advantage my hack has is that it provides more search control, such as only showing recent posts in selected forums.

You should be able to exclude, or only look at one specific forum as well

forumid=X
exclode=X,Y,Z

jschefdog 04-21-2004 07:48 PM

Quote:

Originally Posted by Zachery
You should be able to exclude, or only look at one specific forum as well

forumid=X
exclode=X,Y,Z

Thanks for the tip Zachery. I tried these and they work fine. For example:

search.php?do=getdaily&days=30&forumid=26
search.php?do=getdaily&days=30&exclude=28,29

Specifying the forumid will also include children, which is nice. This would allow adding buttons to do specific searches such as "Last Month for Forum X" or "Last Week for Category Y", but does not provide the flexibility of being able to do "Last X Days" searches from the Advanced Search form. With the hack described in this thread, you can select any combination of forums (thanks to the great new search features in vb 3) and then view all the posts from the last x days in those forums. You can also list the results by posts, which I don't think is possible with getdaily.

jschefdog 04-21-2004 08:06 PM

Related to this topic, it seems that whenever you run a search using "getdaily", the Search Results web page always says:

Search: Posts From Last Day

Regardless of the number of days you specify. Not a big deal, but it would be nice if it listed the number of days used in the search.

Jon Matcho 05-25-2004 09:15 PM

Quote:

Originally Posted by jschefdog
...I'm almost embarrased to post it here with all these great hacks...

The simplicity of this hack is near algorithmic poetry. I salute you for finding this gem!!!

Bravo, and thank you!

MickDoneDee 06-01-2004 07:14 PM

So simple, but so useful - qualities of a great hack. Should be included in future versions. I've also added the optional enhancements. It works like a charm.

Erwin 06-02-2004 01:22 AM

Like some posters said, this feature is built into vB - you just need to add the template mod described above - no hack needed. :)

jksgvb 01-14-2007 11:35 PM

Quote:

Originally Posted by jschefdog (Post 503958)
...With the hack described in this thread, you can select any combination of forums (thanks to the great new search features in vb 3) and then view all the posts from the last x days in those forums. You can also list the results by posts, which I don't think is possible with getdaily.

Thanks so much for posting this. This is exactly the way I need the advanced search in my forum to work. Unfortunately, when I modify the search.php file as described, searching operates just as before--still returning the error if 'key word' and 'user name' fields are left blank.:confused:

This is the code I found in my search.php file:
Code:

// error if no search terms
        if (empty($vbulletin->GPC['query']) AND empty($vbulletin->GPC['searchuser']) AND empty($vbulletin->GPC['replyless']))

and this is what I changed it to:

Code:

// error if no search terms
        if (empty($vbulletin->GPC['query']) AND empty($vbulletin->GPC['searchuser']) AND
empty($vbulletin->GPC['searchdate == 0']) AND empty($vbulletin->GPC['replyless']))

I'm running vBulletin 3.6.4 btw.

Is there some other setting I need to change? Thanks.

jksgvb 01-15-2007 08:22 PM

I see my mistake. I need to remove the "empty" command in front of the 'searchdate' pointer. All is OK now.


All times are GMT. The time now is 06:18 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.01078 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete